/* MATOS IMPORT - V23 footer intégré */
.mi-home-news{margin-top:-30px!important;margin-bottom:-30px!important;padding-top:0!important;padding-bottom:0!important}
#content.page-home>.mi-footer-services,#content.page-home>.mi-footer-newsletter{display:none!important}

.mi-footer-custom-top .mi-footer-newsletter{display:block!important;width:100%;padding:28px 0 52px!important;margin:0;background:#fff;font-family:Inter,sans-serif;letter-spacing:0}
.mi-footer-newsletter__inner{display:flex;flex-direction:column;align-items:center;text-align:center}
.mi-footer-newsletter__icon{display:block;width:68px;height:auto;margin:0 0 18px}
.mi-footer-newsletter h2{margin:0 0 16px!important;padding:0!important;border:0!important;color:#111;font-size:40px!important;line-height:1.1;font-weight:600!important;letter-spacing:0}
.mi-footer-newsletter h2:before,.mi-footer-newsletter h2:after{display:none!important;content:none!important}
.mi-footer-newsletter__intro{max-width:620px;margin:0 0 24px;color:#111;font-size:18px;line-height:1.35;font-weight:400}
.mi-footer-newsletter__form{width:100%;max-width:320px;margin:0}
.mi-footer-newsletter__field{position:relative;display:flex;width:100%;min-height:54px;overflow:hidden;border-radius:999px;background:#dedede}
.mi-footer-newsletter__field input[type=email]{width:100%;height:54px;padding:0 68px 0 22px;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:#222;font-size:15px;font-weight:400}
.mi-footer-newsletter__submit{position:absolute;top:5px;right:5px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#E52629;color:#fff;font-size:25px;line-height:1;cursor:pointer}

.mi-footer-custom-top .mi-footer-services{display:block!important;width:100%;margin:0;padding:42px 0 44px!important;background:#f1f1f1!important;font-family:Inter,sans-serif;letter-spacing:0}
.mi-footer-services__grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:36px!important;align-items:start}
.mi-footer-service{text-align:center}
.mi-footer-service__icon{display:block;width:50px;height:50px;object-fit:contain;margin:0 auto 16px}
.mi-footer-service h3{margin:0 0 6px!important;color:#111!important;font-size:20px!important;line-height:1.2;font-weight:600!important}
.mi-footer-service__desc,.mi-footer-service__desc p{margin:0!important;color:#111!important;font-size:15px!important;line-height:1.35;font-weight:400!important}

@media(max-width:767px){
 .mi-home-news{margin-top:-20px!important;margin-bottom:-20px!important}
 .mi-footer-custom-top .mi-footer-newsletter{padding:24px 20px 42px!important}
 .mi-footer-newsletter__icon{width:56px;margin-bottom:14px}
 .mi-footer-newsletter h2{font-size:20px!important}
 .mi-footer-newsletter__intro{max-width:330px;font-size:14px}
 .mi-footer-custom-top .mi-footer-services{padding:36px 20px!important}
 .mi-footer-services__grid{grid-template-columns:1fr!important;gap:32px!important}
 .mi-footer-service h3{font-size:18px!important}
 .mi-footer-service__desc,.mi-footer-service__desc p{font-size:14px!important}
}
/* ==========================================================
   MATOS IMPORT — FOOTER BAS V25
   ========================================================== */

.mi-footer-bottom,
.mi-footer-bottom *{
  box-sizing:border-box;
}

.mi-footer-bottom{
  width:100%;
  background:#dedede;
  color:#111;
  font-family:Inter,Arial,sans-serif;
  letter-spacing:0;
}


/* ---------- Desktop principal ---------- */

.mi-footer-bottom__main{
  width:min(100% - 80px,1440px);
  margin:0 auto;
  display:grid;
  grid-template-columns:280px minmax(390px,1fr) minmax(470px,1.15fr);
  gap:65px;
  align-items:start;
  padding:72px 0 58px;
}


/* ---------- Identité ---------- */

.mi-footer-identity{
  grid-column:1;
  grid-row:1;
}

.mi-footer-logo{
  display:block;
  width:205px;
  margin:0 0 24px;
}

.mi-footer-logo img{
  display:block;
  width:100%;
  height:auto;
}

.mi-footer-description{
  margin:0 0 25px;
  max-width:255px;
  font-size:15px;
  line-height:1.35;
  font-weight:400;
  color:#111;
}

.mi-footer-address{
  margin:0 0 22px;
}

.mi-footer-address__title{
  display:block;
  margin-bottom:5px;
  font-size:11px;
  line-height:1.2;
  font-weight:400;
  color:#777;
}

.mi-footer-address address{
  margin:0;
  font-style:normal;
  font-size:14px;
  line-height:1.35;
  color:#111;
}

.mi-footer-social{
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:19px;
}

.mi-footer-social__link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:23px;
  height:23px;
  border:2px solid #111;
  border-radius:50%;
  color:#111!important;
  text-decoration:none!important;
  font-size:16px;
  line-height:1;
  font-weight:600;
}


/* ---------- Liens ---------- */

.mi-footer-links{
  grid-column:2;
  grid-row:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
}

.mi-footer-column{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.mi-footer-column h3{
  margin:0 0 18px!important;
  color:#555!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:400!important;
  letter-spacing:0!important;
}

.mi-footer-column a{
  display:block;
  margin:0 0 9px;
  padding:0;
  color:#111!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:15px;
  line-height:1.25;
  font-weight:400;
  text-decoration:none!important;
}

.mi-footer-column:first-child a{
  font-size:18px;
  font-weight:600;
}

.mi-footer-column a:hover{
  color:#d21717!important;
}


/* ---------- Contact ---------- */

.mi-footer-help{
  grid-column:3;
  grid-row:1;
  background:transparent;
}

.mi-footer-help__inner{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:28px;
  align-items:center;
}

.mi-footer-help__photo{
  display:block;
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  object-position:72% 25%;
}

.mi-footer-help__content h2{
  margin:0 0 10px!important;
  padding:0!important;
  color:#111!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:24px!important;
  line-height:1.15!important;
  font-weight:600!important;
}

.mi-footer-help__content p{
  max-width:410px;
  margin:0 0 18px;
  color:#111;
  font-size:15px;
  line-height:1.35;
  font-weight:400;
}

.mi-footer-help__buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.mi-footer-help__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:43px;
  padding:0 22px;
  border-radius:999px;
  background:#ed2224;
  color:#fff!important;
  text-decoration:none!important;
  font-size:15px;
  line-height:1;
  font-weight:600;
}

.mi-footer-help__button:hover{
  background:#d21717;
  color:#fff!important;
}

.mi-footer-help__button-icon{
  color:#fff!important;
  font-size:18px;
}


/* On place le contact comme troisième colonne du desktop */
@media (min-width:768px){
  .mi-footer-help{
    width:min(calc((100% - 80px) * .36),520px);
    position:absolute;
    right:max(40px,calc((100% - 1440px)/2));
    margin-top:72px;
    z-index:2;
  }

  .mi-footer-bottom__main{
    padding-right:520px;
    grid-template-columns:280px minmax(390px,1fr);
  }

  .mi-footer-links{
    grid-column:2;
  }
}


/* ---------- Copyright ---------- */

.mi-footer-copyright{
  width:min(100% - 80px,1440px);
  margin:0 auto;
  padding:0 0 32px;
  text-align:center;
  color:#777;
  font-size:13px;
  line-height:1.3;
  font-weight:400;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:767px){

  .mi-footer-bottom{
    background:#dedede;
  }

  /* Contact en premier, sur rouge */
  .mi-footer-help{
    width:100%;
    margin:0;
    padding:22px 20px;
    background:#ed2224;
  }

  .mi-footer-help__inner{
    grid-template-columns:78px 1fr;
    gap:17px;
    align-items:start;
    max-width:480px;
    margin:0 auto;
  }

  .mi-footer-help__photo{
    width:78px;
    height:78px;
  }

  .mi-footer-help__content h2{
    margin:1px 0 6px!important;
    color:#fff!important;
    font-size:17px!important;
    line-height:1.15!important;
  }

  .mi-footer-help__content p{
    margin:0 0 10px;
    color:#fff;
    font-size:12px;
    line-height:1.25;
  }

  .mi-footer-help__buttons{
    gap:8px;
  }

  .mi-footer-help__button{
    min-height:30px;
    padding:0 13px;
    background:#fff;
    color:#ed2224!important;
    font-size:12px;
  }

  .mi-footer-help__button:hover{
    background:#fff;
    color:#d21717!important;
  }

  .mi-footer-help__button-icon{
    color:#ed2224!important;
    font-size:14px;
  }


  /* Le fond gris suit */
  .mi-footer-bottom__main{
    display:block;
    width:100%;
    margin:0;
    padding:48px 21px 22px;
  }


  /* Identité en pleine largeur */
  .mi-footer-identity{
    width:100%;
    margin:0 0 57px;
  }

  .mi-footer-logo{
    width:165px;
    margin:0 auto 27px;
  }

  .mi-footer-description{
    max-width:none;
    margin:0 0 21px;
    font-size:14px;
    line-height:1.3;
  }

  .mi-footer-address__title{
    font-size:10px;
  }

  .mi-footer-address address{
    font-size:13px;
    line-height:1.28;
  }

  .mi-footer-social{
    margin-top:21px;
  }


  /* Deux colonnes sous l'identité */
  .mi-footer-links{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:26px;
    width:100%;
  }

  .mi-footer-column h3{
    margin-bottom:17px!important;
    font-size:11px!important;
  }

  .mi-footer-column a{
    margin-bottom:9px;
    font-size:13px;
    line-height:1.25;
  }

  .mi-footer-column:first-child a{
    font-size:16px;
    font-weight:600;
  }


  .mi-footer-copyright{
    width:calc(100% - 42px);
    margin:0 21px;
    padding:20px 0 27px;
    border-top:1px solid rgba(0,0,0,.15);
    font-size:11px;
  }
}


@media (max-width:370px){

  .mi-footer-help{
    padding-left:14px;
    padding-right:14px;
  }

  .mi-footer-help__inner{
    grid-template-columns:68px 1fr;
    gap:13px;
  }

  .mi-footer-help__photo{
    width:68px;
    height:68px;
  }

  .mi-footer-help__button{
    padding:0 10px;
    font-size:11px;
  }

  .mi-footer-bottom__main{
    padding-left:17px;
    padding-right:17px;
  }

  .mi-footer-links{
    gap:18px;
  }
}