/* =============================================================================
   MOBILE FIRST RESPONSIVE SYSTEM
   Premium Barbershop - Refonte 2025
   ============================================================================= */

/* =============================================================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================================================= */
:root {
  /* Breakpoints */
  --mobile-sm: 320px;
  --mobile-lg: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --desktop-lg: 1200px;
  --desktop-xl: 1440px;

  /* Color Palette */
  --primary-color: #b4802b;
  --primary-dark: #8e6421;
  --primary-light: #d4a154;
  --primary-lighter: #f4c16e;
  --secondary-color: #3f3f3f;
  --secondary-dark: #2a2a2a;
  --text-color: #585858;
  --text-light: #7a7a7a;
  --text-dark: #2c2c2c;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  --bg-dark: #2c2c2c;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-dark: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-tertiary: 'Montserrat', sans-serif;

  /* Font Sizes - Mobile First */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 1.875rem;  /* 30px */
  --fs-4xl: 2.25rem;   /* 36px */
  --fs-5xl: 3rem;      /* 48px */

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Spacing - Mobile First */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 4px 6px var(--shadow-color);
  --shadow-lg: 0 10px 15px var(--shadow-color);
  --shadow-xl: 0 20px 25px var(--shadow-color);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container Widths */
  --container-sm: 100%;
  --container-md: 100%;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1440px;
}

/* =============================================================================
   MOBILE FIRST BASE STYLES
   ============================================================================= */

/* Base - Mobile (320px+) */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-md) 0;
  color: var(--text-dark);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
  color: var(--secondary-color);
}

h3 {
  font-size: var(--fs-xl);
  color: var(--primary-color);
}

h4 {
  font-size: var(--fs-lg);
  color: var(--primary-color);
}

h5, h6 {
  font-size: var(--fs-base);
  color: var(--primary-color);
}

p {
  margin: 0 0 var(--space-md) 0;
  line-height: var(--lh-normal);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--primary-dark);
}

/* Buttons - Mobile First */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  text-decoration: none;
  min-height: 44px; /* Touch target */
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}


.brand-logo {
  width: auto !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: #ffff;
  border: 2px solid #ffff;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* =============================================================================
   MOBILE FIRST RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Mobile Large (480px+) */
@media (min-width: 480px) {
  .container {
    max-width: var(--container-md);
    padding: 0 var(--space-lg);
  }

  h1 {
    font-size: var(--fs-4xl);
  }

  h2 {
    font-size: var(--fs-3xl);
  }

  .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-base);
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-lg);
    padding: 0 var(--space-xl);
  }

  h1 {
    font-size: var(--fs-5xl);
  }

  h2 {
    font-size: var(--fs-4xl);
  }

  h3 {
    font-size: var(--fs-2xl);
  }

  /* Grid System */
  .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--space-md);
  }

  .col {
    flex: 1;
    padding: 0 var(--space-md);
  }

  .col-1 { flex: 0 0 8.333333%; }
  .col-2 { flex: 0 0 16.666667%; }
  .col-3 { flex: 0 0 25%; }
  .col-4 { flex: 0 0 33.333333%; }
  .col-5 { flex: 0 0 41.666667%; }
  .col-6 { flex: 0 0 50%; }
  .col-7 { flex: 0 0 58.333333%; }
  .col-8 { flex: 0 0 66.666667%; }
  .col-9 { flex: 0 0 75%; }
  .col-10 { flex: 0 0 83.333333%; }
  .col-11 { flex: 0 0 91.666667%; }
  .col-12 { flex: 0 0 100%; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-xl);
  }

  /* Typography adjustments */
  --fs-base: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
  :root {
    --fs-6xl: 4.5rem;    /* 72px - Even larger for desktop */
    --fs-5xl: 3.5rem;    /* 56px */
    --fs-4xl: 2.75rem;   /* 44px */
    --fs-3xl: 2.25rem;   /* 36px */
  }
  
  .container {
    max-width: var(--container-2xl);
  }
}

/* =============================================================================
   IMAGE LOADING STATES
   ============================================================================= */

img {
  opacity: 1;
  transition: opacity var(--transition-normal);
}

img.loading {
  opacity: 0.7;
}

img.loaded {
  opacity: 1;
}

img.error {
  opacity: 0.5;
}

.image-error {
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-sm);
  min-height: 200px;
}

.touch-active {
  opacity: 0.7;
  transform: scale(0.98);
  transition: all var(--transition-fast);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =============================================================================
   UTILITY CLASSES - MOBILE FIRST
   ============================================================================= */

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.m-0 { margin: 0; }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }
.font-tertiary { font-family: var(--font-tertiary); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Mobile Show/Hide */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 768px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* =============================================================================
   ANIMATION UTILITIES
   ============================================================================= */

.fade-in {
  opacity: 0;
  animation: fadeIn var(--transition-slow) ease-in-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp var(--transition-slow) ease-out forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hover-scale {
  transition: transform var(--transition-normal);
}

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