/* ═══════════════════════════════════════════════════
   style.css — CyberClinique — Styles partagés
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0d1b35;
  --bg-primary: #122343;
  --bg-card: #1a3058;
  --bg-card-hover: #1e3a6e;
  --blue: #046BD2;
  --blue-light: #2d8cf0;
  --cyan: #00D4FF;
  --green: #10B981;
  --green-glow: #10b98133;
  --white: #ffffff;
  --gray-100: #f0f4f8;
  --gray-300: #b8cde0;
  --gray-400: #94afca;
  --gray-500: #7a9ab8;
  --gray-700: #334155;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 18px; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--gray-100);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bruit de fond */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* Canvas particules */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════ UTILITAIRES ═══════════ */
.container { max-width: 1600px; margin: 0 auto; padding: 0 48px; }
.section-pad { padding: 120px 0; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.section-title .accent { color: var(--cyan); }

.section-desc {
  font-size: 1rem;
  color: var(--gray-300);
  max-width: 800px;
  line-height: 1.85;
}

/* ═══════════ ANIMATIONS REVEAL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.25s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.45s; }

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  z-index: 1000;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 120px;
  max-width: none;
  padding: 0 22px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo-icon {
  height: 46px;
  width: auto;
  display: block;
  background: white;
  padding: 3px 6px;
  border-radius: 8px;
}
.logo-cyber { color: #3B82F6; }
.logo-clinique { color: var(--white); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-300);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(0, 212, 255, 0.06);
}
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan)) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 12px 26px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(4, 107, 210, 0.3);
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(4, 107, 210, 0.5);
  background: linear-gradient(135deg, var(--blue), var(--cyan)) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════ BOUTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0580f0);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(4, 107, 210, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(4, 107, 210, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), #0ea572);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.45);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}
.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--gray-300);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-400);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.footer-social a:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.35);
  color: var(--cyan);
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ═══════════ FLOATING CTA ═══════════ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--green), #0ea572);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.floating-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 44px rgba(16, 185, 129, 0.5);
}
.floating-cta .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid var(--green);
  animation: pulse-ring 2.5s ease-out infinite;
}

/* ═══════════ KEYFRAMES ═══════════ */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 80px 0; }
  .navbar { left: 10px; right: 10px; top: 10px; transform: none; width: auto; border-radius: 14px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 13, 27, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid rgba(0, 212, 255, 0.08);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; padding: 14px 16px; width: 100%; }
  .mobile-toggle { display: flex; z-index: 1001; }

  .btn { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .floating-cta { bottom: 16px; left: 16px; right: 16px; justify-content: center; border-radius: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
