/* ============================================================
   STYLE.CSS — NEXAF GROUP
   Site vitrine OnePage — HTML/CSS/JS pur
   ============================================================ */

/* ============================================================
   1. TOKENS — CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:          #1B4F72;
  --color-primary-hover:    #154060;
  --color-secondary:        #C97B2A;
  --color-secondary-hover:  #a86520;
  --color-bg:               #FFFFFF;
  --color-bg-alt:           #F0F4F8;
  --color-text:             #2D3748;
  --color-text-secondary:   #718096;
  --color-whatsapp:         #25D366;
  --color-whatsapp-hover:   #1ebe57;
  --color-border:           #E2E8F0;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  100px;
  --space-3xl:  140px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card:  0 4px 24px rgba(27,79,114,0.09);
  --shadow-hover: 0 12px 40px rgba(27,79,114,0.16);
  --shadow-nav:   0 2px 16px rgba(27,79,114,0.10);

  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast:    200ms;
  --dur-base:    350ms;
  --dur-slow:    600ms;
  --dur-hero:    900ms;

  --container-max: 1200px;
  --nav-height: 90px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

/* ============================================================
   3. CURSEUR PERSONNALISÉ
   ============================================================ */
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, opacity .3s;
}

.cursor-trail {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(27,79,114,0.40);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .18s, top .18s, opacity .3s;
}

.cursor-dot.on-link  { width: 14px; height: 14px; background: var(--color-secondary); }
.cursor-trail.on-link { border-color: rgba(201,123,42,0.5); transform: translate(-50%,-50%) scale(1.4); }

/* ============================================================
   4. CONTAINER & LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section { padding: var(--space-2xl) 0; }

/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--color-border);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.2rem; color: var(--color-primary); letter-spacing: 0.03em;
}

.navbar-logo img { height: 80px; width: auto; }

.navbar-links { display: flex; align-items: center; gap: var(--space-lg); }

.nav-link {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-primary); padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}

.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  padding: var(--space-lg);
  flex-direction: column; gap: var(--space-md);
  z-index: 999;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
  display: none;
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  font-size: 1rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  border-left: none;
}

/* ============================================================
   6. HERO — #accueil
   ============================================================ */
/* Hero occupe exactement le reste du viewport sous la navbar */
#accueil {
  height: calc(100vh - var(--nav-height));
  min-height: 560px;
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 0;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,79,114,0.97) 0%, rgba(10,35,55,0.99) 60%, rgba(27,79,114,0.93) 100%);
  z-index: 1;
}

.hero-geo {
  position: absolute; right: -5%; top: -10%;
  width: 65%; height: 120%;
  background: linear-gradient(145deg, rgba(201,123,42,0.10) 0%, rgba(201,123,42,0.03) 60%, transparent 100%);
  clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 1;
}

.hero-accent-line {
  position: absolute; bottom: 18%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,123,42,0.28), transparent);
  z-index: 1;
}

/* ── Layout 2 colonnes hero ── */
.hero-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
  width: 100%;
}

.hero-content { position: relative; }

/* ── Colonne droite — composition visuelle ── */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: auto;
  padding: 16px 8px;
  opacity: 0; animation: heroFade var(--dur-hero) var(--ease-out) 0.5s both;
}

/* Cadre principal — remplit la colonne droite */
.hv-main {
  width: 100%;
  border-radius: 16px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.hv-svg-icon {
  width: 100%; height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.50))
          drop-shadow(0 0 24px rgba(201,123,42,0.25));
}

/* Cartes flottantes */
.hv-card {
  position: absolute;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: cardFloat 4s ease-in-out infinite;
}

.hv-card--tl { top: 10px; left: -30px; animation-delay: 0s; }
.hv-card--br { bottom: 30px; right: -24px; animation-delay: 2s; }

.hvc-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(201,123,42,0.22);
  border: 1px solid rgba(201,123,42,0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary); font-size: 0.9rem; flex-shrink: 0;
}

.hvc-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.3rem; color: #fff; line-height: 1;
}
.hvc-num span { color: var(--color-secondary); }

.hvc-lbl {
  font-size: 0.68rem; color: rgba(255,255,255,0.55);
  font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Badge statut IA */
.hv-badge {
  position: absolute;
  top: 50%; right: -20px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.65rem; color: rgba(255,255,255,0.80);
  text-transform: uppercase; letter-spacing: 0.10em;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
  animation: cardFloat 4s ease-in-out infinite;
  animation-delay: 1s;
}

.hv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-whatsapp);
  flex-shrink: 0;
  animation: sPulse 2s ease-in-out infinite;
}

/* Réinitialiser hero-content (plus de max-width fixe) */
.hero-content { max-width: 100%; }

.hero-overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--color-secondary); margin-bottom: var(--space-md);
  opacity: 0; animation: heroSlide var(--dur-hero) var(--ease-out) 0.2s both;
}

.hero-overline::before {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--color-secondary);
}

.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.12; color: #FFFFFF;
  margin-bottom: var(--space-md);
  opacity: 0; animation: heroSlide var(--dur-hero) var(--ease-out) 0.4s both;
}

.hero-title em {
  font-style: normal; color: var(--color-secondary);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.68); margin-bottom: var(--space-xl);
  line-height: 1.75; max-width: 520px;
  opacity: 0; animation: heroSlide var(--dur-hero) var(--ease-out) 0.6s both;
}

.hero-cta {
  display: flex; gap: var(--space-md); flex-wrap: wrap;
  opacity: 0; animation: heroSlide var(--dur-hero) var(--ease-out) 0.8s both;
}

.scroll-hint {
  position: absolute; bottom: var(--space-lg); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2; opacity: 0;
  animation: heroFade 1s var(--ease-out) 1.5s both;
}

.scroll-hint span {
  font-family: var(--font-heading); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.38);
}

.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ============================================================
   7. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.9rem; padding: 14px 32px;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}

.btn-orange { background: var(--color-secondary); color: #FFFFFF; }
.btn-orange:hover { background: var(--color-secondary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,123,42,0.35); }

.btn-outline-white { background: transparent; color: #FFFFFF; border: 2px solid rgba(255,255,255,0.50); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.85); transform: translateY(-2px); }

.btn-blue { background: var(--color-primary); color: #FFFFFF; }
.btn-blue:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,79,114,0.30); }

.btn-blue-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-blue-outline:hover { background: var(--color-primary); color: #FFFFFF; transform: translateY(-2px); }

.btn-orange-outline { background: transparent; color: var(--color-secondary); border: 2px solid var(--color-secondary); }
.btn-orange-outline:hover { background: var(--color-secondary); color: #fff; transform: translateY(-2px); }

.btn-wa { background: var(--color-whatsapp); color: #FFFFFF; font-size: 1rem; padding: 16px 36px; }
.btn-wa:hover { background: var(--color-whatsapp-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.38); }

/* ============================================================
   8. TITRES DE SECTION
   ============================================================ */
.section-label {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--color-secondary);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--color-secondary);
}

.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }

.section-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--color-primary); line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: 1.05rem; color: var(--color-text-secondary);
  max-width: 580px; line-height: 1.78;
}

/* ============================================================
   9. SECTION À PROPOS — #apropos
   ============================================================ */
#apropos { background: var(--color-bg); }

.apropos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); align-items: center;
  margin-top: var(--space-xl);
}

.apropos-text p {
  font-size: 1rem; color: var(--color-text);
  line-height: 1.82; margin-bottom: var(--space-md);
}

.apropos-text p strong { color: var(--color-primary); font-weight: 600; }
.apropos-text p:last-child { margin-bottom: 0; }

.apropos-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
}

.stat-item:hover {
  border-bottom-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary); line-height: 1; display: block;
}

.stat-suffix { color: var(--color-secondary); }

.stat-label {
  font-size: 0.85rem; color: var(--color-text-secondary);
  margin-top: var(--space-xs); font-weight: 500; line-height: 1.4;
}

/* ============================================================
   10. SECTION SERVICES — #services
   ============================================================ */
#services { background: var(--color-bg-alt); }

.services-header {
  text-align: center; margin-bottom: 72px;
}

.services-header .section-intro { margin: 0 auto; }

/* Bloc 2 colonnes par service */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-block.reverse .service-visual { order: -1; }

/* Texte service */
.service-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 5.5rem; color: var(--color-secondary);
  opacity: 0.10; line-height: 1;
  margin-bottom: -28px; display: block;
}

.service-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--color-primary); margin-bottom: var(--space-md);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.975rem; color: var(--color-text);
  line-height: 1.82; margin-bottom: var(--space-md);
}

.service-benefit {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,123,42,0.08); color: var(--color-secondary);
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.82rem; padding: 8px 16px 8px 12px;
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 20px 20px 0;
}

/* Visuels services */
.service-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px; display: flex; align-items: center;
  justify-content: center; position: relative;
}

/* Visuel 1 — Consulting — bleu navy */
.vis-consulting {
  background: linear-gradient(135deg, #1B4F72 0%, #0d3352 100%);
  padding: var(--space-xl); width: 100%;
}

.consult-bars { display: flex; flex-direction: column; gap: 14px; width: 100%; }

.cbar {
  display: flex; align-items: center; gap: 10px;
}

.cbar-fill {
  height: 13px; border-radius: 7px;
  background: linear-gradient(90deg, #C97B2A, #f0a94e);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.cbar-fill.alt { background: linear-gradient(90deg, #3ab8d6, #6dd5ed); }

.cbar-fill.visible { transform: scaleX(1); }

.cbar-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.7rem; flex-shrink: 0;
}

.cbar-label {
  font-family: var(--font-heading); font-size: 0.65rem; font-weight: 600;
  color: rgba(255,255,255,0.45); min-width: 60px; text-align: right;
}

/* Visuel 3 — Plateforme web & mobile — bleu profond */
.vis-web {
  background: linear-gradient(135deg, #0a2035 0%, #1e5f8a 100%);
  padding: var(--space-lg); width: 100%;
  display: flex; align-items: center; justify-content: center;
}

.web-mock {
  width: 100%; max-width: 260px;
}

.wb-browser {
  background: rgba(255,255,255,0.07);
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.wb-bar {
  background: rgba(0,0,0,0.2); padding: 8px 12px;
  display: flex; align-items: center; gap: 5px;
}

.wb-dot {
  width: 7px; height: 7px; border-radius: 50%;
}

.wb-dot:nth-child(1) { background: rgba(255,90,90,0.75); }
.wb-dot:nth-child(2) { background: rgba(255,190,40,0.75); }
.wb-dot:nth-child(3) { background: rgba(80,200,80,0.75); }

/* URL bar — scan de chargement */
.wb-url {
  flex: 1; height: 14px;
  background: rgba(255,255,255,0.07); border-radius: 3px; margin-left: 4px;
  position: relative; overflow: hidden;
}
.wb-url::after {
  content: '';
  position: absolute; top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: urlScan 2.8s linear infinite;
}

.wb-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; }

/* Hero banner — shimmer sweep */
.wb-hero {
  height: 44px;
  background: linear-gradient(90deg,
    rgba(201,123,42,0.4) 0%,
    rgba(240,169,78,0.75) 40%,
    rgba(201,123,42,0.4) 80%);
  background-size: 220% 100%;
  border-radius: 6px;
  animation: heroShimmer 2.2s linear infinite;
}

/* Content lines — pulse séquentiel */
.wb-line {
  height: 7px; border-radius: 3px;
  animation: lineLoad 3s ease-in-out infinite;
}
.wb-line:not(.s) { background: rgba(255,255,255,0.18); }
.wb-line.s      { width: 65%; background: rgba(255,255,255,0.12); animation-delay: 0.5s; }

.wb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px;
}

/* Cards — apparition flottante décalée */
.wb-card {
  height: 40px; background: rgba(255,255,255,0.06);
  border-radius: 5px;
  border-top: 2px solid rgba(201,123,42,0.5);
  animation: cardFloat 3.6s ease-in-out infinite;
}
.wb-card:nth-child(2) { animation-delay: 0.6s; }
.wb-card:nth-child(3) { animation-delay: 1.2s; }
.wb-card:nth-child(4) { animation-delay: 1.8s; }

/* Visuel 4 — Cloud — ambre brûlé */
.vis-cloud {
  background: linear-gradient(135deg, #5C2400 0%, #9B5E1A 100%);
  width: 100%; padding: var(--space-xl);
  display: flex; align-items: center; justify-content: center;
}

.cloud-diag {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-md);
}

/* Hub cloud avec anneau orbital */
.cloud-hub {
  width: 78px; height: 78px;
  background: linear-gradient(135deg, rgba(201,123,42,0.40), rgba(240,169,78,0.28));
  border: 2px solid rgba(201,123,42,0.80);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #f0a94e;
  position: relative;
  animation: cPulse 3s ease-in-out infinite;
}
/* Anneau orbital qui se dilate */
.cloud-hub::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: inherit;
  border: 1.5px solid rgba(201,123,42,0.45);
  animation: orbitRing 2.4s ease-out infinite;
}

.cloud-row { display: flex; gap: var(--space-md); }

/* Nodes avec packets de données qui remontent */
.cloud-node {
  width: 50px; height: 50px;
  background: rgba(58,184,214,0.14);
  border: 1px solid rgba(58,184,214,0.45);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #6dd5ed; font-size: 1rem;
  position: relative;
  animation: cPulse 3s ease-in-out infinite;
}
/* Packet de données animé vers le hub */
.cloud-node::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: #6dd5ed;
  border-radius: 50%;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  animation: dataPacket 3s ease-in-out infinite;
  opacity: 0;
}

.cloud-node:nth-child(1) { animation-delay: 0.5s; }
.cloud-node:nth-child(1)::before { animation-delay: 0.5s; }
.cloud-node:nth-child(2) { animation-delay: 1.1s; }
.cloud-node:nth-child(2)::before { animation-delay: 1.1s; }
.cloud-node:nth-child(3) { animation-delay: 1.7s; }
.cloud-node:nth-child(3)::before { animation-delay: 1.7s; }

.cloud-tags { display: flex; gap: 8px; }

.ctag {
  font-family: var(--font-heading); font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px; border-radius: 10px;
  animation: tagPulse 3s ease-in-out infinite;
}
.ctag:nth-child(1) { animation-delay: 0s; }
.ctag:nth-child(2) { animation-delay: 1s; }
.ctag:nth-child(3) { animation-delay: 2s; }

/* Overrides Cloud (fond ambre) : éléments en blanc pour contraste */
.vis-cloud .cloud-hub {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.vis-cloud .cloud-hub::after {
  border-color: rgba(255,255,255,0.28);
}
.vis-cloud .cloud-node {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.85);
}
.vis-cloud .cloud-node::before { background: rgba(255,255,255,0.75); }
.vis-cloud .ctag {
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.60);
  animation: tagPulseLight 3s ease-in-out infinite;
}

/* Visuel 5 — Domotique — bleu nuit */
.vis-domo {
  background: linear-gradient(135deg, #061422 0%, #1B4F72 100%);
  width: 100%; padding: var(--space-xl);
}

.domo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }

.domo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex; align-items: center; gap: 10px;
}

.domo-card i { font-size: 1.1rem; flex-shrink: 0; animation: iconGlow 5s ease-in-out infinite; }
.domo-card:nth-child(1) i { color: #f9d56e; animation-delay: 0s; }
.domo-card:nth-child(2) i { color: #6dd5ed; animation-delay: 1.2s; }
.domo-card:nth-child(3) i { color: #f0a94e; animation-delay: 2.5s; }
.domo-card:nth-child(4) i { color: #a8e6cf; animation-delay: 0.7s; }

.domo-info { flex: 1; min-width: 0; }

.domo-name {
  font-family: var(--font-heading); font-size: 0.62rem; font-weight: 700;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
  letter-spacing: 0.06em; display: block; white-space: nowrap; overflow: hidden;
}

/* Toggles — cycle on/off automatique */
.domo-toggle {
  width: 30px; height: 17px;
  border-radius: 9px; position: relative; flex-shrink: 0;
  animation: toggleBg 5s ease-in-out infinite;
}
.domo-toggle::after {
  content: ''; position: absolute;
  left: 3px; top: 3px;
  width: 11px; height: 11px;
  background: #fff; border-radius: 50%;
  animation: toggleKnob 5s ease-in-out infinite;
}

/* Décalage des toggles pour qu'ils ne soient pas tous en sync */
.domo-card:nth-child(1) .domo-toggle      { animation-delay: 0s; }
.domo-card:nth-child(1) .domo-toggle::after { animation-delay: 0s; }
.domo-card:nth-child(2) .domo-toggle      { animation-delay: 1.2s; }
.domo-card:nth-child(2) .domo-toggle::after { animation-delay: 1.2s; }
.domo-card:nth-child(3) .domo-toggle      { animation-delay: 2.5s; }
.domo-card:nth-child(3) .domo-toggle::after { animation-delay: 2.5s; }
.domo-card:nth-child(4) .domo-toggle      { animation-delay: 0.7s; }
.domo-card:nth-child(4) .domo-toggle::after { animation-delay: 0.7s; }

/* Visuel 6 — Fournitures — orange doré */
.vis-fourni {
  background: linear-gradient(135deg, #7A2E00 0%, #C97B2A 100%);
  width: 100%; padding: var(--space-xl);
}

.fourni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }

.fourni-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: background var(--dur-base), border-color var(--dur-base);
  animation: cardFloat 4s ease-in-out infinite;
}

.fourni-card:nth-child(1) { animation-delay: 0s; }
.fourni-card:nth-child(2) { animation-delay: 1s; }
.fourni-card:nth-child(3) { animation-delay: 2s; }
.fourni-card:nth-child(4) { animation-delay: 3s; }

.fourni-card:hover {
  background: rgba(201,123,42,0.12);
  border-color: rgba(201,123,42,0.35);
  animation-play-state: paused;
}

/* Icônes avec glow pulsé décalé */
.fourni-card i { margin-bottom: 8px; display: block; animation: iconGlow 4s ease-in-out infinite; }
.fourni-card:nth-child(1) i { font-size: 1.6rem; color: #6dd5ed; animation-delay: 0s; }
.fourni-card:nth-child(2) i { font-size: 1.6rem; color: #f0a94e; animation-delay: 1s; }
.fourni-card:nth-child(3) i { font-size: 1.6rem; color: #a8e6cf; animation-delay: 2s; }
.fourni-card:nth-child(4) i { font-size: 1.6rem; color: #f9d56e; animation-delay: 3s; }

.fourni-card span {
  font-family: var(--font-heading); font-size: 0.62rem; font-weight: 700;
  color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em;
}

/* Overrides Fournitures (fond orange) : cartes et icônes en blanc */
.vis-fourni .fourni-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
.vis-fourni .fourni-card:hover {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.45);
}
.vis-fourni .fourni-card:nth-child(1) i,
.vis-fourni .fourni-card:nth-child(2) i,
.vis-fourni .fourni-card:nth-child(3) i,
.vis-fourni .fourni-card:nth-child(4) i { color: rgba(255,255,255,0.88); }

/* ============================================================
   11. BLOC AGENT IA
   ============================================================ */
.agent-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

/* Visuel 2 — Agent IA — orange chaleureux */
.agent-chat-wrap {
  background: linear-gradient(135deg, #7A2E00 0%, #C97B2A 100%);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 320px;
}

.chat-header {
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Avatar sur fond orange → blanc pour contraste */
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; flex-shrink: 0;
}

.chat-name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.8rem; color: rgba(255,255,255,0.9);
}

.chat-status {
  font-size: 0.68rem; color: var(--color-whatsapp);
  display: flex; align-items: center; gap: 4px;
}

.chat-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-whatsapp);
  animation: sPulse 2s ease-in-out infinite;
}

.chat-messages {
  padding: 14px; display: flex; flex-direction: column;
  gap: 10px; flex: 1;
}

.msg-user, .msg-agent {
  padding: 9px 13px; font-size: 0.82rem;
  line-height: 1.55; max-width: 90%;
}

/* Bulles chat — blanc (utilisateur) vs bleu navy (agent) sur fond orange */
.msg-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.92);
  border: none;
  color: #3d1500;
  border-radius: 13px 13px 3px 13px;
}

.msg-agent {
  align-self: flex-start;
  background: rgba(27,79,114,0.88);
  border: 1px solid rgba(27,79,114,0.5);
  color: rgba(255,255,255,0.92);
  border-radius: 13px 13px 13px 3px;
}

.cursor-blink::after {
  content: '|'; animation: blink 0.75s infinite;
  color: var(--color-secondary);
}

/* Texte agent IA (droite) — hérite du style standard service-text */
.agent-text .service-benefit {
  margin-bottom: var(--space-md);
}

/* Plateformes — style pièce jointe */
.platforms-block {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-sm);
  position: relative;
}

.platforms-block::before {
  content: '\f0c6';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-secondary);
  opacity: 0.6;
}

.platforms-label {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-secondary); margin-bottom: 6px;
}

.platforms-sub {
  font-size: 0.85rem; color: var(--color-text-secondary);
  margin-bottom: var(--space-md); line-height: 1.5;
  font-style: italic;
}

.platforms-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.pbadge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px; padding: 5px 11px;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
  color: var(--color-text-secondary);
  opacity: 0; transform: scale(0.82);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out),
              background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}

.pbadge.vis { opacity: 1; transform: scale(1); }

.pbadge:hover {
  background: rgba(201,123,42,0.08);
  border-color: rgba(201,123,42,0.35);
  color: var(--color-secondary);
}

.pbadge i { color: var(--color-secondary); }

/* CTA section services */
.services-cta-wrap {
  text-align: center; padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
}

.services-cta-wrap p {
  color: var(--color-text-secondary); margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

/* ============================================================
   12. SECTION PROCESSUS — #processus
   ============================================================ */
#processus { background: var(--color-bg); }

.processus-header {
  text-align: center; margin-bottom: var(--space-3xl);
}

.timeline {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--space-lg); position: relative;
}

.timeline::before {
  content: ''; position: absolute;
  top: 40px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), rgba(201,123,42,0.25));
  z-index: 0;
}

.t-step { position: relative; z-index: 1; text-align: center; }

.t-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 5rem; color: var(--color-secondary);
  opacity: 0.10; line-height: 1;
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%); width: 100%;
}

.t-icon {
  width: 80px; height: 80px;
  background: var(--color-bg);
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative; z-index: 1;
  transition: background var(--dur-base), transform var(--dur-base);
}

.t-icon:hover { background: var(--color-secondary); transform: scale(1.08); }
.t-icon:hover i { color: #fff; }

.t-icon i { font-size: 1.5rem; color: var(--color-secondary); transition: color var(--dur-base); }

.t-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.t-desc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ============================================================
   13. SECTION CONTACT — #contact
   ============================================================ */
#contact {
  background: var(--color-primary);
  position: relative; overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute; right: -8%; top: -15%;
  width: 55%; height: 130%;
  background: linear-gradient(145deg, rgba(201,123,42,0.07) 0%, transparent 60%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

#contact::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 38px 38px;
}

.contact-inner { position: relative; z-index: 2; }

.contact-head {
  text-align: center; margin-bottom: var(--space-3xl);
}

.contact-head .section-label { justify-content: center; color: rgba(201,123,42,0.9); }
.contact-head .section-label::before { display: none; }
.contact-head .section-title { color: #fff; }
.contact-head .section-intro { color: rgba(255,255,255,0.60); margin: 0 auto; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); align-items: start;
}

.contact-items { display: flex; flex-direction: column; gap: var(--space-md); }

.ci {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}

.ci:hover { background: rgba(255,255,255,0.09); border-color: rgba(201,123,42,0.30); transform: translateX(4px); }
.ci a { color: inherit; }

.ci-icon {
  width: 44px; height: 44px;
  background: rgba(201,123,42,0.14); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--color-secondary); flex-shrink: 0; margin-top: 2px;
}

.ci-lbl {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.42); margin-bottom: 4px; display: block;
}

.ci-val {
  font-size: 0.96rem; color: rgba(255,255,255,0.82); line-height: 1.5;
}

.contact-right {
  display: flex; flex-direction: column; gap: var(--space-lg);
}

.wa-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-xl); text-align: center;
}

.wa-card h3 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.5rem; color: #fff; margin-bottom: var(--space-sm);
}

.wa-card p {
  color: rgba(255,255,255,0.58); font-size: 0.9rem;
  margin-bottom: var(--space-lg); line-height: 1.65;
}

.socials {
  display: flex; gap: var(--space-sm); justify-content: center;
  margin-top: var(--space-md);
}

.soc-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 1rem;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.soc-link:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(201,123,42,0.50);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
footer {
  background: #0d2d3e;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-row {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--space-md);
}

.footer-brand {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.1rem; color: rgba(255,255,255,0.88);
}

.footer-tagline {
  font-size: 0.78rem; color: rgba(255,255,255,0.30);
  margin-top: 4px; font-style: italic;
}

.footer-copy {
  font-size: 0.78rem; color: rgba(255,255,255,0.28); text-align: right;
}

.footer-copy a[href^="mailto"] {
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   15. WHATSAPP FLOTTANT (mobile)
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  background: var(--color-whatsapp); color: #fff;
  border: none; border-radius: 50px;
  padding: 13px 20px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  display: none; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
  text-decoration: none;
}

.wa-float:hover { background: var(--color-whatsapp-hover); transform: translateY(-2px); }

/* ============================================================
   16. REVEAL SCROLL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-l {
  opacity: 0; transform: translateX(-44px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal-r {
  opacity: 0; transform: translateX(44px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal-l.visible, .reveal-r.visible { opacity: 1; transform: translateX(0); }

.d1 { transition-delay: 0ms; }
.d2 { transition-delay: 100ms; }
.d3 { transition-delay: 200ms; }
.d4 { transition-delay: 300ms; }

/* ============================================================
   17. ANIMATIONS KEYFRAMES
   ============================================================ */
/* --- Service 3 : Web mock ----------------------------------------- */
@keyframes urlScan {
  0%   { left: -50%; }
  100% { left: 110%; }
}

@keyframes heroShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes lineLoad {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.55; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0);    opacity: 0.70; }
  50%       { transform: translateY(-5px); opacity: 1;    }
}

/* --- Service 4 : Cloud -------------------------------------------- */
@keyframes orbitRing {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0;    }
}

@keyframes dataPacket {
  0%        { bottom: 100%; opacity: 0;   }
  15%       { opacity: 1;                 }
  70%       { bottom: 140%;  opacity: 1;  }
  85%, 100% { bottom: 155%;  opacity: 0;  }
}

@keyframes tagPulse {
  0%, 100% { color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
  50%       { color: rgba(255,255,255,0.80); background: rgba(58,184,214,0.18); }
}

@keyframes tagPulseLight {
  0%, 100% { color: rgba(255,255,255,0.50); background: rgba(0,0,0,0.15); }
  50%       { color: rgba(255,255,255,0.90); background: rgba(0,0,0,0.28); }
}

/* --- Service 5 : Domotique ---------------------------------------- */
@keyframes toggleBg {
  0%, 40%   { background: var(--color-secondary); }
  50%, 90%  { background: rgba(255,255,255,0.20); }
  100%      { background: var(--color-secondary); }
}

@keyframes toggleKnob {
  0%, 40%  { transform: translateX(13px); }
  50%, 90% { transform: translateX(0);    }
  100%     { transform: translateX(13px); }
}

@keyframes iconGlow {
  0%, 40%   { filter: brightness(1);   transform: scale(1);    }
  50%       { filter: brightness(1.6); transform: scale(1.18); }
  90%, 100% { filter: brightness(1);   transform: scale(1);    }
}

/* --- Hero ----------------------------------------------------------- */
@keyframes heroRing {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* --- Général -------------------------------------------------------- */
@keyframes heroFade {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes heroSlide {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes cPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.72; transform: scale(0.96); }
}

@keyframes sPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
