/* 
 * CSS critique pour shortener.live
 * Optimisé pour améliorer le LCP et éviter le CLS
 * Conforme aux standards de Core Web Vitals
 */

/* Reset de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables CSS globales */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --body-color: #f9f9f9;
  --text-color: #333;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

/* Styles de base pour le body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-color);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Conteneur principal */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img, .logo svg {
  height: 32px;
  width: auto;
  margin-right: 8px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 1rem;
  line-height: 1.5;
}

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

.btn-primary:hover {
  background-color: #3a5bd9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Section Hero */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background-color: #f5f9ff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-illustration {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-mockup {
  position: relative;
  max-width: 100%;
}

.browser-frame {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}

.browser-controls {
  display: flex;
  align-items: center;
  background-color: #f1f3f4;
  padding: 8px 15px;
  border-bottom: 1px solid #e1e4e8;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.control.red {
  background-color: #ff5f57;
}

.control.yellow {
  background-color: #ffbd2e;
}

.control.green {
  background-color: #28c940;
}

.browser-content {
  padding: 20px;
  background-color: #fff;
  min-height: 300px;
}

.browser-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Trust signals */
.trust-signals {
  margin-bottom: 30px;
}

.trust-text {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #555;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

/* Support RTL */
[dir="rtl"] .logo img,
[dir="rtl"] .logo svg {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .nav-item {
  margin: 0 0 0 15px;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

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