/* ===========================
   VARIABLES — THÈME TECH BLEU
=========================== */
:root {
  --blue: #2563eb;
  /* bleu principal */
  --blue-light: #60a5fa;
  /* bleu clair */
  --blue-pale: #eff6ff;
  /* fond très pâle */
  --blue-dark: #1e3a5f;
  /* bleu sombre (dark sections) */
  --blue-mid: #3b82f6;
  /* variante intermédiaire */
  --cream: #f8fafc;
  /* blanc cassé */
  --text: #1e293b;
  /* texte principal */
  --text-muted: #64748b;
}

/* ===========================
   GLOBAL
=========================== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--cream);
  overflow-x: hidden;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.letter-spacing {
  letter-spacing: 2px;
}

/* Couleur accent bleue */
.text-accent {
  color: var(--blue-light) !important;
}

.bg-accent {
  background-color: var(--blue) !important;
}

.bg-nature {
  background-color: var(--blue-pale) !important;
}

.bg-dark-forest {
  background-color: var(--blue-dark) !important;
}

/* Boutons bleus */
.btn-accent {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
}

.btn-outline-accent {
  border: 2px solid var(--blue-light);
  color: var(--blue-light);
  font-weight: 600;
  background: transparent;
}

.btn-outline-accent:hover {
  background-color: var(--blue-light);
  color: #fff;
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-weight: 600;
  background: transparent;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ===========================
   NAVBAR
=========================== */
#mainNav {
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

#mainNav.scrolled {
  background: rgba(15, 30, 70, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--blue-light) !important;
}

/* ===========================
   HERO
=========================== */
.hero-section {
  min-height: 100vh;
  background: url('assets/img/hero-bg.webp') center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,
      rgba(10, 20, 60, 0.92) 0%,
      rgba(30, 58, 138, 0.80) 100%);
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Badge hero */
.offerte-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(96, 165, 250, 0.2);
  border: 1.5px solid var(--blue-light);
  color: var(--blue-light);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===========================
   BANNIÈRE CTA (tarifs)
=========================== */
.offerte-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.offerte-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.offerte-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* ===========================
   SERVICES
=========================== */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 1rem !important;
  background-color: #fff;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   TECHNOLOGIES
=========================== */
.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  color: var(--blue);
}

.tech-badge i {
  font-size: 2rem;
  color: var(--blue);
}

/* ===========================
   ABOUT
=========================== */
.about-img-wrapper {
  display: inline-block;
  width: 100%;
}

.about-img-bg {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--blue-light);
  bottom: -20px;
  right: -20px;
  z-index: 0;
  opacity: 0.15;
  border-radius: 1rem;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  background-color: var(--blue) !important;
  color: #fff !important;
}

/* ===========================
   TARIFS
=========================== */
.tarif-card {
  transition: transform 0.3s;
}

.tarif-card:hover {
  transform: translateY(-5px);
}

.tarif-featured {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3) !important;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-mid) 100%) !important;
}

.tarif-featured:hover {
  transform: scale(1.03) translateY(-5px);
}

/* ===========================
   TÉMOIGNAGES
=========================== */
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.temoignages-section {
  background-color: var(--blue-pale);
}

/* étoiles bleues */
.star-green {
  color: var(--blue) !important;
}

/* ===========================
   CONTACT
=========================== */
.contact-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background-color: var(--blue-pale) !important;
  color: var(--blue);
}

.contact-icon i {
  color: var(--blue) !important;
}

.form-control,
.form-select {
  border: 2px solid #dbeafe;
  transition: border-color 0.2s;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

/* États validation */
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--blue);
  background-image: none;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: var(--blue);
  background-image: none;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
}

.was-validated .form-check-input:valid~.form-check-label {
  color: inherit;
}

.invalid-feedback {
  font-size: 0.8rem;
}

/* ===========================
   FOOTER
=========================== */
.footer-dark {
  background-color: var(--blue-dark);
}

/* ===========================
   BACK TO TOP
=========================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

#backToTop:hover {
  background-color: var(--blue-mid);
  border-color: var(--blue-mid);
}

#backToTop.visible {
  display: flex;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===========================
   RESPONSIVE
=========================== */

/* Menu mobile */
@media (max-width: 991.98px) {

  #mainNav .navbar-collapse.show,
  #mainNav .navbar-collapse.collapsing {
    background: rgba(10, 20, 60, 0.97);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }

  .hero-section .container {
    padding-top: 5rem;
  }
}

@media (max-width: 768px) {
  .py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .about-badge {
    left: 10px;
    bottom: 10px;
    font-size: 0.75rem;
  }

  .tarif-featured {
    transform: scale(1);
  }

  .tarif-featured:hover {
    transform: translateY(-5px);
  }
}
