/* =========================================================
   Digitab – correctifs responsive communs + carrousel d'accueil
   Chargé après custom.css sur toutes les pages
   ========================================================= */

html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* En-tête : supprime le débordement horizontal (marges négatives Bootstrap) */
.top-header .row { margin-left: 0; margin-right: 0; }
.logo_size { max-width: none; }
@media (max-width: 767px) { .logo_size { width: 200px; } }

/* ---------- Carrousel d'accueil ---------- */
.ulockd-home-slider { padding: 0; }
.hc-h1 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hc {
  position: relative; overflow: hidden; width: 100%;
  background: #f4f4f6; outline: none;
}
.hc-track {
  display: flex; transition: transform .6s ease; will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .hc-track { transition: none; } }
.hc-slide {
  position: relative; flex: 0 0 100%; width: 100%;
  aspect-ratio: 1920 / 827;
  background-color: #fff; background-repeat: no-repeat;
  background-size: cover; background-position: center;
  display: block; color: inherit; text-decoration: none;
}
.hc-link:hover, .hc-link:focus { text-decoration: none; color: inherit; }
.hc-text {
  position: absolute; left: 7%; top: 50%; transform: translateY(-50%);
  max-width: 30%; display: flex; flex-direction: column; color: #21424f;
}
.hc-kicker {
  font-size: clamp(11px, 1.25vw, 22px); text-transform: uppercase;
  font-weight: 300; letter-spacing: .02em; margin-bottom: .4em;
}
.hc-title { font-size: clamp(20px, 4vw, 76px); font-weight: 500; line-height: 1.12; }
.hc-cta {
  align-self: flex-start; margin-top: 1em; padding: .55em 1.1em;
  font-size: clamp(12px, 1.1vw, 18px); font-weight: 600;
  background: #21424f; color: #fff; border-radius: 999px;
  transition: background .2s;
}
.hc-link:hover .hc-cta, .hc-link:focus .hc-cta { background: #19b0bf; }

.hc-video { background: #f3f4f6; }
.hc-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%; max-width: none;
}

.hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #21424f;
  font-size: 30px; line-height: 40px; text-align: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 3; padding: 0;
}
.hc-arrow:hover { background: #fff; }
.hc-prev { left: 14px; }
.hc-next { right: 14px; }
.hc-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.hc-dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(33,66,79,.3); cursor: pointer;
}
.hc-dot.is-active { background: #21424f; width: 26px; border-radius: 6px; }

/* Téléphone : visuel à droite + texte en bandeau lisible */
@media (max-width: 767px) {
  .hc-slide { aspect-ratio: 4 / 3; background-position: 80% center; }
  .hc-text {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; max-width: none;
    background: rgba(255,255,255,.92); padding: 10px 16px 30px;
  }
  .hc-kicker { display: block; font-size: 11px; margin-bottom: 2px; }
  .hc-title { font-size: 22px; display: inline; }
  .hc-text { display: block; }
  .hc-text .hc-title + .hc-title::before { content: " "; }
  .hc-cta { display: table; font-size: 12px; margin: 6px 0 0; padding: 5px 12px; }
  .hc-video video { object-fit: contain; object-position: center; }
  .hc-arrow { display: none; }
  .hc-dots { bottom: 10px; }
}

/* ---------- Pages : mise en page mobile ---------- */
@media (max-width: 991px) {
  .columnThree, .columnIndex, .column, .columnContact {
    float: none; width: 100% !important; padding: 10px 16px !important;
  }
  .columnIndex img, .column img { height: auto; }
  .heading_main { display: block !important; }
  .heading_main p { max-width: 100% !important; }
}

@media (max-width: 767px) {
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
  .layout_padding { padding-top: 40px; padding-bottom: 40px; }
  .title-box h2, .subtitle-box h2 { font-size: 24px; line-height: 1.25; }
  .heading_main h2 { font-size: 24px !important; line-height: 1.25 !important; }
  .heading_main h2 strong.small { font-size: 18px !important; }
  .about_section .row { margin-left: 0; margin-right: 0; }
  .section.about_section { overflow: hidden; }
  .feature_box { margin-bottom: 20px; }
  .service_cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-box .footer_blog, .footer-box .footer_blog_last { margin-bottom: 18px; }
  .img-fit, .about_section img { max-width: 100%; height: auto; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Blocs texte à hauteur fixe (produits, applications…) : ne plus couper le texte */
.about_section div[style*="height: 300px"] { height: auto !important; min-height: 300px; }
@media (max-width: 991px) {
  .about_section div[style*="height: 300px"] { min-height: 0; }
}

/* ---------- Bouton flottant : avis Google ---------- */
.dg-avis-wrap { position: fixed; left: 18px; bottom: 18px; z-index: 900; }
.dg-avis {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: #fff; color: #21424f; text-decoration: none;
  box-shadow: 0 4px 16px rgba(33,66,79,.22);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: transform .2s, box-shadow .2s;
}
.dg-avis:hover, .dg-avis:focus { color: #21424f; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(33,66,79,.3); }
.dg-avis-stars { color: #f5b301; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.dg-s { display: none; }
.dg-avis-text small { display: block; font-weight: 400; font-size: 12px; color: #4b6570; }
.dg-avis-close {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: #21424f; color: #fff;
  font-size: 14px; line-height: 22px; text-align: center; padding: 0; cursor: pointer;
}
@media (max-width: 767px) {
  .dg-avis-wrap { left: 12px; bottom: 12px; }
  .dg-avis { padding: 8px 14px 8px 10px; font-size: 13px; }
  .dg-l { display: none; }
  .dg-s { display: inline; }
}
@media print { .dg-avis-wrap { display: none; } }

/* Titre de page en H1 dans le bandeau (même style que h2) */
.title-box h1 { position: relative; top: 50%; font-size: 30px; font-weight: bold; color: #fff; margin: 0; }
@media (max-width: 767px) { .title-box h1 { font-size: 24px; line-height: 1.25; } }

/* ---------- Accueil : services clés + FAQ ---------- */
.dg-keys { background: #fff; }
.dg-keys-intro { max-width: 900px; margin: 0 auto 30px; text-align: center; font-size: 17px; line-height: 1.7; }
.dg-keys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.dg-key { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 12px; background: rgba(117,198,198,.18);
  color: #21424f; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dg-key:hover, .dg-key:focus { color: #21424f; text-decoration: none; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(33,66,79,.12); }
.dg-key h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; color: #21424f; }
.dg-key p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.dg-key span { font-weight: 600; color: #19a0ad; }
.dg-faq-title { text-align: center; font-size: 26px; margin-bottom: 20px; color: #21424f; }
.dg-faq { max-width: 900px; margin: 0 auto; }
.dg-faq-item { border-bottom: 1px solid rgba(33,66,79,.15); padding: 14px 4px; }
.dg-faq-item summary { cursor: pointer; font-weight: 600; font-size: 17px; color: #21424f; list-style-position: outside; }
.dg-faq-item p { margin: 10px 0 0; line-height: 1.7; }
@media (max-width: 991px) { .dg-keys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .dg-keys-grid { grid-template-columns: 1fr; } .dg-keys-intro { font-size: 15px; text-align: left; } }
