/* ============================================
   DSG CI V2 - DIGITAL SYSTEMS GROUP CI
   Charte graphique & Responsive Mobile-First
   ============================================ */

:root {
  --vert-dsg: #0A4A2A;
  --or-dsg: #D4AF37;
  --fond-dsg: #F8F9FA;
  --texte: #212529;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texte);
  background-color: var(--fond-dsg);
  overflow-x: hidden;
  padding-top: 110px;
}

/* ---- Header double fixe ---- */
.header-top {
  background: var(--vert-dsg);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.header-top a {
  color: var(--or-dsg);
  text-decoration: none;
}

.header-top a:hover {
  color: #fff;
}

.navbar-main {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: 120px;
  padding: 0;
}

.navbar-main.bg-white {
  background-color: #fff !important;
}

.navbar-brand {
  background: transparent !important;
}

.navbar-brand img {
  max-height: 110px;
  height: 110px;
  width: auto;
  background: transparent;
}

.navbar-brand .brand-text {
  max-height: none;
}

.brand-text {
  font-weight: 700;
  color: var(--vert-dsg);
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand-text span {
  color: var(--or-dsg);
  font-size: 0.75rem;
  display: block;
  font-weight: 500;
}

.navbar-main .nav-link {
  color: var(--texte);
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--vert-dsg);
}

.navbar-main .btn-dsg {
  min-height: 44px;
  min-width: 44px;
}

/* ---- Typographie ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--vert-dsg);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.section-padding {
  padding: 50px 0;
}

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, var(--vert-dsg) 0%, #0d5c35 50%, #126b3f 100%);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .lead {
  opacity: 0.95;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero-badge {
  display: inline-block;
  background: var(--or-dsg);
  color: var(--vert-dsg);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---- Boutons ---- */
.btn-dsg-primary {
  background: var(--or-dsg);
  color: var(--vert-dsg);
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  min-height: 44px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dsg-primary:hover {
  background: #c9a430;
  color: var(--vert-dsg);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-dsg-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}

.btn-dsg-outline:hover {
  background: #fff;
  color: var(--vert-dsg);
}

.btn-dsg-secondary {
  background: var(--vert-dsg);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  min-height: 44px;
}

.btn-dsg-secondary:hover {
  background: #083d22;
  color: #fff;
}

/* ---- Hero background image ---- */
.hero-section.hero-bg-image {
  background-image: linear-gradient(135deg, rgba(10, 74, 42, 0.92) 0%, rgba(10, 74, 42, 0.85) 50%, rgba(18, 107, 63, 0.88) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
  background-size: cover;
  background-position: center;
}

/* ---- Cards ---- */
.card,
.service-card {
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 74, 42, 0.1);
  color: var(--vert-dsg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-img-top {
  object-fit: cover;
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

/* ---- Stats / Features ---- */
.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  height: 100%;
}

.stat-box .stat-number {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--or-dsg);
  line-height: 1;
}

.stat-box .stat-label {
  color: var(--vert-dsg);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---- Process steps ---- */
.process-step {
  text-align: center;
  padding: 1rem;
}

.process-step .step-num {
  width: 48px;
  height: 48px;
  background: var(--or-dsg);
  color: var(--vert-dsg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
  font-size: 1.1rem;
}

/* ---- CTA Band ---- */
.cta-band {
  background: var(--vert-dsg);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-band .section-title {
  color: #fff;
}

/* ---- Page banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--vert-dsg), #126b3f);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
}

.breadcrumb-custom {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb-custom a {
  color: var(--or-dsg);
  text-decoration: none;
}

/* ---- Footer ---- */
.footer-dsg {
  background: var(--vert-dsg);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-dsg h5 {
  color: var(--or-dsg);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-dsg a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  min-height: 44px;
  line-height: 44px;
}

.footer-dsg a:hover {
  color: var(--or-dsg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.9;
}

/* ---- WhatsApp flottant ---- */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1050;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

/* ---- Formulaire ---- */
.form-control,
.form-select {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  min-height: 44px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--vert-dsg);
  box-shadow: 0 0 0 0.2rem rgba(10, 74, 42, 0.15);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info-item i {
  color: var(--or-dsg);
  font-size: 1.25rem;
  min-width: 28px;
  margin-top: 0.15rem;
}

/* ---- Mentions légales ---- */
.legal-content h2 {
  color: var(--vert-dsg);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Ancres services ---- */
.service-anchor {
  scroll-margin-top: 150px;
}

/* ---- Utilitaires ---- */
.bg-dsg-light {
  background: #fff;
}

.text-dsg-or {
  color: var(--or-dsg);
}

.text-dsg-vert {
  color: var(--vert-dsg);
}

.img-placeholder {
  background: linear-gradient(135deg, rgba(10, 74, 42, 0.1), rgba(212, 175, 55, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vert-dsg);
  font-size: 3rem;
}

/* ---- Contenu long / SEO ---- */
.content-block p,
.content-block li {
  line-height: 1.75;
  font-size: 0.95rem;
}

.content-block h2,
.content-block h3 {
  color: var(--vert-dsg);
  font-weight: 600;
}

.advantage-item {
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  height: 100%;
  border-left: 4px solid var(--or-dsg);
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-card .stars {
  color: var(--or-dsg);
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--vert-dsg);
  margin-bottom: 0.5rem;
}

.service-detail {
  scroll-margin-top: 150px;
}

.lead-long {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
}

.table-responsive-stack {
  overflow-x: visible;
}

@media (max-width: 767px) {
  .table-mobile-stack tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
  }

  .table-mobile-stack tbody th,
  .table-mobile-stack tbody td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.25rem 0;
  }

  .table-mobile-stack tbody th {
    font-weight: 600;
  }
}

/* ============================================
   MEDIA QUERIES OBLIGATOIRES
   ============================================ */

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .btn-lg {
    width: 100%;
  }

  body {
    padding-top: 155px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .header-top {
    font-size: 0.7rem;
  }

  .navbar-main {
    top: 32px;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  body {
    padding-top: 170px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 26px;
  }
}

@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  body {
    padding-top: 185px;
  }

  .section-padding {
    padding: 80px 0;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    font-size: 28px;
  }

  .navbar-main {
    top: 38px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
}

/* ---- Assets images / Hero / Réalisations ---- */
.text-vert-dsg {
  color: var(--vert-dsg);
}

.navbar-main.py-4 {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-height: 72px;
    height: auto;
  }

  .navbar-main {
    min-height: 100px;
  }
}

footer.bg-dark a.text-light:hover {
  color: var(--or-dsg) !important;
}

.card.shadow-sm {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.card.shadow-sm:hover {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
  transform: translateY(-4px);
}

.hero {
  min-height: 70vh;
}

.hero-bg {
  object-fit: cover;
  filter: brightness(0.35);
}

.hero .hero-content h1,
.hero .hero-content p {
  color: #fff;
}

.realisation-img {
  height: 220px;
  object-fit: cover;
}

.card-service {
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card-service:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-service:hover .realisation-img {
  transform: scale(1.05);
  transition: 0.3s;
}
