/* ============================================
   COSMO CAR - Feuille de style principale
   ============================================ */

/* Variables CSS globales */
:root {
  --primary: #0d6efd;           /* Couleur primaire (bleu) */
  --primary-dark: #0a58ca;      /* Bleu plus foncé pour hover */
  --dark-bg: #0f1117;           /* Fond sombre */
  --dark-nav: #0d1117;          /* Fond navigation */
  --card-radius: 12px;          /* Rayon des bordures arrondies */
  --section-pad: 80px;          /* Padding des sections */
  --font-display: 'Barlow Condensed', sans-serif;  /* Police titres */
  --font-body: 'Barlow', sans-serif;               /* Police corps */
}

/* Comportement de défilement fluide */
html { scroll-behavior: smooth; }

/* Style de base du corps */
body { 
  font-family: var(--font-body); 
  padding-top: 80px; /* Espace pour la navbar fixe */
}

/* ============================================
   NAVIGATION
   ============================================ */
#mainNav { 
  background: var(--dark-nav); 
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid rgba(255,255,255,.08); 
  transition: background .3s; 
  padding-top: .75rem; 
  padding-bottom: .75rem; 
}
#mainNav.scrolled { background: rgba(13,17,23,.98); }
.brand-name { 
  font-family: var(--font-display); 
  font-weight: 800; 
  font-size: 1.5rem; 
  letter-spacing: .03em; 
  text-transform: uppercase; 
}
.nav-link { font-weight: 500; font-size: .92rem; }

/* ============================================
   SECTION HERO (accueil)
   ============================================ */
.hero-section { 
  position: relative; 
  min-height: 92vh; 
  background: linear-gradient(135deg, #0d1117 0%, #1a2233 50%, #0d2040 100%); 
  overflow: hidden; 
}
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to bottom, rgba(13,17,23,.7), rgba(13,17,23,.5)); 
}
.hero-subtitle { max-width: 560px; opacity: .85; }
.letter-spacing { letter-spacing: .15em; }

/* ============================================
   BARRE DE CONFIANCE
   ============================================ */
.trust-bar { 
  border-top: 1px solid rgba(255,255,255,.07); 
  border-bottom: 1px solid rgba(255,255,255,.07); 
}
.trust-item { display: flex; align-items: center; justify-content: center; }

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */
.section-padding { padding: var(--section-pad) 0; }
.section-title { 
  font-family: var(--font-display); 
  font-weight: 800; 
  font-size: 2.2rem; 
}

.page-header { 
  padding: 100px 0 40px; 
  background: linear-gradient(135deg, #0d1117 0%, #1a2233 100%); 
  border-bottom: 1px solid rgba(255,255,255,.08); 
}

/* ============================================
   CARTES DE SERVICES
   ============================================ */
.service-card { 
  border: 1px solid #e9ecef; 
  border-radius: var(--card-radius); 
  overflow: hidden; 
  transition: transform .25s, box-shadow .25s; 
}
.service-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,.1); 
}
.service-card--featured { 
  border-color: var(--primary); 
  box-shadow: 0 4px 20px rgba(13,110,253,.15); 
}
.service-img-placeholder { 
  height: 180px; 
  background: #f0f4ff; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: .5rem; 
  overflow: hidden; 
}
.service-img-placeholder img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.service-card--featured .service-img-placeholder { 
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
}
.placeholder-label { font-size: .75rem; color: #6c757d; }
.service-card--featured .placeholder-label { color: rgba(255,255,255,.6); }
.service-body { padding: 1.5rem; }

/* ============================================
   IMAGES GRANDES (pages prestations, à propos)
   ============================================ */
.img-placeholder-large { 
  height: 400px; 
  background: transparent; 
  border-radius: var(--card-radius); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  color: #6c757d; 
  text-align: center; 
  overflow: hidden; 
}
.img-placeholder-large img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center;
}

/* ============================================
   CTA (appel à l'action)
   ============================================ */
.cta-section { 
  background: linear-gradient(135deg, #0d1117 0%, #0d2040 100%); 
  border-top: 1px solid rgba(255,255,255,.08); 
}

/* ============================================
   CARTES DE TARIFS
   ============================================ */
.pricing-card { 
  background: #fff; 
  border: 1px solid #e9ecef; 
  border-radius: var(--card-radius); 
  padding: 2rem; 
  transition: transform .25s, box-shadow .25s; 
  position: relative; 
}
.pricing-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,.1); 
}
.pricing-card--popular { 
  background: linear-gradient(135deg, #0d1117, #1a2233); 
  color: #fff; 
  border-color: var(--primary); 
  box-shadow: 0 4px 24px rgba(13,110,253,.2); 
}
.pricing-card--popular .text-muted { color: rgba(255,255,255,.55) !important; }
.pricing-card--popular .pricing-features li { color: #fff; }
.popular-badge { 
  position: absolute; 
  top: -1px; 
  left: 50%; 
  transform: translateX(-50%); 
  background: var(--primary); 
  color: #fff; 
  font-size: .72rem; 
  font-weight: 700; 
  padding: .2rem .8rem; 
  border-radius: 0 0 8px 8px; 
  white-space: nowrap; 
}
.pricing-header { margin-bottom: 1.5rem; padding-top: .5rem; }
.pricing-price { 
  display: flex; 
  align-items: flex-start; 
  gap: .3rem; 
  margin-bottom: 1.5rem; 
}
.pricing-price .price { 
  font-family: var(--font-display); 
  font-size: 3rem; 
  font-weight: 800; 
  line-height: 1; 
  color: var(--primary); 
}
.pricing-card--popular .pricing-price .price { color: #fff; }
.pricing-price .currency { 
  font-size: 1.2rem; 
  font-weight: 600; 
  color: var(--primary); 
  margin-top: .4rem; 
}
.pricing-card--popular .pricing-price .currency { color: rgba(255,255,255,.7); }
.pricing-features { 
  list-style: none; 
  padding: 0; 
  margin-bottom: 1.75rem; 
}
.pricing-features li { 
  padding: .35rem 0; 
  font-size: .9rem; 
  border-bottom: 1px solid rgba(0,0,0,.05); 
}
.pricing-card--popular .pricing-features li { border-color: rgba(255,255,255,.08); }

.prestation-list li { padding: .4rem 0; font-size: .95rem; }

/* ============================================
   STATISTIQUES (page À propos)
   ============================================ */
.stat-number { 
  font-family: var(--font-display); 
  font-size: 2.2rem; 
  font-weight: 800; 
  line-height: 1; 
}
.stat-box { border-right: 1px solid #dee2e6; }
.stat-box:last-child { border-right: none; }

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */
.contact-form-card, .contact-info-card { 
  background: #fff; 
  border-radius: var(--card-radius); 
  padding: 2rem; 
  box-shadow: 0 4px 24px rgba(0,0,0,.07); 
}
.contact-info-item { 
  display: flex; 
  align-items: flex-start; 
  gap: .85rem; 
  padding: .75rem 0; 
  border-bottom: 1px solid #f0f0f0; 
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i { font-size: 1.1rem; margin-top: .1rem; }
.form-control, .form-select { 
  border-radius: 8px; 
  border-color: #dee2e6; 
  padding: .55rem .85rem; 
  transition: border-color .2s, box-shadow .2s; 
}
.form-control:focus, .form-select:focus { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); 
}

/* ============================================
   PIED DE PAGE
   ============================================ */
.footer-dark { 
  background: #0f1117; 
  border-top: 1px solid rgba(255, 255, 255, 0.07); 
}
.footer-brand { 
  font-family: var(--font-display); 
  font-weight: 800; 
  color: #fff; 
  font-size: 1.25rem; 
}
.footer-links a, .footer-contact a { 
  color: #8a9ab0; 
  text-decoration: none; 
  font-size: .9rem; 
  transition: color .2s; 
}
.footer-links li, .footer-contact li { 
  margin-bottom: .4rem; 
  color: #8a9ab0; 
  font-size: .9rem; 
}
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.social-link { transition: color .2s; text-decoration: none; }
.social-link:hover { color: var(--primary) !important; }

/* ============================================
   RESPONSIVE - TABLETTE ET MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hero-section { min-height: 80vh; }
  :root { --section-pad: 50px; }
  .section-title { font-size: 1.8rem; }
  
  /* Images adaptatives */
  .img-placeholder-large { height: 280px; }
  .service-img-placeholder { height: 150px; }
  
  /* Statistiques */
  .stat-number { font-size: 1.8rem; }
  .stat-box { border-right: none; border-bottom: 1px solid #dee2e6; padding-bottom: 1rem; margin-bottom: 1rem; }
  .stat-box:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  
  /* Tarifs */
  .pricing-card { padding: 1.5rem; }
  .pricing-price .price { font-size: 2.2rem; }
  
  /* Contact */
  .contact-form-card, .contact-info-card { padding: 1.5rem; }
  
  /* Navigation */
  .navbar-brand img { height: 36px !important; }
  .brand-name { font-size: 1.2rem !important; }
  
  /* En-tête de page */
  .page-header { padding: 80px 0 30px; }
  .page-header h1 { font-size: 2rem !important; }
  
  /* Barre de confiance */
  .trust-item { flex-direction: column; gap: 0.25rem; }
  .trust-item span { font-size: 0.75rem; }
  
  /* Footer centré sur mobile */
  .footer-dark .row > div { text-align: center !important; }
  .footer-dark .d-flex { justify-content: center !important; }
}
