
html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.7;
  color: #c8d6e5;
}
@media (min-width: 768px) {
  body { font-size: 18px; }
}
@media (min-width: 1024px) {
  body { font-size: 19px; }
}

.pricing-pentest { border-color: #1e3a8a; }
.pricing-pentest:hover { border-color: #2563eb; }
.pricing-soc { border-color: #0e7490; }
.pricing-soc:hover { border-color: #06b6d4; }
.pricing-digital { border-color: #6d28d9; }
.pricing-digital:hover { border-color: #8b5cf6; }
.pricing-complet {
  border-color: #38debb;
  background: linear-gradient(135deg, #0a192f 0%, #0d1f3c 100%);
}
.pricing-complet:hover { border-color: #5eead4; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

::selection {
  background: rgba(56, 222, 187, 0.3);
  color: #fff;
}

.glass-panel {
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.obsidian-card {
  background: #0a192f;
  border: 1px solid rgba(30, 58, 95, 0.5);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.obsidian-card:hover {
  border-color: rgba(56, 222, 187, 0.4);
  background: #0d1f3c;
  box-shadow: 0 0 20px rgba(56, 222, 187, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #38debb 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-primary {
  box-shadow: 0 0 25px rgba(56, 222, 187, 0.25), 0 0 60px rgba(56, 222, 187, 0.1);
}
.glow-primary:hover {
  box-shadow: 0 0 35px rgba(56, 222, 187, 0.4), 0 0 80px rgba(56, 222, 187, 0.15);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 80%;
  max-width: 320px;
  right: 0;
  left: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.mobile-menu a:active {
  padding-left: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar-scrolled {
  background: rgba(4, 13, 26, 0.95) !important;
}

.hover-bar-bottom {
  position: relative;
  overflow: hidden;
}
.hover-bar-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #38debb;
  transition: width 0.4s ease;
}
.hover-bar-bottom:hover::after {
  width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-mesh {
  background-image: radial-gradient(circle at 2px 2px, rgba(56, 222, 187, 0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #38debb;
  box-shadow: 0 0 0 2px rgba(56, 222, 187, 0.2);
}

.scroll-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #8b9bb5;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint svg {
  width: 18px;
  height: 18px;
  stroke: #38debb;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* CLS fix : réserve l'espace pour le span typing dans le H1 */
[data-typing] {
  display: inline-block;
  min-width: 5ch;
}

/* Blog articles — texte lisible (blanc + taille uniforme) */
.prose.prose-invert p,
.prose.prose-invert li,
.prose.prose-invert td,
.prose.prose-invert th,
.prose.prose-invert span:not(.material-symbols-outlined):not(.text-primary):not(.text-gradient) {
  color: #e8edf4;
}
.prose.prose-invert h2,
.prose.prose-invert h3 {
  color: #ffffff;
}
.prose.prose-invert .text-sm {
  font-size: 0.9375rem;
  line-height: 1.6;
}
.prose.prose-invert .text-xs {
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-mesh {
    background-size: 30px 30px;
  }
  .grid > .obsidian-card,
  .grid > a > .obsidian-card,
  .grid > a.obsidian-card,
  .grid > div[class*="pricing-"] {
    min-height: auto;
  }
  .grid {
    grid-auto-rows: 1fr;
  }
}
