/* ============================================================
   MB AxisPro – Refonte des dispositions d'images & polish UI
   - Conserve les couleurs et le concept (orange / noir / blanc)
   - Aucun dégradé "type IA" : aplats, ombres douces, lignes nettes
   ============================================================ */

:root {
  --mb-orange:        #f65129;
  --mb-orange-dark:   #d63f1c;
  --mb-black:         #000000;
  --mb-ink:           #111418;
  --mb-muted:         #5a6470;
  --mb-line:          #e7e9ec;
  --mb-bg-soft:       #f5f7fa;
  --mb-shadow-sm:     0 6px 18px rgba(15, 23, 42, 0.06);
  --mb-shadow-md:     0 14px 32px rgba(15, 23, 42, 0.10);
  --mb-shadow-lg:     0 24px 48px rgba(15, 23, 42, 0.14);
  --mb-radius-sm:     12px;
  --mb-radius-md:     18px;
  --mb-radius-lg:     26px;
}

/* ---------- Réglages globaux soft ---------- */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
/* Filet de sécurité : aucune image de contenu ne dépasse la hauteur de la fenêtre */
.about-image, .job-image, .hero-carousel img, .video-thumb img,
.about-image-border-radius, .service-gallery img, #modalProjectImage {
  max-height: 80vh;
}
a, button, .custom-btn { transition: all .25s ease; }
.section-padding { padding-top: 90px; padding-bottom: 90px; }
section { overflow-x: clip; }

/* ---------- HERO : carrousel + texte ---------- */
.hero-section {
  padding-top: 70px;
  padding-bottom: 110px;
}
.hero-section .hero-section-text { max-width: 560px; }
.hero-title {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1px;
}
@media (max-width: 991px) {
  .hero-title { font-size: 40px; }
}

/* Cadre image carrousel — plus net, ombre douce, ratio constant */
.hero-carousel { border-radius: var(--mb-radius-lg); overflow: hidden; }
.hero-carousel .item { position: relative; }
.hero-carousel .item img {
  width: 100%;
  height: clamp(260px, 38vw, 420px);
  max-height: 60vh;
  object-fit: cover;
  object-position: center;
  border-radius: var(--mb-radius-lg);
  box-shadow: var(--mb-shadow-md);
  display: block;
}

/* Petite barre + nav placée au-dessus du carrousel */
.hero-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.hero-slider-nav button {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}
.hero-slider-nav button:hover {
  background: var(--mb-orange);
  border-color: var(--mb-orange);
}
.hero-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-progress-bar .progress-fill { background: var(--mb-orange); }

/* ---------- CATÉGORIES (services en pastille) ---------- */
.categories-section { padding-top: 80px; padding-bottom: 80px; }
.categories-block {
  background: var(--mb-ink);
  border: 4px solid var(--mb-orange);
  border-radius: 50%;
  width: 160px; height: 160px;
  box-shadow: var(--mb-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.categories-block:hover {
  transform: translateY(-4px);
  border-color: #fff;
  box-shadow: var(--mb-shadow-md);
}
.categories-block .categories-icon {
  width: 48px; height: 48px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.categories-block-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  text-align: center;
  display: block;
  padding: 0 10px;
}

/* ---------- ABOUT (3 colonnes : portrait / texte / réseaux) ---------- */
.about-section { padding-top: 90px; padding-bottom: 90px; }
.about-section .row { align-items: stretch; }

.about-image-wrap {
  position: relative;
  border-radius: var(--mb-radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  box-shadow: var(--mb-shadow-md);
}
.about-image-wrap .about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-image-wrap .about-info {
  background: var(--mb-black);
  border-top: 4px solid var(--mb-orange);
  border-radius: var(--mb-radius-sm);
  margin: 16px;
  padding: 14px 18px;
}
.about-image-wrap .about-info h4 { font-size: 18px; font-weight: 700; }
.about-image-wrap .about-info p  { font-size: 13px; opacity: .85; }

.about-section .custom-text-block {
  background: var(--mb-black);
  border-radius: var(--mb-radius-md);
  padding: 56px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-section .custom-text-block h2 { color: #fff; font-size: 38px; }
.about-section .custom-text-block p  { color: rgba(255, 255, 255, 0.82); }

/* Bloc Instagram / Réseaux : on remplace l'image étirée par un visuel propre */
.instagram-block {
  position: relative;
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  border-radius: var(--mb-radius-md);
  overflow: hidden;
  box-shadow: var(--mb-shadow-md);
}
.instagram-block .about-image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(.7);
}
.instagram-block::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.instagram-block-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  padding: 24px;
}
.instagram-block-text .custom-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 170px;
  text-align: left;
}
.instagram-block-text .custom-btn i { margin-right: 8px; }
.instagram-block-text .custom-btn:hover {
  background: var(--mb-orange);
  border-color: var(--mb-orange);
}

@media (max-width: 991px) {
  .about-image-wrap, .instagram-block { min-height: 300px; }
  .about-section .custom-text-block { padding: 36px 28px; }
}

/* ---------- PROJETS / JOB-THUMB : carte propre avec image en haut ---------- */
.job-section .job-thumb {
  display: block !important;          /* on neutralise le d-flex inline */
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius-md);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--mb-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.job-section .job-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--mb-orange);
  box-shadow: var(--mb-shadow-lg);
}
.job-section .job-thumb:nth-of-type(even) { background: #fff; }

/* Wrapper d'image : aspect ratio fixe et image qui couvre proprement */
.job-section .job-image-wrap {
  width: 100% !important;
  min-width: 0 !important;
  height: clamp(180px, 22vw, 240px);
  border-radius: 0 !important;
  background: var(--mb-bg-soft) !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
}
.job-section .job-image-wrap .job-image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  padding: 0;
  display: block;
  transition: transform .6s ease;
}
.job-section .job-thumb:hover .job-image-wrap .job-image {
  transform: scale(1.04);
}

/* Corps de la carte */
.job-section .job-body {
  margin-left: 0 !important;
  padding: 24px 28px 28px;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}
.job-section .job-body .mb-3 { margin-bottom: 16px !important; }
.job-section .job-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mb-ink);
  line-height: 1.25;
  margin-bottom: 6px;
}
.job-section .job-body p {
  font-size: 16px;
  color: var(--mb-muted);
  margin-bottom: 0;
}
.job-section .job-body .d-flex.align-items-center img {
  height: 32px !important;
  border-radius: 6px;
  border: 1px solid var(--mb-line);
  background: #fff;
  padding: 2px;
}
.job-section .job-body .d-flex.align-items-center span {
  font-size: 14px;
  color: var(--mb-muted);
  font-weight: 500;
}
.job-section .job-section-btn-wrap {
  margin-left: 0 !important;
  margin-top: 8px;
}
.job-section .job-section-btn-wrap .custom-btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  letter-spacing: .3px;
}

/* Grille à 2 colonnes pour les projets sur grand écran */
@media (min-width: 992px) {
  .job-section.projects-grid .col-lg-12 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .job-section.projects-grid .job-thumb { margin-bottom: 0; }
}

/* ---------- SECTION CHIFFRES + VIDÉO ---------- */
.video-thumb {
  position: relative;
  border-radius: var(--mb-radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  box-shadow: var(--mb-shadow-md);
}
.video-thumb .about-image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: var(--mb-radius-md) !important;
}
.video-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.30);
  pointer-events: none;
}
.video-thumb .video-info { z-index: 2; }
.youtube-icon {
  width: 80px; height: 80px;
  line-height: 80px !important;
  font-size: 36px !important;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--mb-orange);
  box-shadow: 0 0 0 0 rgba(246, 81, 41, 0.5);
}

.custom-text-block {
  background: var(--mb-black);
  border-radius: var(--mb-radius-md);
  padding: 56px 48px;
}
.custom-text-block h2 { font-size: 38px; }
.counter-thumb { margin: 16px 24px 0 0 !important; }
.counter-number, .counter-number-text {
  font-size: 44px !important;
  font-weight: 700 !important;
  letter-spacing: -1px;
}
.counter-text { font-size: 13px; opacity: .85; letter-spacing: .3px; }

/* ---------- TÉMOIGNAGES ---------- */
.reviews-section { background: var(--mb-bg-soft); }
.reviews-thumb {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.reviews-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--mb-shadow-md);
}
.reviews-info { padding: 28px 28px 12px; }
.reviews-body { padding: 0 28px 28px 28px; }
.reviews-carousel .owl-item img,
.avatar-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 2px var(--mb-orange);
  object-fit: cover;
}
.reviews-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--mb-ink);
  line-height: 1.55;
}
.quote-icon {
  width: 36px;
  top: 8px !important;
  left: 22px !important;
  opacity: .08 !important;
}

/* ---------- CTA ---------- */
.cta-section {
  padding-top: 110px;
  padding-bottom: 60px;
}
.cta-section .section-overlay {
  background: var(--mb-orange);
  opacity: .92;
}

/* ---------- SITE-HEADER (pages internes) ---------- */
.site-header {
  padding-top: 130px;
  padding-bottom: 90px;
}
.site-header .section-overlay {
  background: var(--mb-black);
  opacity: .55;
}
.site-header h1 {
  font-size: 52px;
  letter-spacing: -1px;
}
@media (max-width: 991px) {
  .site-header h1 { font-size: 36px; }
}

/* ---------- PAGE SERVICES (cartes) ---------- */
.services-section .card {
  border: 1px solid var(--mb-line) !important;
  border-radius: var(--mb-radius-md) !important;
  box-shadow: var(--mb-shadow-sm) !important;
  padding: 32px 24px !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.services-section .card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--mb-orange) !important;
  box-shadow: var(--mb-shadow-md) !important;
}
.services-section .card .card-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--mb-ink);
}
.services-section .card .card-text {
  color: var(--mb-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.services-section .card img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  padding: 10px;
  border-radius: 50%;
  background: #fff7f3;
  border: 1px solid #fde0d4;
}
.services-section .card .custom-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  align-self: center;
}

/* ---------- PAGE SERVICE DETAIL ---------- */
.service-detail-section { padding-top: 80px; padding-bottom: 80px; }

.service-detail-section .col-lg-4 .card {
  border: 1px solid var(--mb-line) !important;
  border-radius: var(--mb-radius-md) !important;
  box-shadow: var(--mb-shadow-md) !important;
  padding: 32px 28px !important;
  position: sticky;
  top: 110px;
}
.service-detail-section .col-lg-4 .card img {
  width: 80px; height: 80px; object-fit: contain;
  padding: 12px;
  background: #fff7f3;
  border: 1px solid #fde0d4;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

.service-gallery .item img {
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  max-height: 60vh;
  object-fit: cover;
  object-position: center;
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
}
.service-gallery .owl-stage-outer { padding: 8px 0; }

/* ---------- PAGE ABOUT ---------- */
.about-page .about-section .about-image-wrap {
  min-height: 0;
  max-height: none;
  height: auto;
}
.about-section .about-image-border-radius {
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-md);
  width: 100%;
  height: clamp(280px, 36vw, 460px);
  max-height: 70vh;
  object-fit: cover;
  object-position: center top;
}
.about-page .about-info-text h2 { font-size: 38px; line-height: 1.15; }
.about-page .about-info-text h4 { color: var(--mb-orange); font-size: 18px; }
.about-page .about-info-text p  { color: var(--mb-muted); line-height: 1.65; }

/* Vision / Mission – cartes plus posées */
.about-page .services-section .col-lg-6 {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
  padding: 36px;
}
.about-page .services-section .col-lg-6:first-child { margin-right: 12px; }
.about-page .services-section .row { gap: 0; }
.about-page .services-section h2 { color: var(--mb-orange); font-size: 28px; }

/* Valeurs */
.about-page .services-block {
  background: #fff;
  border-top: 4px solid var(--mb-orange) !important;
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
  padding: 28px;
  height: 100%;
}
.about-page .services-block-icon {
  background: #fff7f3 !important;
  color: var(--mb-orange) !important;
  width: 64px !important;
  height: 64px !important;
  line-height: 64px !important;
  font-size: 26px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center; justify-content: center;
}
.about-page .services-block-title {
  font-size: 18px;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* FAQ */
.about-page .accordion-item {
  border: 1px solid var(--mb-line) !important;
  border-radius: var(--mb-radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.about-page .accordion-button {
  font-weight: 600;
  background: #fff;
}
.about-page .accordion-button:not(.collapsed) {
  background: #fff7f3;
  color: var(--mb-orange);
  box-shadow: none;
}

/* ---------- PAGE CONTACT ---------- */
.contact-section { padding-top: 80px; padding-bottom: 80px; }
.contact-section .google-map {
  width: 100% !important;
  height: clamp(280px, 32vw, 420px) !important;
  max-height: 60vh;
  border-radius: var(--mb-radius-md);
  filter: grayscale(80%);
  box-shadow: var(--mb-shadow-sm);
}
.contact-info-wrap {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
  padding: 24px;
}
.contact-info {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 14px 8px !important;
  border-bottom: 1px solid var(--mb-line);
}
.contact-info:last-child { border-bottom: 0; }
.contact-info .custom-icon {
  width: 44px; height: 44px;
  background: #fff7f3;
  color: var(--mb-orange) !important;
  border-radius: 50%;
  font-size: 20px !important;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 14px !important;
  flex-shrink: 0;
}
.contact-info .contact-info-small-title {
  color: var(--mb-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius-md);
  box-shadow: var(--mb-shadow-sm);
  padding: 32px;
}
.contact-form .form-control {
  background: var(--mb-bg-soft) !important;
  border: 1px solid var(--mb-line) !important;
  border-radius: var(--mb-radius-sm) !important;
  font-size: 15px;
}
.contact-form .form-control:focus {
  background: #fff !important;
  border-color: var(--mb-orange) !important;
  box-shadow: 0 0 0 3px rgba(246, 81, 41, 0.15);
}

/* ---------- FOOTER ---------- */
.site-footer { padding-top: 0; }
.site-footer-bottom { margin-top: 0 !important; padding: 26px 0; }
.site-footer-bottom a { transition: color .2s ease; }
.site-footer-bottom a:hover { color: var(--mb-orange) !important; }

/* ---------- MODAL PROJET ---------- */
.modal-content {
  border: 0;
  border-radius: var(--mb-radius-md);
  overflow: hidden;
  box-shadow: var(--mb-shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--mb-line); padding: 20px 24px; }
.modal-body { padding: 24px; }
#modalProjectImage {
  width: 100%;
  height: clamp(200px, 28vw, 320px);
  max-height: 50vh;
  object-fit: cover;
  border-radius: var(--mb-radius-sm);
}

/* ---------- Petites règles utilitaires & overrides ---------- */
.section-overlay {
  background: var(--mb-black) !important;
  opacity: 0.55 !important;
}
.hero-section .section-overlay {
  background: var(--mb-black) !important;
  opacity: 0.45 !important;
}
.cta-section .section-overlay {
  background: var(--mb-orange) !important;
  opacity: 0.92 !important;
}

/* dynamic-text plus lisible */
.dynamic-text {
  color: var(--mb-orange) !important;
  font-size: 32px !important;
}
@media (max-width: 575px) {
  .dynamic-text { font-size: 22px !important; }
}

/* boutons custom – hover discret */
.custom-btn {
  font-weight: 500;
  letter-spacing: .2px;
}
.custom-btn:hover {
  background: var(--mb-orange-dark) !important;
  color: #fff !important;
}
