/* ============================================================
   Basabi Consulting — Thème « High-tech » (28/11/2026)
   Surcouche de app.css : à charger APRÈS app.css.
   Tout est désactivé pour les visiteurs qui demandent moins d'animations.
   ============================================================ */

:root {
  --cyan:        #22d3ee;
  --violet:      #8b5cf6;
  --neon:        linear-gradient(135deg, #22d3ee 0%, #3498db 45%, #8b5cf6 100%);
  --grid-line:   rgba(34, 211, 238, .07);
  --font-tech:   'JetBrains Mono', ui-monospace, monospace;
  --font-head:   'Space Grotesk', 'Inter', sans-serif;
}

h1, h2, h3, .hero-title { font-family: var(--font-head); letter-spacing: -.02em; }
.text-gradient { background: var(--neon); -webkit-background-clip: text; background-clip: text; background-size: 200% 200%; animation: ht-shift 8s ease infinite; }

/* ── Fond global : grille fine + halo ─────────────────────── */
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, .08), transparent 60%),
    var(--dark);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

/* ── Barre de navigation façon verre ─────────────────────── */
#mainNavbar { background: rgba(10, 12, 20, .72) !important; backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(34, 211, 238, .12); }
#mainNavbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--neon); opacity: .5; transform-origin: left; animation: ht-scan 6s ease-in-out infinite; }

/* ── Hero : réseau animé + grille en perspective ─────────── */
.hero-section { isolation: isolate; }
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-section .container { z-index: 1; }
.hero-section::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 45%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .18) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: ht-floor 4s linear infinite;
}
.hero-badge {
  font-family: var(--font-tech); font-size: .78rem; letter-spacing: .02em;
  background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); color: var(--cyan);
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, .6) inset;
}
.hero-badge::after { content: "_"; margin-left: .25rem; animation: ht-blink 1s steps(1) infinite; }

/* Visuel : anneaux HUD autour de l'image */
.hero-img-wrap { border: 0 !important; box-shadow: 0 0 80px rgba(34, 211, 238, .25), 0 0 0 1px rgba(34, 211, 238, .35) inset !important; }
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; top: 50%; left: 50%; border-radius: 50%; pointer-events: none;
}
.hero-visual::before {
  width: 390px; height: 390px; margin: -195px 0 0 -195px;
  border: 1px dashed rgba(34, 211, 238, .35);
  animation: ht-spin 30s linear infinite;
}
.hero-visual::after {
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  background: conic-gradient(from 0deg, transparent 0 75%, rgba(34, 211, 238, .9) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: ht-spin 5s linear infinite;
}
.floating-card { z-index: 2; background: rgba(17, 21, 37, .75); backdrop-filter: blur(8px); border-color: rgba(34, 211, 238, .25); font-family: var(--font-tech); }
.floating-card i { color: var(--cyan); }

/* ── Boutons néon ────────────────────────────────────────── */
.btn-primary {
  background: var(--neon) !important; background-size: 200% 200% !important; border: 0 !important;
  box-shadow: 0 8px 30px -10px rgba(34, 211, 238, .7);
  transition: transform .2s, box-shadow .2s, background-position .6s;
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0 !important; box-shadow: 0 12px 36px -8px rgba(139, 92, 246, .7); }
.btn-outline-light, .btn-outline-primary { position: relative; overflow: hidden; }
.btn-outline-light::before, .btn-outline-primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .18), transparent);
  transition: left .6s;
}
.btn-outline-light:hover::before, .btn-outline-primary:hover::before { left: 140%; }

/* ── Étiquettes de section façon code ────────────────────── */
.section-tag { font-family: var(--font-tech); letter-spacing: .04em; color: var(--cyan) !important; }
.section-tag::before { content: "</ "; opacity: .6; }
.section-tag::after  { content: " >"; opacity: .6; }

/* ── Cartes réactives : halo qui suit la souris + bordure lumineuse ── */
.offer-card, .service-card, .ai-service-card, .stat-card, .testimonial-card, .about-stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 32, 53, .85), rgba(17, 21, 37, .85)) !important;
  border: 1px solid rgba(34, 211, 238, .12) !important;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.offer-card::before, .service-card::before, .ai-service-card::before, .stat-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .14), transparent 40%);
}
.offer-card:hover, .service-card:hover, .ai-service-card:hover, .stat-card:hover {
  border-color: rgba(34, 211, 238, .45) !important;
  box-shadow: 0 20px 50px -20px rgba(34, 211, 238, .35), 0 0 0 1px rgba(34, 211, 238, .15) inset;
}
.offer-card:hover::before, .service-card:hover::before, .ai-service-card:hover::before, .stat-card:hover::before { opacity: 1; }
.offer-card > *, .service-card > *, .ai-service-card > * { position: relative; }

/* Carte mise en avant : bordure dégradée animée */
.offer-card.featured { border-color: transparent !important; }
.offer-card.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ht-angle, 0deg), #22d3ee, #3498db, #8b5cf6, #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ht-border 6s linear infinite;
}
@property --ht-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.offer-card .ai-card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 1rem; }
.offer-card .ai-card-badge { position: absolute; top: 1.25rem; right: 1.25rem; width: auto; padding: .25rem .75rem; border-radius: 999px; font-size: .72rem; color: #fff; }
.ai-card-icon, .service-icon {
  background: rgba(34, 211, 238, .08) !important; color: var(--cyan) !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25) inset, 0 0 24px -6px rgba(34, 211, 238, .5);
}
.offer-price strong { font-family: var(--font-head); background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-card-badge { background: var(--neon) !important; font-family: var(--font-tech); }
.stat-number { font-family: var(--font-head); background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* Sections : fine ligne lumineuse en haut */
.section-padded { position: relative; }
.section-padded + .section-padded::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(600px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), transparent);
}

/* ── Apparition au défilement ────────────────────────────── */
.ht-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--ht-delay, 0s); }
.ht-reveal.ht-in { opacity: 1; transform: none; }

/* ── Barre de progression de lecture ─────────────────────── */
.ht-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 2000; background: var(--neon); transform-origin: left; transform: scaleX(var(--ht-p, 0)); pointer-events: none; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes ht-shift  { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ht-spin   { to { transform: rotate(360deg); } }
@keyframes ht-blink  { 50% { opacity: 0; } }
@keyframes ht-floor  { to { background-position: 0 60px, 0 0; } }
@keyframes ht-scan   { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes ht-border { to { --ht-angle: 360deg; } }

@media (max-width: 991px) {
  .hero-visual::before { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero-visual::after  { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ht-reveal { opacity: 1; transform: none; }
  .hero-network { display: none; }
}

/* ============================================================
   Version plus lumineuse (28/11/2026) : bleu nuit au lieu du noir,
   et sections claires en alternance.
   ============================================================ */
:root {
  --dark:       #0f1d3a;
  --dark-2:     #152a52;
  --dark-3:     #1d3768;
  --text-muted: #aab8d0;
  --border:     rgba(255, 255, 255, .12);
  --grid-line:  rgba(125, 211, 252, .09);
}
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, .16), transparent 60%),
    var(--dark);
}
.hero-bg { background: radial-gradient(ellipse at 70% 45%, rgba(34, 211, 238, .18) 0%, transparent 60%), radial-gradient(ellipse at 10% 80%, rgba(139, 92, 246, .16) 0%, transparent 60%) !important; }
#mainNavbar { background: rgba(15, 29, 58, .78) !important; }

/* Sections claires : offres, à propos, articles… (toutes sauf .bg-dark-secondary) */
.section-padded:not(.bg-dark-secondary) {
  --text:       #0f1d3a;
  --text-muted: #55657f;
  --dark-2:     #ffffff;
  --dark-3:     #ffffff;
  --border:     rgba(15, 29, 58, .10);
  --grid-line:  rgba(52, 152, 219, .08);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, #f5f8fd 0%, #eaf1fb 100%);
  color: var(--text);
}
.section-padded:not(.bg-dark-secondary) h1,
.section-padded:not(.bg-dark-secondary) h2,
.section-padded:not(.bg-dark-secondary) h3,
.section-padded:not(.bg-dark-secondary) h4,
.section-padded:not(.bg-dark-secondary) h5 { color: var(--text); }
.section-padded:not(.bg-dark-secondary) .section-tag { color: #0e7490 !important; background: rgba(34, 211, 238, .12); border-color: rgba(14, 116, 144, .25); }
.section-padded:not(.bg-dark-secondary) :is(.offer-card, .service-card, .ai-service-card, .stat-card, .testimonial-card, .about-stat-card) {
  background: #fff !important;
  border: 1px solid rgba(15, 29, 58, .08) !important;
  box-shadow: 0 10px 30px -18px rgba(15, 29, 58, .25);
  color: var(--text);
}
.section-padded:not(.bg-dark-secondary) :is(.offer-card, .service-card, .ai-service-card, .stat-card):hover {
  border-color: rgba(34, 211, 238, .6) !important;
  box-shadow: 0 24px 50px -22px rgba(14, 116, 144, .45);
}
.section-padded:not(.bg-dark-secondary) .offer-card.featured { background: linear-gradient(160deg, #ffffff 0%, #effaff 100%) !important; }
.section-padded:not(.bg-dark-secondary) :is(.offer-card, .service-card, .ai-service-card, .stat-card)::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .12), transparent 40%);
}
.section-padded:not(.bg-dark-secondary) :is(.ai-card-icon, .service-icon) { color: #0e7490 !important; background: rgba(34, 211, 238, .12) !important; }
.section-padded:not(.bg-dark-secondary) .service-features li { color: var(--text-muted); }
.section-padded:not(.bg-dark-secondary) .btn-outline-primary { color: #0e7490; border-color: #0e7490; }
.section-padded:not(.bg-dark-secondary) .btn-outline-primary:hover { background: #0e7490; color: #fff; }
.section-padded:not(.bg-dark-secondary) a:not(.btn) { color: #0e7490; }
.section-padded + .section-padded::before { background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), transparent); }

/* Sections bleu nuit : un peu plus de relief */
.bg-dark-secondary { background: linear-gradient(180deg, #152a52 0%, #11234a 100%) !important; }
