/* QUUBE IA Santé - Charte Graphique QUUBE Officielle */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Palette QUUBE Officielle - Couleurs signature */
  --quube-black: #000000;
  --quube-yellow: #fcf474;      /* Jaune fluo signature QUUBE */
  --quube-yellow-neon: #dbff9b;
  
  /* Couleurs d'accent QUUBE */
  --quube-blue: #0082f3;
  --quube-blue-dark: #1e51f7;
  --quube-blue-light: #2895f7;
  --quube-pink: #bb4198;
  --quube-red: #ea384c;
  --quube-green: #027a48;
  
  /* Gris QUUBE */
  --quube-gray-dark: #5d6c7b;
  --quube-gray: #758696;
  --quube-gray-light: #aaadb0;
  
  /* Alias pour compatibilité */
  --primary: #fcf474;           /* Jaune signature */
  --secondary: #0082f3;         /* Bleu */
  --accent: #000000;            /* Noir */
  --dark: #000000;
  --light: #ffffff;
  
  /* Échelle de gris cohérente */
  --gray-50: #fafafa;
  --gray-100: #f3f3f3;
  --gray-200: #e2e2e2;
  --gray-300: #c8c8c8;
  --gray-400: #aaadb0;
  --gray-500: #758696;
  --gray-600: #5d6c7b;
  --gray-700: #06282d;
  --gray-800: #000000;
  --gray-900: #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  color: var(--dark);
  background-color: var(--light);
}

/* Animations minimalistes QUUBE */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utilities */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

/* Smooth transitions */
a, button {
  transition: all 0.2s ease;
}

/* Custom scrollbar QUUBE */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Form improvements */
input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

/* Button hover effects - style QUUBE */
button:hover,
a.button:hover {
  transform: translateY(-1px);
}

button:active,
a.button:active {
  transform: translateY(0);
}

/* Card hover - minimaliste */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Section spacing */
section {
  scroll-margin-top: 80px;
}

/* Underline effect QUUBE */
.underline-effect {
  position: relative;
  display: inline-block;
}

.underline-effect::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.underline-effect:hover::after {
  width: 100%;
}

/* Minimal gradient for accents */
.minimal-gradient {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--light) 100%);
}

/* Box minimal QUUBE */
.quube-box {
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s ease;
}

.quube-box:hover {
  border-color: var(--primary);
}

/* Typography QUUBE - geometric, clean */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --gray-300: #999999;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Accent line QUUBE style */
.accent-line {
  position: relative;
  padding-left: 24px;
}

.accent-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary);
}

/* Minimal badge */
.quube-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--gray-100);
  color: var(--dark);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

/* Grid lines subtle */
.grid-lines {
  background-image: 
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 40px 40px;
}
