:root {
  --surface: #0a0f1d;
  --header-bg: rgba(7, 9, 15, 0.72);
  --menu-bg: rgba(7, 9, 15, 0.98);
  --tint: rgba(255, 255, 255, 0.02);
  --tint-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.06);
  --glow-1: #10131c;
  --glow-2: #05060a;
  --grain: #fff;
  --btn-secondary-bg: #fff;
  --btn-secondary-text: #050603;
  --btn-secondary-hover: #e9e9e9;
  --ok: #7ee2b8;
  --error: #ff8e8e;
  --bg: #010104;
  --bg-soft: #0f1320;
  --text: #edf1ff;
  --muted: #a5b0d3;
  --primary: #ff7a1a;
  --primary-strong: #ff9a4d;
  --on-primary: #1a0c04;
  --border: #232b44;
  --card: rgba(17, 22, 37, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(var(--grain) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--primary-strong); }

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--text); }

.section {
  padding: 6rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -420px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 122, 26, 0.10), transparent 45%),
    radial-gradient(circle at 60% 65%, var(--line), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--glow-1) 0%, var(--glow-2) 60%, var(--bg) 100%);
  box-shadow: 0 0 140px 40px rgba(255, 122, 26, 0.06);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero .hero-grid {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.04;
  margin: 0.4rem 0 1.4rem;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--primary-strong);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0.4rem 0 2rem;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 8px 1px rgba(255, 122, 26, 0.7);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
}

.btn-primary .arrow { margin-right: 0.5rem; }

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.quick-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.quick-facts span::before {
  content: "✓";
  color: var(--primary-strong);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--primary-strong);
  box-shadow: 0 14px 30px rgba(255, 122, 26, 0.3);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: var(--btn-secondary-hover);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--tint);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--primary);
  background: rgba(255, 122, 26, 0.08);
}

.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.7rem; flex-wrap: wrap; }


.cards-grid,
.projects-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
}

.card p,
.project p { color: var(--muted); }

.card .tag,
.project .tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.card,
.project {
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.project:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.mockup-window {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 1.8rem;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--tint);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-body {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 1px;
  background: var(--border);
}

.mockup-side,
.mockup-main {
  background: var(--surface);
  padding: 1.1rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.mockup-line {
  height: 10px;
  border-radius: 5px;
  background: var(--tint-strong);
}
.mockup-line.short { width: 55%; }
.mockup-line.tag { width: 30%; background: rgba(255, 122, 26, 0.35); height: 14px; border-radius: 7px; }

.mockup-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.feature-spotlight {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 2.2rem;
}

.feature-spotlight .lead { margin: 0.8rem 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.steps div {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
}

.steps span {
  font-weight: 800;
  color: var(--primary-strong);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  background: var(--card);
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 0.8rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-wrap,
  .steps,
  .cards-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .btn-ghost { display: none; }

  /* NOTE : l'affichage de .nav-toggle en mobile est gere par la media query
     situee en FIN de fichier (sinon la regle .nav-toggle { display: none }
     definie plus bas dans le fichier l'emporterait par ordre source). */

  /* Menu deroulant en mobile : le toggle reste visible meme menu ouvert */
  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 4vw 1.1rem;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }

  .main-nav.is-open a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-wrap {
    position: relative;
  }
}
/* --- Pages légales --- */
.legal-main {
  padding: 140px 0 96px;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.legal-main section {
  margin-bottom: 2.25rem;
  max-width: 76ch;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.legal-main p,
.legal-main li {
  color: var(--muted, var(--muted));
  line-height: 1.75;
}

.legal-main ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

/* --- Statut du formulaire de contact --- */
.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  min-height: 1.25em;
}

.form-status:empty {
  display: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Menu mobile --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Reveal au scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cascade : chaque carte d'une meme grille apparait un peu apres la precedente */
.cards-grid .reveal:nth-child(2),
.projects-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3),
.projects-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4),
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Entree du hero au chargement (pas de scroll necessaire, il est visible d'emblee) --- */
.hero .badge,
.hero h1,
.hero .lead,
.hero .hero-actions,
.hero .quick-facts {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .lead { animation-delay: 0.25s; }
.hero .hero-actions { animation-delay: 0.35s; }
.hero .quick-facts { animation-delay: 0.42s; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .badge,
  .hero h1,
  .hero .lead,
  .hero .hero-actions,
  .hero .quick-facts {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Menu mobile : media query placee en fin de fichier a dessein ---
   Elle doit venir APRES .nav-toggle { display: none } (regle de base) pour
   gagner par ordre source. Sinon le bouton hamburger resterait invisible. */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }
}

/* --- Visuel tech du hero (SVG inline, anime) --- */
/* --- Icones des cartes solutions --- */
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 122, 26, 0.06);
  color: var(--primary-strong);
  transition: transform 0.3s ease, background 0.3s ease;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card:hover .card-icon {
  transform: scale(1.06);
  background: rgba(255, 122, 26, 0.14);
}

/* --- Graphique anime dans la maquette du back-office --- */
.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mockup-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(255, 122, 26, 0.25), rgba(255, 122, 26, 0.7));
  transform: scaleY(0);
  transform-origin: bottom;
}

.feature-spotlight.is-visible .mockup-chart span {
  animation: chart-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d) forwards;
}

@keyframes chart-grow {
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-chart span { transform: none; }
  .card:hover .card-icon { transform: none; }
}

/* --- Fond anime du hero : formes qui derivent + reseau de lignes --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.55;
  background: radial-gradient(circle at 40% 40%, rgba(255, 154, 77, 0.9), rgba(255, 122, 26, 0.35) 60%, transparent 72%);
  animation: blob-drift 22s ease-in-out infinite alternate;
}

.blob-1 { width: 420px; height: 420px; top: -120px; left: -140px; }
.blob-2 { width: 300px; height: 300px; bottom: -90px; right: -60px; animation-duration: 28s; animation-delay: -6s; }
.blob-3 { width: 180px; height: 180px; top: 35%; left: 46%; opacity: 0.35; animation-duration: 18s; animation-delay: -3s; }

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.12); }
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.net-line {
  fill: none;
  stroke: rgba(255, 154, 77, 0.22);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: net-draw 4s ease-in-out infinite alternate;
  vector-effect: non-scaling-stroke;
}

.net-dot {
  fill: var(--primary-strong);
  opacity: 0.6;
  animation: net-pulse 3.2s ease-in-out infinite;
}

.net-dot:nth-of-type(2n) { animation-delay: -1.4s; }
.net-dot:nth-of-type(3n) { animation-delay: -2.2s; }

@keyframes net-draw {
  0% { stroke-dashoffset: 1; }
  50%, 100% { stroke-dashoffset: 0; }
}

@keyframes net-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .net-line,
  .net-dot { animation: none; }
  .net-line { stroke-dashoffset: 0; }
}

/* --- Hero centre : une seule colonne, texte centre --- */
.hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-grid > div {
  max-width: 900px;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions,
.quick-facts {
  justify-content: center;
}

.hero h1,
.hero .lead {
  text-wrap: balance;
}

/* --- Theme clair : memes jetons, valeurs claires --- */
:root[data-theme="light"] {
  --surface: #fffaf3;
  --header-bg: rgba(253, 247, 238, 0.85);
  --menu-bg: rgba(253, 247, 238, 0.98);
  --tint: rgba(120, 64, 20, 0.04);
  --tint-strong: rgba(120, 64, 20, 0.08);
  --line: rgba(120, 64, 20, 0.1);
  --glow-1: #fff4e6;
  --glow-2: #f8ead8;
  --grain: #5a3418;
  --btn-secondary-bg: #2b1a0e;
  --btn-secondary-text: #fffaf3;
  --btn-secondary-hover: #4a2e18;
  --ok: #2f7a3c;
  --error: #b8321f;
  --bg: #fbf3e8;
  --bg-soft: #fffaf3;
  --text: #2b1a0e;
  --muted: #6e5543;
  --primary-strong: #c9500a;
  --border: #ead9c4;
  --card: rgba(255, 250, 243, 0.9);
}

:root[data-theme="light"] body { background: var(--bg); }

/* --- Bascule de theme --- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
}

/* Icone : lune en theme sombre (passer au clair), soleil en theme clair */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* --- Widget de discussion visiteur (chat.js) --- */
.chat-launch {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chat-launch:hover,
.chat-launch:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.chat-launch[aria-expanded="true"] { border-color: var(--primary); }

.chat-launch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px 1px rgba(255, 122, 26, 0.7);
}

.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5.2rem;
  z-index: 41;
  width: min(360px, calc(100vw - 2.4rem));
  max-height: min(520px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.chat-panel[hidden] { display: none; }

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-title {
  display: block;
  font-size: 0.98rem;
}

.chat-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.chat-close:hover,
.chat-close:focus-visible { color: var(--text); }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem 1rem 1rem;
  min-height: 0;
  overflow: hidden;
}

.chat-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.chat-log:empty { display: none; }

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-visitor { justify-self: end; }

.chat-msg-team {
  justify-self: start;
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.1);
}

.chat-msg-who {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 0.15rem;
}

.chat-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-status:empty { display: none; }

.chat-form {
  display: grid;
  gap: 0.5rem;
}

.chat-form[hidden] { display: none; }

.chat-form label { display: block; }

.chat-form input,
.chat-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2);
}

.chat-reply {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.chat-reply[hidden] { display: none; }

.chat-send {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .chat-launch { right: 0.8rem; bottom: 0.8rem; }
  .chat-panel { right: 0.8rem; bottom: 4.6rem; }
}

/* --- Pied de page : newsletter + reseaux sociaux --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hp { position: absolute; left: -9999px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: end;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.newsletter-title {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 0.3rem 0 0.5rem;
}

.newsletter-text {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: var(--surface);
}

.footer-social { justify-self: end; }

.social-list {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.social-list svg { width: 20px; height: 20px; }

.social-list a:hover,
.social-list a:focus-visible {
  color: var(--primary-strong);
  border-color: var(--primary);
  background: rgba(255, 122, 26, 0.1);
  transform: translateY(-4px) rotate(-4deg);
}

/* --- Motion supplementaire --- */

/* Soulignement anime du menu */
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

/* Reflet qui traverse le bouton principal au survol */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::before { animation: btn-shine 0.8s ease; }

@keyframes btn-shine {
  to { left: 130%; }
}

/* Icones des cartes qui flottent doucement */
.card-icon { animation: icon-float 4s ease-in-out infinite; }
.card:nth-child(2) .card-icon { animation-delay: -1.3s; }
.card:nth-child(3) .card-icon { animation-delay: -2.6s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Numeros des etapes : s'illuminent a l'apparition */
.steps .reveal span { display: inline-block; }
.steps .reveal.is-visible span { animation: step-glow 1.2s ease 0.3s both; }

@keyframes step-glow {
  0% { text-shadow: none; transform: scale(0.8); }
  40% { text-shadow: 0 0 18px rgba(255, 122, 26, 0.9); transform: scale(1.15); }
  100% { text-shadow: none; transform: scale(1); }
}

/* Titres de section : apparition un peu plus douce */
.section .eyebrow.reveal { transform: translateY(10px); }
.section h2.reveal { transition-delay: 0.08s; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-social { justify-self: start; }
  .newsletter-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .card-icon,
  .steps .reveal.is-visible span { animation: none; }
  .btn-primary:hover::before { animation: none; }
  .social-list a:hover { transform: none; }
  .main-nav a::after { transition: none; }
}

/* Liens du pied de page aux couleurs du theme ; place pour le bouton du chat */
.site-footer { padding-bottom: 6.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--primary-strong); }

/* ===================== Vitrine des solutions ===================== */
.showcase-head { max-width: 720px; margin-bottom: 2.2rem; }
.showcase-head h2 { margin-bottom: 0.8rem; }

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.showcase-tab {
  position: relative;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 1rem 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-tab:hover { transform: translateY(-2px); color: var(--text); }
.showcase-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.showcase-tab[aria-selected="true"] { border-color: var(--primary); color: var(--text); }

.showcase-tab-num { font-size: 0.78rem; font-weight: 800; color: var(--primary-strong); letter-spacing: 0.08em; }
.showcase-tab-label { font-weight: 700; font-size: 1.02rem; }

.showcase-tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--line);
}

.showcase-tab-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.showcase-tab[aria-selected="true"] .showcase-tab-bar span { width: 100%; }
.showcase.is-playing .showcase-tab[aria-selected="true"] .showcase-tab-bar span {
  width: 0;
  animation: tab-progress var(--showcase-ms, 8000ms) linear forwards;
}
.showcase.is-paused .showcase-tab[aria-selected="true"] .showcase-tab-bar span { animation-play-state: paused; }

@keyframes tab-progress { to { width: 100%; } }

.showcase-stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 122, 26, 0.12), transparent 45%),
    var(--card);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow: hidden;
}

.showcase-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.showcase-panel[hidden] { display: none; }

.showcase-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 0 0 1rem; }

.showcase-points { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.showcase-points li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
}
.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.16);
  box-shadow: inset 0 0 0 4px rgba(255, 122, 26, 0.16), inset 0 0 0 9px var(--primary);
}

/* Entree du panneau actif : texte en cascade, visuel qui se pose */
.showcase-panel.is-active .showcase-copy > * { animation: sc-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.showcase-panel.is-active .showcase-points li { animation: sc-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.showcase-panel.is-active .showcase-points li:nth-child(1) { animation-delay: 0.15s; }
.showcase-panel.is-active .showcase-points li:nth-child(2) { animation-delay: 0.23s; }
.showcase-panel.is-active .showcase-points li:nth-child(3) { animation-delay: 0.31s; }
.showcase-panel.is-active .showcase-points li:nth-child(4) { animation-delay: 0.39s; }
.showcase-panel.is-active .showcase-visual { animation: sc-float-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes sc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sc-float-in {
  from { opacity: 0; transform: perspective(1000px) rotateY(-10deg) translateX(30px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.showcase-visual { position: relative; }
.showcase-note { color: var(--muted); font-size: 0.78rem; margin: 0.6rem 0 0; text-align: right; }

/* Fenetre d'interface generique */
.ui-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 122, 26, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-visual:hover .ui-window { transform: translateY(-4px); }

.ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.ui-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ui-bar span:nth-child(1) { background: #ff6b5e; }
.ui-bar span:nth-child(2) { background: #ffbd44; }
.ui-bar span:nth-child(3) { background: #3ccf6e; }
.ui-bar em { margin-left: 0.6rem; font-style: normal; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.ui-body { padding: 1.1rem; display: grid; gap: 0.9rem; min-height: 330px; }

/* --- ERP --- */
.erp-sync {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
}
.erp-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 8px #3ccf6e; }
.erp-sync.is-offline .erp-dot { background: #ffbd44; box-shadow: 0 0 8px #ffbd44; animation: pulse-dot 1s ease-in-out infinite; }

.erp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.erp-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem; background: var(--tint); }
.erp-kpi small { display: block; color: var(--muted); font-size: 0.72rem; }
.erp-kpi strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.erp-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 96px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.erp-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(255, 122, 26, 0.25), var(--primary));
  transform: scaleY(0);
  transform-origin: bottom;
}
.showcase-panel.is-active .erp-chart span { animation: chart-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.showcase-panel.is-active .erp-chart span:nth-child(2) { animation-delay: 0.08s; }
.showcase-panel.is-active .erp-chart span:nth-child(3) { animation-delay: 0.16s; }
.showcase-panel.is-active .erp-chart span:nth-child(4) { animation-delay: 0.24s; }
.showcase-panel.is-active .erp-chart span:nth-child(5) { animation-delay: 0.32s; }
.showcase-panel.is-active .erp-chart span:nth-child(6) { animation-delay: 0.40s; }
.showcase-panel.is-active .erp-chart span:nth-child(7) { animation-delay: 0.48s; }

.erp-stock { display: grid; gap: 0.55rem; }
.erp-stock div { display: grid; gap: 0.25rem; }
.erp-stock small { color: var(--muted); font-size: 0.74rem; }
.erp-stock i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong)) no-repeat left / 0 100%, var(--line);
}
.showcase-panel.is-active .erp-stock i { animation: bar-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
@keyframes bar-fill { to { background-size: var(--w) 100%, auto; } }

/* --- Communication --- */
.com-call {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  background: rgba(255, 122, 26, 0.08);
}
.com-call strong { display: block; font-size: 0.95rem; }
.com-call small { color: var(--muted); font-size: 0.76rem; }

.com-wave { display: flex; align-items: center; gap: 3px; height: 32px; }
.com-wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleY(0.3);
  animation: wave 1s ease-in-out infinite;
}
.com-wave i:nth-child(2) { animation-delay: -0.15s; }
.com-wave i:nth-child(3) { animation-delay: -0.3s; }
.com-wave i:nth-child(4) { animation-delay: -0.45s; }
.com-wave i:nth-child(5) { animation-delay: -0.6s; }
.com-wave i:nth-child(6) { animation-delay: -0.75s; }
.com-wave i:nth-child(7) { animation-delay: -0.9s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.com-summary { padding: 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.com-summary small { color: var(--primary-strong); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.com-typing { margin: 0.35rem 0 0; min-height: 4.5em; font-size: 0.9rem; }
.com-typing::after { content: "▍"; color: var(--primary); animation: blink 0.9s steps(1) infinite; }
.com-typing.is-done::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }

.com-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.com-inbox li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
}
.com-inbox b { font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--tint-strong); color: var(--muted); }
.com-inbox li.is-urgent { border-color: rgba(255, 107, 94, 0.5); }
.com-inbox li.is-urgent b { background: rgba(255, 107, 94, 0.18); color: #ff8a7e; }
.showcase-panel.is-active .com-inbox li { animation: sc-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.showcase-panel.is-active .com-inbox li:nth-child(1) { animation: urgent-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both; }
.showcase-panel.is-active .com-inbox li:nth-child(2) { animation-delay: 0.2s; }
.showcase-panel.is-active .com-inbox li:nth-child(3) { animation-delay: 0.3s; }
@keyframes urgent-up {
  from { opacity: 0; transform: translateY(90px); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* --- Marketing --- */
.mkt-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.mkt-days span { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-align: center; }
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 58px);
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
}
.mkt-post {
  grid-column: var(--c);
  grid-row: var(--r);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.25;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.35);
  overflow: hidden;
}
.mkt-post b { display: block; color: var(--primary-strong); font-size: 0.66rem; }
.showcase-panel.is-active .mkt-post { animation: post-drop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.showcase-panel.is-active .mkt-post:nth-child(2) { animation-delay: 0.25s; }
.showcase-panel.is-active .mkt-post:nth-child(3) { animation-delay: 0.5s; }
.showcase-panel.is-active .mkt-post:nth-child(4) { animation-delay: 0.75s; }
.showcase-panel.is-active .mkt-post:nth-child(5) { animation-delay: 1s; }
@keyframes post-drop { from { opacity: 0; transform: translateY(-16px) scale(0.85); } to { opacity: 1; transform: none; } }

.mkt-approval {
  position: relative;
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  overflow: hidden;
}
.mkt-approval > span { grid-area: 1 / 1; transition: opacity 0.4s ease, transform 0.4s ease; }
.mkt-state { color: var(--muted); }
.mkt-check { opacity: 0; transform: translateY(12px); color: #3ccf6e; }
.mkt-approval.is-approved { border-color: rgba(60, 207, 110, 0.5); background: rgba(60, 207, 110, 0.08); }
.mkt-approval.is-approved .mkt-state { opacity: 0; transform: translateY(-12px); }
.mkt-approval.is-approved .mkt-check { opacity: 1; transform: none; }

/* ===================== Barre de progression de lecture ===================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  pointer-events: none;
}

/* ===================== Halo qui suit la souris sur les cartes ===================== */
.card,
.project,
.showcase-tab { position: relative; isolation: isolate; }
.card::after,
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.card:hover::after,
.project:hover::after { opacity: 1; }

@media (max-width: 900px) {
  .showcase-tabs { grid-template-columns: 1fr; }
  .showcase-panel { grid-template-columns: 1fr; }
  .showcase-visual { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-panel.is-active *,
  .showcase-panel.is-active .showcase-visual,
  .com-wave i,
  .erp-sync.is-offline .erp-dot,
  .com-typing::after { animation: none !important; }
  .erp-chart span { transform: none; }
  .erp-stock i { background-size: var(--w) 100%, auto; }
  .scroll-progress { display: none; }
}

/* Mobile : onglets compacts sur une ligne, en-tete logo | theme + menu */
@media (max-width: 900px) {
  .showcase-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .showcase-tab { padding: 0.6rem 0.6rem 0.8rem; }
  .showcase-tab-label { font-size: 0.8rem; line-height: 1.25; }
}
@media (max-width: 980px) {
  .site-header .theme-toggle { margin-left: auto; margin-right: 0.6rem; }
  .site-header .nav-toggle { order: 3; }
}

/* --- Fond anime du hero (canvas, hero-bg.js) --- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* L'animation passe au-dessus du voile du hero (z 1) mais sous le texte (z 2) ;
   un masque l'adoucit derriere le titre pour garder le texte parfaitement lisible. */
.hero-bg { z-index: 1; }
.hero-canvas {
  -webkit-mask-image: radial-gradient(ellipse 40% 32% at 50% 44%, rgba(0, 0, 0, 0.35), #000 75%);
  mask-image: radial-gradient(ellipse 40% 32% at 50% 44%, rgba(0, 0, 0, 0.35), #000 75%);
}
.blob { opacity: 0.4; }

.legal-main a { color: var(--primary-strong); }

/* ===================== Menu « Écrire à l'équipe » ===================== */
.contact-menu {
  position: fixed;
  right: 1.2rem;
  bottom: 5.2rem;
  z-index: 42;
  width: min(330px, calc(100vw - 2.4rem));
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.3rem;
  animation: menu-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}
.contact-menu[hidden] { display: none; }
@keyframes menu-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

.contact-menu-title { margin: 0.3rem 0.5rem 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--muted); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact-item:hover,
.contact-item:focus-visible { background: var(--tint-strong); border-color: var(--border); transform: translateX(-2px); outline: none; }

.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--primary-strong);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-item.is-whatsapp .contact-icon { background: #25d366; color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.contact-item.is-whatsapp { border-color: rgba(37, 211, 102, 0.35); }

.contact-text { display: grid; gap: 0.1rem; min-width: 0; }
.contact-text strong { font-size: 0.95rem; }
.contact-text small { color: var(--muted); font-size: 0.78rem; }

@media (max-width: 520px) {
  .contact-menu { right: 0.8rem; bottom: 4.6rem; }
}

/* ===================== Parcours « Parlons de votre projet » ===================== */
.pj-lock, .pj-lock body { overflow: hidden; }

.pj-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 4, 3, 0.62);
  backdrop-filter: blur(6px);
  animation: pj-fade 0.25s ease;
}
.pj-overlay[hidden] { display: none; }
@keyframes pj-fade { from { opacity: 0; } to { opacity: 1; } }

.pj-dialog {
  width: min(560px, 100%);
  height: min(720px, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: pj-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pj-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

.pj-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.pj-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--on-primary);
  font-weight: 800;
  flex-shrink: 0;
}
.pj-titles { display: grid; flex: 1; min-width: 0; }
.pj-titles strong { font-size: 1rem; }
.pj-sub { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.78rem; }
.pj-online { width: 7px; height: 7px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 6px #3ccf6e; }
.pj-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.pj-icon-btn:hover,
.pj-icon-btn:focus-visible { border-color: var(--primary); outline: none; }
.pj-icon-btn[hidden] { display: none; }

.pj-progress { height: 3px; background: var(--line); }
.pj-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pj-log {
  list-style: none;
  margin: 0;
  padding: 1.1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}
.pj-msg {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  animation: pj-msg 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pj-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pj-bot { align-self: flex-start; background: var(--tint-strong); border-bottom-left-radius: 4px; }
.pj-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--on-primary);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.pj-typing { display: flex; gap: 4px; padding: 0.85rem 1rem; }
.pj-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pj-dot 1s ease-in-out infinite; }
.pj-typing i:nth-child(2) { animation-delay: 0.15s; }
.pj-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pj-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.pj-recap { max-width: 100%; width: 100%; border: 1px solid rgba(255, 122, 26, 0.35); background: rgba(255, 122, 26, 0.07); }
.pj-recap p { margin: 0.15rem 0; font-size: 0.88rem; }
.pj-recap b { color: var(--primary-strong); }

.pj-input {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  max-height: 55%;
  overflow-y: auto;
}
.pj-input:empty { display: none; }

.pj-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pj-chip {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tint);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  animation: pj-msg 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pj-chip:nth-child(2) { animation-delay: 0.04s; }
.pj-chip:nth-child(3) { animation-delay: 0.08s; }
.pj-chip:nth-child(4) { animation-delay: 0.12s; }
.pj-chip:nth-child(5) { animation-delay: 0.16s; }
.pj-chip:nth-child(6) { animation-delay: 0.2s; }
.pj-chip:nth-child(7) { animation-delay: 0.24s; }
.pj-chip:hover,
.pj-chip:focus-visible { border-color: var(--primary); background: rgba(255, 122, 26, 0.1); transform: translateY(-1px); outline: none; }
.pj-chip[aria-checked="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.pj-chips-sm .pj-chip { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.pj-text,
.pj-contact { display: grid; gap: 0.6rem; }
.pj-text input,
.pj-text textarea,
.pj-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.7rem 0.85rem;
  font: inherit;
  resize: vertical;
}
.pj-text input:focus,
.pj-text textarea:focus,
.pj-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2); }
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.pj-field { display: grid; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.pj-small { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--muted); }
.pj-consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.8rem; color: var(--muted); }
.pj-consent input { margin-top: 0.15rem; accent-color: var(--primary); }
.pj-error { margin: 0; min-height: 1em; font-size: 0.85rem; color: var(--error); }
.pj-error:empty { display: none; }
.pj-row { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.pj-send { padding: 0.65rem 1.2rem; }
.pj-link { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pj-link:hover { color: var(--text); }
.pj-wa { background: #25d366; color: #06210f; }
.pj-wa:hover,
.pj-wa:focus-visible { background: #2ee673; box-shadow: 0 14px 30px rgba(37, 211, 102, 0.3); }

@media (max-width: 600px) {
  .pj-overlay { padding: 0; }
  .pj-dialog { height: 100%; border-radius: 0; border: 0; }
  .pj-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-overlay, .pj-dialog, .pj-msg, .pj-chip, .contact-menu, .pj-typing i { animation: none; }
}

/* Icone WhatsApp du bouton final du parcours */
.pj-wa { display: inline-flex; align-items: center; gap: 0.5rem; }
.pj-wa-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1 2.7c.1.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.5 1 2.7c.1.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===================== Services d'integration ===================== */
.integration-head { max-width: 760px; margin-bottom: 2.2rem; }
.integration-head h2 { margin-bottom: 0.8rem; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Liseré lumineux en haut de la carte au survol */
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 26, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.svc-card:hover { border-color: rgba(255, 122, 26, 0.55); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover::after { opacity: 1; }

.svc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 122, 26, 0.08);
  color: var(--primary-strong);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-card:hover .svc-icon { transform: rotate(-6deg) scale(1.08); background: rgba(255, 122, 26, 0.16); }

.svc-card h3 { margin: 0.3rem 0 0; font-size: 1.15rem; }
.svc-card p { margin: 0; color: var(--muted); }

.svc-list { list-style: none; margin: 0.3rem 0 0.4rem; padding: 0; display: grid; gap: 0.35rem; }
.svc-list li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; }
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}

.svc-link {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.svc-link span { transition: transform 0.25s ease; }
.svc-link:hover span,
.svc-link:focus-visible span { transform: translateX(4px); }

.svc-card-cta {
  justify-content: center;
  border-color: rgba(255, 122, 26, 0.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.22), transparent 55%),
    var(--card);
}
.svc-card-cta h3 { font-size: 1.3rem; }
.svc-card-cta .btn { align-self: flex-start; margin-top: 0.6rem; }

/* Etapes d'intervention */
.svc-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.svc-steps::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--border) 60%, transparent);
  z-index: 0;
}
.svc-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.svc-steps span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--bg);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.svc-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.svc-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.svc-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.svc-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.svc-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-steps::before { display: none; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-card:hover, .svc-icon, .svc-card:hover .svc-icon { transition: none; transform: none; }
}

/* ===================== Icones animees sur mesure (section Integration) ===================== */
.svc-icon { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; }
.svc-icon .mi { width: 40px; height: 40px; overflow: visible; }
/* Le mouvement vient des icones elles-memes : plus de rotation de la tuile. */
.svc-card:hover .svc-icon { transform: scale(1.06); }
.svc-card:hover .mi { filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.55)); }
.mi * { transform-box: fill-box; }

/* Securite : la camera balaie, le voyant clignote, le cone de vision suit */
.mi-cam-head { transform-box: view-box; transform-origin: 16px 27px; animation: mi-pan 5s ease-in-out infinite; }
.mi-cone { opacity: 0.16; animation: mi-cone 5s ease-in-out infinite; }
.mi-rec { animation: mi-blink 1.4s steps(1) infinite; }
.svc-card:hover .mi-cam-head,
.svc-card:hover .mi-cone { animation-duration: 2.4s; }
@keyframes mi-pan { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes mi-cone { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.28; } }
@keyframes mi-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }

/* Informatique : les lignes s'ecrivent l'une apres l'autre, le curseur clignote */
.mi-line { transform-origin: left center; transform: scaleX(0); animation: mi-type 4.2s ease-in-out infinite; }
.mi-l2 { animation-delay: 0.45s; }
.mi-l3 { animation-delay: 0.9s; }
.mi-caret { animation: mi-blink 0.9s steps(1) infinite; }
.svc-card:hover .mi-line { animation-duration: 2.4s; }
@keyframes mi-type {
  0% { transform: scaleX(0); }
  25%, 75% { transform: scaleX(1); }
  95%, 100% { transform: scaleX(0); }
}

/* Reseau : les equipements s'allument quand un paquet arrive */
.mi-wire { opacity: 0.55; }
.mi-node { animation: mi-node 2.2s ease-in-out infinite; }
.mi-node-2 { animation-delay: 0.9s; }
.mi-node-3 { animation-delay: 2s; }
.mi-packet { filter: drop-shadow(0 0 3px currentColor); }
@keyframes mi-node {
  0%, 70%, 100% { fill: transparent; }
  80% { fill: rgba(255, 122, 26, 0.35); }
}

/* VoIP : les ondes partent du combine ; il sonne au survol */
.mi-wave { opacity: 0; animation: mi-wave 2.4s ease-out infinite; }
.mi-w2 { animation-delay: 0.3s; }
.mi-w3 { animation-delay: 0.6s; }
.mi-handset { transform-box: view-box; transform-origin: 18px 24px; }
.svc-card:hover .mi-handset { animation: mi-ring 0.9s ease-in-out infinite; }
@keyframes mi-wave {
  0% { opacity: 0; }
  20% { opacity: 1; }
  60%, 100% { opacity: 0; }
}
@keyframes mi-ring {
  0%, 50%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
}

/* Domotique : la fenetre s'allume, le signal sans fil pulse */
.mi-glow { opacity: 0.1; animation: mi-light 3.6s ease-in-out infinite; }
.mi-sig { opacity: 0.2; animation: mi-sig 1.8s ease-in-out infinite; }
.mi-s2 { animation-delay: 0.25s; }
.svc-card:hover .mi-glow { animation-duration: 1.6s; }
@keyframes mi-light {
  0%, 35% { opacity: 0.1; }
  45%, 85% { opacity: 0.85; }
  100% { opacity: 0.1; }
}
@keyframes mi-sig { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Plusieurs services : deux engrenages qui tournent ensemble */
.svc-icon-cta { margin-bottom: 0.2rem; border-color: rgba(255, 122, 26, 0.45); background: rgba(255, 122, 26, 0.14); }
.mi-gear { transform-origin: center; }
.mi-g1 { animation: mi-spin 8s linear infinite; }
.mi-g2 { animation: mi-spin 6s linear infinite reverse; }
.svc-card:hover .mi-g1 { animation-duration: 3s; }
.svc-card:hover .mi-g2 { animation-duration: 2.25s; }
@keyframes mi-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .mi *, .svc-card:hover .mi * { animation: none !important; }
  .mi-line { transform: none; }
  .mi-wave, .mi-sig { opacity: 0.8; }
  .mi-glow { opacity: 0.6; }
  .mi-packet { display: none; }
}

/* ===================== Scene animee : techniciens au travail ===================== */
.integration-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.integration-copy { max-width: 620px; }

.tech-scene { margin: 0; }
.tech-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.tech-scene * { transform-box: view-box; }

/* Couleurs (s'adaptent au theme via les jetons du site) */
.ts-wall { fill: var(--card); stroke: var(--border); }
.ts-floor { stroke: var(--border); stroke-width: 2; }
.ts-cable { fill: none; stroke: var(--border); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ts-packet { fill: var(--primary); filter: drop-shadow(0 0 5px rgba(255, 122, 26, 0.9)); }
.ts-metal { stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.ts-cam-body { fill: var(--surface); stroke: var(--text); stroke-width: 2.4; }
.ts-cam-lens { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.ts-rec { fill: #ff5a4a; }
.ts-sparks path { fill: none; stroke: #ffc247; stroke-width: 2.4; stroke-linecap: round; }
.ts-ladder path { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.ts-leg { stroke: #2b3550; stroke-width: 9; stroke-linecap: round; }
.ts-vest { fill: var(--primary); }
.ts-stripe { stroke: #fff4d6; stroke-width: 3.5; stroke-linecap: round; opacity: 0.9; }
.ts-arm { fill: none; stroke: #8a5634; stroke-width: 7; stroke-linecap: round; }
.ts-skin { fill: #8a5634; }
.ts-hat { fill: #ffc247; }
.ts-hat-brim { stroke: #ffc247; stroke-width: 4; stroke-linecap: round; }
.ts-tool { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.ts-rack-body { fill: #151a28; stroke: var(--border); stroke-width: 2; }
.ts-unit { fill: #1f2638; stroke: #2c3550; }
.ts-led { fill: #3ccf6e; }
.ts-port { stroke: #4a5573; stroke-width: 3; stroke-linecap: round; }
.ts-plug { stroke: var(--primary-strong); stroke-width: 5; stroke-linecap: round; }
.ts-cable-hand { fill: none; stroke: var(--primary-strong); stroke-width: 2.6; stroke-linecap: round; }
.ts-ap-body { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.ts-wifi { fill: none; stroke: var(--primary-strong); stroke-width: 2.6; stroke-linecap: round; }
.ts-desk { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.ts-laptop-screen { fill: #151a28; stroke: var(--text); stroke-width: 2; }
.ts-laptop-base { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.ts-code { fill: var(--primary); }
.ts-ok circle { fill: #3ccf6e; }
.ts-ok path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* Technicien 1 : visse la camera (bras + tournevis), etincelles */
.ts-arm-1 { transform-origin: 100px 156px; animation: ts-screw 0.9s ease-in-out infinite; }
.ts-sparks { opacity: 0; animation: ts-spark 0.9s steps(1) infinite; }
.ts-rec { animation: mi-blink 1.4s steps(1) infinite; }
.ts-tech-1 { animation: ts-breathe 3s ease-in-out infinite; }
@keyframes ts-screw { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes ts-spark { 0%, 40% { opacity: 0; } 45%, 60% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes ts-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

/* Technicien 2 : enfonce le cable dans la baie ; les voyants clignotent */
.ts-arm-2 { animation: ts-plug 2.2s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.ts-head-2 { transform-origin: 308px 190px; animation: ts-look 4.4s ease-in-out infinite; }
.ts-led { animation: ts-led 1.6s steps(1) infinite; }
.ts-led-2 { animation-delay: 0.3s; fill: var(--primary); }
.ts-led-3 { animation-delay: 0.7s; }
.ts-led-4 { animation-delay: 1.1s; fill: var(--primary); }
.ts-led-5 { animation-delay: 0.5s; }
@keyframes ts-plug { 0%, 100% { transform: translateX(6px); } 40%, 60% { transform: translateX(-3px); } }
@keyframes ts-look { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes ts-led { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }

/* Technicien 3 : tape sur le portable, hoche la tete ; le code s'ecrit ; le Wi-Fi emet */
.ts-arm-3 { transform-origin: 474px 212px; animation: ts-type 0.5s ease-in-out infinite; }
.ts-head-3 { transform-origin: 486px 194px; animation: ts-nod 2.8s ease-in-out infinite; }
.ts-code { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: mi-type 3.6s ease-in-out infinite; }
.ts-c2 { animation-delay: 0.4s; }
.ts-c3 { animation-delay: 0.8s; }
.ts-wifi { opacity: 0; animation: mi-wave 2.2s ease-out infinite; }
.ts-wifi-2 { animation-delay: 0.3s; }
.ts-wifi-3 { animation-delay: 0.6s; }
@keyframes ts-type { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
@keyframes ts-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }

/* Validation qui apparait */
.ts-ok { transform-origin: 452px 150px; animation: ts-ok 4.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
@keyframes ts-ok {
  0%, 55% { transform: scale(0); opacity: 0; }
  62%, 90% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@media (max-width: 980px) {
  .integration-head { grid-template-columns: 1fr; }
  .tech-scene { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-scene * { animation: none !important; }
  .ts-code { transform: none; }
  .ts-wifi, .ts-ok { opacity: 1; transform: none; }
  .ts-packet { display: none; }
}
