/**
 * Maviance Landing Page - Utilitaires CSS
 * Version: 1.0
 * Description: Classes utilitaires pour le layout et le styling
 * Usage: Importer après maviance-components.css
 */

/* ========================================
   RESET & BASE
   ======================================== */

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

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   SCROLLBAR PERSONNALISÉ
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* ========================================
   TYPOGRAPHIE UTILITAIRES
   ======================================== */

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* ========================================
   COULEURS DE TEXTE
   ======================================== */

.text-maviance-blue { color: var(--maviance-blue); }
.text-maviance-yellow { color: var(--maviance-yellow); }
.text-maviance-white { color: var(--maviance-white); }
.text-maviance-black { color: var(--maviance-black); }

.text-blue-100 { color: var(--blue-100); }
.text-blue-200 { color: var(--blue-200); }
.text-blue-900 { color: var(--blue-900); }

.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }

.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }

/* ========================================
   COULEURS DE BACKGROUND
   ======================================== */

.bg-maviance-blue { background-color: var(--maviance-blue); }
.bg-maviance-yellow { background-color: var(--maviance-yellow); }
.bg-maviance-white { background-color: var(--maviance-white); }

.bg-white { background-color: var(--maviance-white); }
.bg-transparent { background-color: transparent; }

.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-slate-900 { background-color: var(--slate-900); }

.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-200 { background-color: var(--blue-200); }
.bg-blue-900 { background-color: var(--blue-900); }

/* ========================================
   ESPACEMENTS - PADDING
   ======================================== */

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }
.p-10 { padding: var(--spacing-10); }
.p-12 { padding: var(--spacing-12); }

.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }
.px-8 { padding-left: var(--spacing-8); padding-right: var(--spacing-8); }

.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }
.py-6 { padding-top: var(--spacing-6); padding-bottom: var(--spacing-6); }
.py-8 { padding-top: var(--spacing-8); padding-bottom: var(--spacing-8); }
.py-20 { padding-top: var(--spacing-20); padding-bottom: var(--spacing-20); }
.py-24 { padding-top: var(--spacing-24); padding-bottom: var(--spacing-24); }

.pt-20 { padding-top: var(--spacing-20); }

/* ========================================
   ESPACEMENTS - MARGIN
   ======================================== */

.m-0 { margin: 0; }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-12 { margin-bottom: var(--spacing-12); }
.mb-16 { margin-bottom: var(--spacing-16); }

.mt-4 { margin-top: var(--spacing-4); }
.mt-8 { margin-top: var(--spacing-8); }
.mt-10 { margin-top: var(--spacing-10); }
.mt-12 { margin-top: var(--spacing-12); }

.ml-2 { margin-left: var(--spacing-2); }
.mr-4 { margin-right: var(--spacing-4); }
.mr-6 { margin-right: var(--spacing-6); }

/* ========================================
   GAP (pour Flexbox et Grid)
   ======================================== */

.gap-2 { gap: var(--spacing-2); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }
.gap-12 { gap: var(--spacing-12); }
.gap-16 { gap: var(--spacing-16); }

/* ========================================
   FLEXBOX
   ======================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.space-x-4 > * + * { margin-left: var(--spacing-4); }
.space-x-6 > * + * { margin-left: var(--spacing-6); }

.space-y-4 > * + * { margin-top: var(--spacing-4); }
.space-y-6 > * + * { margin-top: var(--spacing-6); }
.space-y-8 > * + * { margin-top: var(--spacing-8); }

/* ========================================
   GRID
   ======================================== */

.grid { display: grid; }

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   DIMENSIONS
   ======================================== */

.w-full { width: 100%; }
.w-auto { width: auto; }

.h-full { height: 100%; }
.h-auto { height: auto; }

.min-h-screen { min-height: 100vh; }

.max-w-lg { max-width: 512px; }
.max-w-2xl { max-width: 672px; }
.max-w-4xl { max-width: 896px; }

/* ========================================
   POSITIONNEMENT
   ======================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.top-20 { top: 20; }
.top-15 { top: 15px; }
.right-0 { right: 0; }
.right-20 { right: 20; }
.bottom-0 { bottom: 0; }
.bottom-20 { bottom: 20; }
.left-0 { left: 0; }

.z-10 { z-index: var(--z-10); }
.z-50 { z-index: var(--z-50); }
.-z-10 { z-index: var(--z-negative); }

/* ========================================
   BORDURES
   ======================================== */

.border { border-width: var(--border-width-1); border-style: solid; }
.border-2 { border-width: var(--border-width-2); border-style: solid; }
.border-4 { border-width: var(--border-width-4); border-style: solid; }
.border-8 { border-width: var(--border-width-8); border-style: solid; }

.border-t { border-top-width: var(--border-width-1); border-top-style: solid; }

.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-slate-600 { border-color: var(--slate-600); }
.border-slate-700 { border-color: var(--slate-700); }
.border-blue-900 { border-color: var(--blue-900); }
.border-white { border-color: var(--maviance-white); }

.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ========================================
   OMBRES
   ======================================== */

.shadow-none { box-shadow: var(--shadow-none); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ========================================
   OPACITÉ
   ======================================== */

.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ========================================
   OVERFLOW
   ======================================== */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ========================================
   TRANSITIONS
   ======================================== */

.transition-all {
  transition-property: all;
  transition-timing-function: var(--transition-timing);
  transition-duration: var(--transition-base);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: var(--transition-timing);
  transition-duration: var(--transition-base);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: var(--transition-timing);
  transition-duration: var(--transition-base);
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: var(--transition-timing);
  transition-duration: var(--transition-base);
}

/* ========================================
   TRANSFORMATIONS
   ======================================== */

.transform { transform: translateZ(0); }

.scale-105:hover { transform: scale(1.05); }

.-translate-y-1:hover { transform: translateY(-4px); }

/* ========================================
   CURSEUR
   ======================================== */

.cursor-pointer { cursor: pointer; }

/* ========================================
   OUTLINE
   ======================================== */

.outline-none { outline: none; }

/* ========================================
   RESPONSIVE - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  
  .md\:flex-row { flex-direction: row; }
  
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  
  .md\:w-1\/2 { width: 50%; }
  
  .md\:text-xl { font-size: var(--text-xl); }
  .md\:text-4xl { font-size: var(--text-4xl); }
  .md\:text-5xl { font-size: var(--text-5xl); }
  .md\:text-7xl { font-size: var(--text-7xl); }
  
  .md\:col-span-2 { grid-column: span 2; }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   UTILITAIRES DIVERS
   ======================================== */

.pointer-events-none { pointer-events: none; }

.select-none {
  user-select: none;
  -webkit-user-select: none;
}

.resize-none { resize: none; }

.object-cover { object-fit: cover; }

.flex-shrink-0 { flex-shrink: 0; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   GROUPE (pour hover effects)
   ======================================== */

.group:hover .group-hover\:bg-maviance-blue {
  background-color: var(--maviance-blue);
}

.group:hover .group-hover\:text-maviance-yellow {
  color: var(--maviance-yellow);
}

/* ========================================
   IMAGE HERO - RESPONSIVE
   ======================================== */

.image-hero {
  display: none;
}

@media (min-width: 768px) {
  .image-hero {
    display: block;
  }
}
