/* styles.css - Styles personnalisés pour Fast Easy Company */

/* Variables CSS */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gradient-primary: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
  --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

/* Typographie améliorée */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #6c757d;
}

/* Navigation améliorée */
.navbar {
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-stats h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-stats p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Cards améliorées */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card {
  border-left: 4px solid var(--primary-color);
}

.service-icon {
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--info-color);
}

/* Sections */
section {
  padding: 5rem 0;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Expertise et avantages */
.expertise-item, .advantage-item, .security-feature {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.expertise-item:hover, .advantage-item:hover, .security-feature:hover {
  transform: translateX(5px);
  border-left-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.expertise-item h4, .advantage-item h4, .security-feature h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Formulaires */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Boutons améliorés */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Footer */
footer {
  background-color: var(--dark-color);
}

footer a {
  transition: var(--transition);
  display: inline-block;
}

footer a:hover {
  transform: translateY(-2px);
  color: var(--primary-color) !important;
}

/* Animations et transitions */
.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg) !important;
}

.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-stats .col-4 {
    margin-bottom: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-section .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-section .btn:last-child {
    margin-bottom: 0;
  }
}

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible pour l'accessibilité */
a:focus, button:focus, .btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Images responsives */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Listes améliorées */
.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Icônes */
.fas, .fab {
  transition: var(--transition);
}

/* Utilitaires personnalisés */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

/* Smooth scrolling pour les ancres */
html {
  scroll-padding-top: 80px;
}

/* Optimisations de performance */
img {
  max-width: 100%;
  height: auto;
}

/* Support pour les navigateurs plus anciens */
@supports not (display: grid) {
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
