/* ==========================================================
   SIMBANDI TECH-NUMERIQUE — Thème sombre futuriste
   ========================================================== */

:root {
  --night: #0A111E;
  --night-2: #0E1A2E;
  --cyan: #00A8FF;
  --cyan-2: #00D2FF;
  --silver: #9FB3C8;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,168,255,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0,210,255,.08), transparent 60%),
    var(--night);
}

::selection { background: rgba(0,168,255,.35); }

/* ---------- Header ---------- */
#site-header.scrolled {
  background: rgba(10,17,30,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(0,168,255,.35), 0 8px 20px rgba(0,168,255,.25);
  transition: transform .3s ease;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo-badge:hover { transform: rotate(-4deg) scale(1.05); }

.nav-link {
  position: relative; color: #cbd5e1; transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  transition: width .3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 9999px;
  font-weight: 600; color: #04121f;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 10px 30px rgba(0,168,255,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,168,255,.5); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 9999px;
  font-weight: 600; color: #fff;
  border: 1px solid rgba(0,210,255,.45);
  background: rgba(0,210,255,.08);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.btn-ghost:hover { background: rgba(0,210,255,.18); border-color: var(--cyan-2); transform: translateY(-2px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 9999px;
  font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #00b35c, #25D366);
  box-shadow: 0 10px 30px rgba(37,211,102,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,211,102,.45); }

/* ---------- Hero ---------- */
.hero-grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,168,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,255,.22), transparent 65%);
  filter: blur(30px);
  animation: float 8s ease-in-out infinite alternate;
}

.gradient-text {
  background: linear-gradient(90deg, #fff 10%, var(--cyan-2) 55%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@keyframes float {
  from { transform: translateY(-12px) translateX(0); }
  to   { transform: translateY(14px) translateX(12px); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Cartes ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(0,168,255,.12), transparent 60%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: rgba(0,168,255,.45); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }

.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(0,168,255,.2), rgba(0,210,255,.08));
  border: 1px solid rgba(0,210,255,.35);
  color: var(--cyan-2);
  transition: transform .35s ease;
}
.card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }

/* ---------- Formulaire ---------- */
.field {
  width: 100%; padding: .85rem 1.1rem; border-radius: .8rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field::placeholder { color: #64748b; }
.field:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,168,255,.18); }
select.field option { background: var(--night-2); color: #fff; }

.section-tag {
  display: inline-block; padding: .35rem 1rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cyan-2); background: rgba(0,210,255,.08); border: 1px solid rgba(0,210,255,.3);
}

/* ---------- Boutons flottants ---------- */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, #25D366, #00b35c);
  animation: pulse-ring 2.4s infinite;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

.call-float {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), #0077cc);
  box-shadow: 0 10px 30px rgba(0,168,255,.4);
  transition: transform .25s ease;
}
.call-float:hover { transform: scale(1.1); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Divers ---------- */
.footer-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; margin-bottom: 1rem; letter-spacing: .05em; }

.hero-img-card {
  border-radius: 1.5rem; overflow: hidden;
  border: 1px solid rgba(0,210,255,.3);
  box-shadow: 0 30px 80px rgba(0,168,255,.18);
  background: var(--night-2);
}

/* ============ FOND : FORMES 3D ANIMÉES ============ */
.bg3d { position: fixed; inset: 0; z-index: -1; overflow: hidden; perspective: 1200px; pointer-events: none; }
.shape3d { position: absolute; }

/* Cube filaire en rotation */
.cube3d { width: 110px; height: 110px; top: 15%; right: 9%;
  transform-style: preserve-3d; animation: spin3d 24s linear infinite; }
.cube3d i { position: absolute; inset: 0;
  border: 1.5px solid rgba(0,210,255,.45);
  background: rgba(0,168,255,.05);
  box-shadow: inset 0 0 24px rgba(0,168,255,.18); }
.cube3d i:nth-child(1) { transform: rotateY(0deg)   translateZ(55px); }
.cube3d i:nth-child(2) { transform: rotateY(90deg)  translateZ(55px); }
.cube3d i:nth-child(3) { transform: rotateY(180deg) translateZ(55px); }
.cube3d i:nth-child(4) { transform: rotateY(270deg) translateZ(55px); }
.cube3d i:nth-child(5) { transform: rotateX(90deg)  translateZ(55px); }
.cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(55px); }

/* Sphères lumineuses flottantes */
.sphere3d { border-radius: 50%; filter: blur(1px); }
.sp-a { width: 190px; height: 190px; top: 52%; left: -70px;
  background: radial-gradient(circle at 32% 28%, rgba(0,210,255,.5), rgba(0,90,160,.12) 55%, transparent 72%);
  animation: floatY 14s ease-in-out infinite; }
.sp-b { width: 95px; height: 95px; top: 68%; right: 16%;
  background: radial-gradient(circle at 30% 25%, rgba(120,190,255,.55), rgba(0,60,120,.14) 55%, transparent 72%);
  animation: floatY 11s ease-in-out infinite reverse; }

/* Anneau orbital */
.ring3d { width: 230px; height: 230px; top: 9%; left: 5%; border-radius: 50%;
  border: 2px solid rgba(0,168,255,.28);
  box-shadow: 0 0 30px rgba(0,168,255,.14), inset 0 0 30px rgba(0,168,255,.09);
  animation: ringSpin 20s linear infinite; }

/* Gemme inclinée tournante */
.gem3d { width: 72px; height: 72px; bottom: 13%; left: 40%;
  border: 1.5px solid rgba(0,210,255,.4);
  background: linear-gradient(135deg, rgba(0,168,255,.14), rgba(0,210,255,.03));
  animation: gemSpin 15s linear infinite; }
.gem3d::before { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top right,  transparent 49.3%, rgba(0,210,255,.45) 50%, transparent 50.7%),
    linear-gradient(to bottom right, transparent 49.3%, rgba(0,210,255,.45) 50%, transparent 50.7%); }

@keyframes spin3d  { from { transform: rotateX(-18deg) rotateY(0); }     to { transform: rotateX(-18deg) rotateY(360deg); } }
@keyframes floatY  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-32px); } }
@keyframes ringSpin{ from { transform: rotateX(72deg) rotateZ(0); }      to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes gemSpin { from { transform: rotateX(55deg) rotateZ(45deg); }  to { transform: rotateX(55deg) rotateZ(405deg); } }

@media (max-width: 768px) {
  .cube3d { width: 70px; height: 70px; right: 5%; top: 10%; }
  .cube3d i { transform-origin: center; }
  .cube3d i:nth-child(1) { transform: rotateY(0deg)   translateZ(35px); }
  .cube3d i:nth-child(2) { transform: rotateY(90deg)  translateZ(35px); }
  .cube3d i:nth-child(3) { transform: rotateY(180deg) translateZ(35px); }
  .cube3d i:nth-child(4) { transform: rotateY(270deg) translateZ(35px); }
  .cube3d i:nth-child(5) { transform: rotateX(90deg)  translateZ(35px); }
  .cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); }
  .ring3d { width: 150px; height: 150px; left: -30px; }
  .sp-a { width: 120px; height: 120px; }
  .gem3d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shape3d { animation: none !important; }
}
