/* =========================================================
   GLOBAL CONNECTION SARL — Feuille de style principale
   Bootstrap 5.3 + styles sur mesure
   ========================================================= */

:root {
  --navy-950: #060a24;
  --navy-900: #0a1033;
  --navy-800: #111a4d;
  --navy-700: #1b2466;
  --brand: #303694;          /* bleu du logo */
  --brand-500: #3d46c2;
  --brand-300: #8f96f0;
  --cyan: #22d3ee;           /* signal / data */
  --cyan-600: #0bb5d4;
  --accent: #ff8a1f;         /* chaleur / offre */
  --ink: #0f1435;
  --muted: #5d6488;
  --line: #e4e7f5;
  --soft: #f4f6fd;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(16, 24, 77, .25);
  --shadow-lg: 0 40px 80px -30px rgba(10, 16, 51, .45);
  --grad: linear-gradient(120deg, var(--brand-500) 0%, var(--cyan) 100%);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); letter-spacing: -.02em; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
::selection { background: var(--cyan); color: var(--navy-900); }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-gradient-animated {
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 25%, var(--brand-300) 50%, var(--cyan) 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

.text-muted-2 { color: var(--muted) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-accent { color: var(--accent) !important; }
.bg-soft { background: var(--soft); }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .85rem 1.6rem; transition: all .35s cubic-bezier(.2,.8,.2,1); }
.btn-glow {
  position: relative; color: #fff; border: 0; isolation: isolate; overflow: hidden;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, .55);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(120%); } }
.btn-glow:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(34, 211, 238, .7); background-position: 100% 0; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn-outline-brand { color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline-brand:hover { color: #fff; background: var(--brand); }
.btn .bi { transition: transform .3s; }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-950); color: rgba(255,255,255,.75);
  font-size: .82rem; padding: .5rem 0; position: relative; z-index: 1031;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--cyan); }
.topbar .bi { color: var(--cyan); margin-right: .35rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; margin-right: .45rem; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2ee59d; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Navbar ---------- */
.site-nav {
  position: absolute; top: 37px; left: 0; right: 0; z-index: 1030;
  padding: 1rem 0; transition: all .4s ease;
}
.site-nav.scrolled {
  position: fixed; top: 0; padding: .55rem 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -15px rgba(10,16,51,.25);
  animation: navIn .45s ease;
}
@keyframes navIn { from { transform: translateY(-100%); } to { transform: none; } }
.site-nav .navbar-brand img { height: 66px; transition: height .3s; }
.site-nav.scrolled .navbar-brand img { height: 48px; }
.site-nav .logo-dark { display: none; }
.site-nav.scrolled .logo-light { display: none; }
.site-nav.scrolled .logo-dark { display: inline-block; }
.site-nav .nav-link {
  color: rgba(255,255,255,.88); font-weight: 500; padding: .5rem 1rem !important; position: relative;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav.scrolled .nav-link { color: var(--ink); }
.site-nav.scrolled .nav-link.active, .site-nav.scrolled .nav-link:hover { color: var(--brand-500); }
.site-nav .navbar-toggler { border: 0; color: #fff; font-size: 1.8rem; box-shadow: none !important; }
.site-nav.scrolled .navbar-toggler { color: var(--ink); }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: var(--navy-900); border-radius: var(--radius); padding: 1rem; margin-top: .8rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.scrolled .navbar-collapse .nav-link { color: rgba(255,255,255,.88); }
}

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; min-height: 100vh; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; min-height: 100vh; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: kenburns 16s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2%, -1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 80% 40%, rgba(48,54,148,.35), transparent 60%),
    linear-gradient(100deg, rgba(6,10,36,.96) 0%, rgba(10,16,51,.86) 45%, rgba(10,16,51,.55) 100%);
}
.grid-bg {
  position: absolute; inset: -60px; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(143,150,240,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,150,240,.18) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%);
  animation: gridMove 12s linear infinite;
}
@keyframes gridMove { to { transform: translate(60px, 60px); } }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--brand-500); top: -120px; right: 10%; }
.blob-2 { width: 320px; height: 320px; background: var(--cyan); bottom: -120px; left: 30%; opacity: .25; animation-duration: 22s; }
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.15); }
  100% { transform: translate(40px, -30px) scale(.95); }
}
.hero-content {
  position: relative; z-index: 3; min-height: 100vh; display: flex; align-items: center;
  padding-top: 140px; padding-bottom: 110px;
}
.hero .carousel-caption-custom { max-width: 640px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 800; line-height: 1.06; margin-bottom: 1.4rem; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3);
  padding: .45rem .95rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.eyebrow.light { color: var(--brand-500); background: rgba(61,70,194,.08); border-color: rgba(61,70,194,.2); }
.eyebrow .live-dot { margin-right: 0; background: currentColor; }
.eyebrow .live-dot::after { background: currentColor; }

/* animation des textes à chaque slide */
.carousel-item .anim { opacity: 0; transform: translateY(30px); }
.carousel-item.active .anim { animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.carousel-item.active .anim:nth-child(2) { animation-delay: .15s; }
.carousel-item.active .anim:nth-child(3) { animation-delay: .3s; }
.carousel-item.active .anim:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero .hero-indicators {
  z-index: 5; bottom: 118px; left: 0; right: auto; margin: 0 0 0 max(12px, calc((100vw - 1320px) / 2 + 12px));
  justify-content: flex-start; gap: .6rem;
}
.hero .hero-indicators [data-bs-target] {
  width: 44px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.25); opacity: 1;
  position: relative; overflow: hidden; padding: 0; margin: 0; text-indent: 0;
}
.hero .hero-indicators [data-bs-target].active::after {
  content: ""; position: absolute; inset: 0; background: var(--cyan); transform-origin: left;
  animation: progress 7s linear forwards;
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 5; pointer-events: none; }
.hero-arrows { display: flex; justify-content: flex-end; gap: .6rem; }
.hero-arrows button { pointer-events: auto; }
.hero-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06); color: #fff; backdrop-filter: blur(6px); transition: all .3s;
}
.hero-arrows button:hover { background: #fff; color: var(--navy-900); }

/* Carte réseau animée (SVG) */
.netmap-wrap {
  position: absolute; z-index: 4; right: 3%; top: 50%; transform: translateY(-46%);
  width: min(560px, 42vw);
}
.netmap { width: 100%; height: auto; overflow: visible; }
.netmap .link { fill: none; stroke: rgba(143,150,240,.35); stroke-width: 2; }
.netmap .link-fiber { stroke: url(#gFiber); stroke-width: 2.5; stroke-dasharray: 6 10; animation: dash 1.4s linear infinite; }
.netmap .link-radio { stroke: rgba(34,211,238,.55); stroke-width: 1.6; stroke-dasharray: 2 7; animation: dash 1s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.netmap .node { fill: var(--navy-800); stroke: rgba(143,150,240,.6); stroke-width: 1.5; }
.netmap .node-core { fill: var(--navy-900); stroke: var(--cyan); stroke-width: 2; }
.netmap .pulse { fill: none; stroke: var(--cyan); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.netmap .pulse.d2 { animation-delay: 1.4s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.netmap .pkt { fill: #fff; filter: drop-shadow(0 0 6px var(--cyan)); }
.netmap .pkt.c { fill: var(--cyan); }
.netmap .lbl rect { fill: rgba(10,16,51,.85); stroke: rgba(143,150,240,.4); }
.netmap .lbl text { fill: #fff; font: 600 11px var(--font-body); letter-spacing: .06em; }
.netmap .ico { fill: var(--cyan); }
.netmap .spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; z-index: 6;
  background: rgba(17, 26, 77, .72); backdrop-filter: blur(12px);
  border: 1px solid rgba(143,150,240,.3); border-radius: 16px;
  padding: .75rem 1rem; color: #fff; font-size: .82rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.float-card .bi { font-size: 1.3rem; color: var(--cyan); }
.float-card.fc-1 { top: -4%; left: -6%; }
.float-card.fc-2 { top: 50%; right: -9%; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.signal-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.signal-bars i { width: 4px; background: var(--cyan); border-radius: 2px; animation: bars 1.2s ease-in-out infinite; }
.signal-bars i:nth-child(1) { height: 40%; }
.signal-bars i:nth-child(2) { height: 65%; animation-delay: .15s; }
.signal-bars i:nth-child(3) { height: 85%; animation-delay: .3s; }
.signal-bars i:nth-child(4) { height: 100%; animation-delay: .45s; }
@keyframes bars { 50% { opacity: .35; } }

.scroll-hint {
  position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1199.98px) { .netmap-wrap { display: none; } }

/* ---------- Bandeau défilant ---------- */
.ticker {
  position: relative; z-index: 4; overflow: hidden; white-space: nowrap;
  background: var(--grad); color: #fff; padding: 1.05rem 0;
  transform: rotate(-1.2deg) scale(1.03); margin-top: -28px; margin-bottom: -10px;
  box-shadow: 0 20px 40px -20px rgba(34,211,238,.6);
}
.ticker-track { display: inline-flex; animation: marquee 32s linear infinite; }
.ticker-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 3rem; margin-right: 3rem; }
.ticker-track span::after { content: "✦"; color: rgba(255,255,255,.7); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--navy-900); color: #fff; overflow: hidden; }
.section-dark .text-muted-2 { color: rgba(255,255,255,.65) !important; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.section-dark .section-intro { color: rgba(255,255,255,.7); }

/* Révélation au scroll */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.reveal-left { transform: translateX(-50px); }
.js .reveal.reveal-right { transform: translateX(50px); }
.js .reveal.reveal-zoom { transform: scale(.9); }
.js .reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }

/* ---------- Cartes services ---------- */
.svc-card {
  position: relative; height: 100%; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.svc-card .svc-img { position: relative; height: 210px; overflow: hidden; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.svc-card:hover .svc-img img { transform: scale(1.12) rotate(1deg); }
.svc-card .svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,16,51,.7)); }
.svc-card .svc-icon {
  position: absolute; z-index: 2; left: 1.5rem; top: 182px;
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.5rem;
  box-shadow: 0 12px 25px -8px rgba(61,70,194,.7);
  transition: transform .5s;
}
.svc-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.svc-card .svc-body { padding: 2.4rem 1.6rem 1.7rem; }
.svc-card h3 { font-size: 1.2rem; font-weight: 700; }
.svc-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.svc-link { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.svc-link .bi { transition: transform .3s; }
.svc-card:hover .svc-link .bi { transform: translateX(5px); }
.svc-num { position: absolute; z-index: 2; top: 1rem; right: 1.2rem; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: rgba(255,255,255,.85); text-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* Bordure lumineuse rotative */
.glow-border { position: relative; isolation: isolate; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--cyan) 80%, var(--brand-500) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotateBorder 5s linear infinite;
}
@keyframes rotateBorder { to { --angle: 360deg; } }

/* ---------- Offre INÉDIT / bascule ---------- */
.offer-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff;
  font-weight: 800; letter-spacing: .12em; font-size: .78rem; padding: .45rem 1rem; border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(255,138,31,.7); animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-4deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(0); } }
.price-strike { position: relative; display: inline-block; color: rgba(255,255,255,.55); }
.price-strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px; background: var(--accent); transform: rotate(-3deg); }

.failover-card {
  background: linear-gradient(160deg, rgba(27,36,102,.9), rgba(10,16,51,.95));
  border: 1px solid rgba(143,150,240,.25); border-radius: 28px; padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.failover { width: 100%; height: auto; }
.failover .bld { fill: #1d2770; stroke: rgba(143,150,240,.5); }
.failover .win { fill: rgba(34,211,238,.6); animation: winBlink 3s ease-in-out infinite; }
.failover .win:nth-of-type(2n) { animation-delay: .8s; }
.failover .win:nth-of-type(3n) { animation-delay: 1.6s; }
@keyframes winBlink { 50% { fill: rgba(143,150,240,.25); } }
.failover .lbl { fill: #fff; font: 600 12px var(--font-body); letter-spacing: .08em; }
.failover .lbl-sm { fill: rgba(255,255,255,.6); font: 500 10.5px var(--font-body); letter-spacing: .05em; }
.failover .fiber-base { stroke: #2a3480; stroke-width: 8; stroke-linecap: round; fill: none; }
.failover .fiber-live { stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 30 18; filter: drop-shadow(0 0 6px var(--cyan)); animation: dash2 .9s linear infinite, fiberState 10s linear infinite; }
@keyframes dash2 { to { stroke-dashoffset: -48; } }
@keyframes fiberState { 0%, 46% { opacity: 1; } 48%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
.failover .cut { animation: cutState 10s linear infinite; opacity: 0; }
.failover .cut line { stroke: #ff4d6d; stroke-width: 4; stroke-linecap: round; }
@keyframes cutState { 0%, 46% { opacity: 0; } 48%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
.failover .radio { stroke: rgba(143,150,240,.35); stroke-width: 2.5; stroke-dasharray: 3 9; fill: none; stroke-linecap: round; animation: dash 1s linear infinite, radioState 10s linear infinite; }
@keyframes radioState { 0%, 46% { stroke: rgba(143,150,240,.35); } 48%, 96% { stroke: #ffb066; filter: drop-shadow(0 0 5px #ff8a1f); } 98%, 100% { stroke: rgba(143,150,240,.35); } }
.failover .wave { fill: none; stroke: #ffb066; stroke-width: 2; stroke-linecap: round; opacity: 0; animation: waveOut 10s linear infinite; }
@keyframes waveOut {
  0%, 46% { opacity: 0; }
  50%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
.failover .wave-anim { transform-box: fill-box; transform-origin: left center; animation: waveScale 1.4s ease-out infinite; }
.failover .wave-anim.r { transform-origin: right center; }
.failover .wave-anim.d2 { animation-delay: .45s; }
.failover .wave-anim.d3 { animation-delay: .9s; }
@keyframes waveScale { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.failover .st-a { animation: fiberState 10s linear infinite; }
.failover .st-b { animation: cutState 10s linear infinite; opacity: 0; }
.failover .st-pill-a { fill: rgba(34,211,238,.15); stroke: var(--cyan); }
.failover .st-pill-b { fill: rgba(255,138,31,.15); stroke: var(--accent); }
.failover .pkt { fill: #fff; }
.failover .pkt-f { animation: fiberState 10s linear infinite; }
.failover .pkt-r { animation: cutState 10s linear infinite; opacity: 0; fill: #ffd2a6; }

/* Liste avec coches */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .85rem; }
.check-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: -1px;
  width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem;
  background: rgba(34,211,238,.15); color: var(--cyan-600);
}
.section-dark .check-list li::before { color: var(--cyan); }

/* ---------- Chiffres ---------- */
.stats-band { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; }
.stats-band .grid-bg { opacity: .2; mask-image: none; -webkit-mask-image: none; }
.stat { text-align: center; padding: 1.5rem 1rem; position: relative; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; }
.stat-label { color: rgba(255,255,255,.65); margin-top: .6rem; font-size: .95rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: linear-gradient(transparent, rgba(143,150,240,.4), transparent); }
@media (max-width: 767.98px) { .stat + .stat::before { display: none; } }

/* ---------- Avantages ---------- */
.feature {
  height: 100%; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: all .45s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -70px; bottom: -70px;
  background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%); transition: transform .6s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::after { transform: scale(1.8); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(61,70,194,.08); color: var(--brand-500); margin-bottom: 1.2rem; transition: all .4s;
}
.feature:hover .feature-icon { background: var(--grad); color: #fff; transform: rotate(-6deg); }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.section-dark .feature { background: rgba(255,255,255,.04); border-color: rgba(143,150,240,.18); }
.section-dark .feature p { color: rgba(255,255,255,.65); }
.section-dark .feature-icon { background: rgba(34,211,238,.12); color: var(--cyan); }

/* ---------- Étapes ---------- */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan), var(--brand-500));
  background-size: 200% 100%; animation: flow 3s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
@media (max-width: 991.98px) { .steps::before { display: none; } }
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step-num {
  width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff;
  background: var(--navy-900); border: 2px solid var(--cyan); position: relative;
  box-shadow: 0 0 0 8px #fff, 0 15px 30px -10px rgba(10,16,51,.5);
}
.bg-soft .step-num { box-shadow: 0 0 0 8px var(--soft), 0 15px 30px -10px rgba(10,16,51,.5); }
.step-num::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(61,70,194,.35); animation: spin 14s linear infinite; }
.step h3 { font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Produits Ubiquiti ---------- */
.product {
  height: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 1.6rem;
  text-align: center; transition: all .45s; position: relative; overflow: hidden;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-img { height: 200px; display: grid; place-items: center; margin-bottom: 1rem; position: relative; }
.product-img::before {
  content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.2); opacity: .6; } }
.product-img img { max-height: 180px; position: relative; mix-blend-mode: multiply; animation: float 6s ease-in-out infinite; }
.product h3 { font-size: 1.15rem; font-weight: 700; }
.spec { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1rem; }
.spec span { font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: var(--soft); color: var(--brand); }
.spec span .bi { color: var(--cyan-600); margin-right: .25rem; }

/* ---------- Partenaires ---------- */
.logo-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  width: 190px; height: 100px; flex: 0 0 auto; margin-right: 1.5rem; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 1rem;
}
.logo-item img { max-height: 64px; max-width: 150px; filter: grayscale(1) contrast(1.3); opacity: .9; transition: all .4s; }
.logo-item:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- Bloc image + badges ---------- */
.img-stack { position: relative; padding: 0 0 40px 40px; }
.img-stack .img-main { border-radius: 28px; width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow-lg); }
.img-stack .img-sub {
  position: absolute; left: 0; bottom: 0; width: 46%; height: 210px; object-fit: cover; border-radius: 22px;
  border: 8px solid #fff; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.img-stack .badge-float {
  position: absolute; right: -10px; top: 30px; background: #fff; border-radius: 18px; padding: 1rem 1.2rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; animation: float 6s ease-in-out infinite; animation-delay: -2s;
}
.img-stack .badge-float .bi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; }
.img-stack .badge-float strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.img-stack .badge-float small { color: var(--muted); }
.orbit-deco { position: absolute; right: -40px; bottom: -20px; width: 180px; height: 180px; border: 2px dashed rgba(61,70,194,.25); border-radius: 50%; animation: spin 30s linear infinite; z-index: -1; }
.orbit-deco::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
@media (max-width: 575.98px) { .img-stack { padding: 0 0 30px 0; } .img-stack .img-main { height: 320px; } .img-stack .badge-float { right: 8px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; color: #fff; padding: 4.5rem 3rem;
  background: linear-gradient(120deg, var(--navy-800), var(--brand), var(--brand-500), var(--navy-800));
  background-size: 300% 300%; animation: gradMove 12s ease infinite;
}
@keyframes gradMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta .radar { position: absolute; right: 8%; top: 50%; width: 10px; height: 10px; }
.cta .radar span { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; border: 1px solid rgba(34,211,238,.4); animation: radar 4s linear infinite; }
.cta .radar span:nth-child(2) { animation-delay: 1.33s; }
.cta .radar span:nth-child(3) { animation-delay: 2.66s; }
@keyframes radar { from { transform: scale(.1); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.cta h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.cta > * { position: relative; }
@media (max-width: 575.98px) { .cta { padding: 3rem 1.5rem; } }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; padding: 210px 0 150px; }
.page-hero .hero-bg { animation-duration: 20s; }
.page-hero .hero-overlay { background: linear-gradient(100deg, rgba(6,10,36,.95) 0%, rgba(10,16,51,.82) 55%, rgba(48,54,148,.55) 100%); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 620px; }
.page-hero .container { position: relative; z-index: 3; }
.crumbs { display: flex; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--cyan); }
.wave-bottom { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; overflow: hidden; }
.wave-bottom svg { width: 200%; height: 90px; animation: waveSlide 14s linear infinite; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
.page-hero .hero-mark { position: absolute; z-index: 2; right: 6%; top: 50%; width: 340px; transform: translateY(-50%); opacity: .9; }
.page-hero .hero-mark img { width: 100%; filter: brightness(0) invert(1); opacity: .12; animation: spin 60s linear infinite; }
.page-hero .hero-mark .ring { position: absolute; inset: -30px; border: 1px dashed rgba(34,211,238,.4); border-radius: 50%; animation: spin 25s linear infinite reverse; }
.page-hero .hero-mark .ring::after { content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
@media (max-width: 991.98px) { .page-hero .hero-mark { display: none; } .page-hero { padding: 180px 0 120px; } }

/* ---------- Sous-navigation services ---------- */
.subnav { position: sticky; top: 64px; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.subnav .nav::-webkit-scrollbar { display: none; }
.subnav .nav-link { white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 1rem 1.1rem; border-bottom: 2px solid transparent; }
.subnav .nav-link:hover, .subnav .nav-link.active { color: var(--brand-500); border-bottom-color: var(--cyan); }

/* ---------- Bloc service détaillé ---------- */
.svc-detail { padding: 100px 0; scroll-margin-top: 120px; position: relative; }
.svc-detail.section-dark { overflow: hidden; }
.svc-detail .tag { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(61,70,194,.3); }
.svc-media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.svc-media img { width: 100%; height: 440px; object-fit: cover; transition: transform 1.2s; }
.svc-media:hover img { transform: scale(1.06); }
.svc-media .scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(34,211,238,.25), transparent); animation: scan 4.5s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.svc-media .media-chip { position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(10,16,51,.8); backdrop-filter: blur(8px); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; box-shadow: var(--shadow); }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; height: 100%; }
.mini-card .bi { font-size: 1.4rem; color: var(--brand-500); }
.mini-card h4 { font-size: 1rem; font-weight: 700; margin: .5rem 0 .3rem; }
.mini-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.fiber-types .ft { border-radius: 18px; padding: 1.4rem; color: #fff; position: relative; overflow: hidden; }
.fiber-types .ft-1 { background: linear-gradient(135deg, var(--brand), var(--brand-500)); }
.fiber-types .ft-2 { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.fiber-types .ft::after { content: ""; position: absolute; left: -50%; bottom: 10px; width: 200%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: beam 2.5s linear infinite; }
@keyframes beam { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.fiber-types .ft strong { font-family: var(--font-head); font-size: 1.8rem; display: block; }

/* Antenne animée */
.antenna-anim { width: 100%; max-width: 360px; }
.antenna-anim .arc { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: arcs 2.4s ease-out infinite; }
.antenna-anim .arc.a2 { animation-delay: .4s; }
.antenna-anim .arc.a3 { animation-delay: .8s; }
@keyframes arcs { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.antenna-anim .bolt { animation: boltFlash 3s steps(1) infinite; }
@keyframes boltFlash { 0%, 70%, 76%, 100% { opacity: 0; } 72%, 78% { opacity: 1; } }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 16px !important; margin-bottom: .9rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; font-family: var(--font-head); padding: 1.2rem 1.4rem; }
.faq .accordion-button:not(.collapsed) { background: rgba(61,70,194,.06); color: var(--brand); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(34,211,238,.3); }
.faq .accordion-body { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  height: 100%; border-radius: var(--radius); padding: 2rem 1.6rem; background: #fff; border: 1px solid var(--line);
  transition: all .4s; text-align: center;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.contact-card .ic {
  width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 22px; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--grad); color: #fff; position: relative;
}
.contact-card .ic::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid rgba(34,211,238,.4); animation: ping2 2.4s ease-out infinite; }
@keyframes ping2 { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.contact-card .ic.wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.contact-card a.small-mail { font-size: .86rem; }
.form-panel { background: #fff; border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-panel .form-control, .form-panel .form-select { border-radius: 14px; border-color: var(--line); background: var(--soft); }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); background: #fff; }
.req-type input { display: none; }
.req-type label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .8rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; transition: all .3s; height: 100%;
}
.req-type label .bi { font-size: 1.2rem; color: var(--brand-500); }
.req-type input:checked + label { border-color: var(--cyan); background: rgba(34,211,238,.08); color: var(--brand); box-shadow: 0 8px 20px -10px rgba(34,211,238,.6); }
.support-panel { background: var(--navy-900); color: #fff; border-radius: 28px; padding: 2.5rem; position: relative; overflow: hidden; height: 100%; }
.support-panel .grid-bg { opacity: .25; }
.support-panel > * { position: relative; }
.support-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgba(143,150,240,.18); }
.support-line:last-of-type { border-bottom: 0; }
.support-line .bi { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--cyan); font-size: 1.2rem; }
.support-line a { color: #fff; }
.support-line a:hover { color: var(--cyan); }
.map-wrap { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: saturate(.8) hue-rotate(10deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); position: relative; overflow: hidden; padding-top: 90px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), var(--brand-500), transparent); background-size: 200% 100%; animation: flow 4s linear infinite; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.3rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .7rem; }
.site-footer .f-contact li { display: flex; gap: .7rem; }
.site-footer .f-contact .bi { color: var(--cyan); }
.footer-big {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 8.4vw, 8rem); line-height: .9; letter-spacing: -.04em; overflow: hidden;
  white-space: nowrap; text-align: center; margin-top: 3rem; user-select: none;
  background: linear-gradient(180deg, rgba(143,150,240,.22), rgba(143,150,240,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { border-top: 1px solid rgba(143,150,240,.15); padding: 1.4rem 0; font-size: .88rem; }

/* ---------- WhatsApp flottant & retour haut ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: #25d366;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
}
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping2 2s ease-out infinite; }
.wa-float::after { animation-delay: 1s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .wa-tip { position: absolute; right: 72px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; padding: .5rem .9rem; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: all .3s; pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 1039; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy-900); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-500); }

/* Spotlight qui suit la souris */
.spotlight { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.12), transparent 60%); }

/* Accessibilité : réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Ajustements mobiles ---------- */
html, body { overflow-x: clip; }
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .section { padding: 80px 0; }
  .svc-detail { padding: 80px 0; }
  .svc-media img { height: 300px; }
  .svc-detail .tag { font-size: 3.2rem; }
  .ticker-track span { font-size: 1rem; }
  .img-stack .orbit-deco { display: none; }
  .form-panel, .support-panel { padding: 1.6rem; }
  .hero-content { padding-top: 120px; }
}
@media (max-width: 767.98px) { .site-nav { top: 0; } }
