/* =========================================================
   AXXESS FERMETURES — FOOTER FINAL V1
   Structure inspirée d’Oullins : 4 colonnes widgets + socket.
   ========================================================= */

/* ---------- FOOTER PRINCIPAL ---------- */

#footer {
  position: relative;
  padding: 72px 0 66px;
  border: 0 !important;
  border-top: 3px solid var(--axxess-green) !important;
  background: #171817 !important;
}

#footer .container {
  display: grid !important;
  grid-template-columns: 1.25fr 1fr 1.05fr 1.05fr;
  gap: clamp(42px, 5vw, 82px);
  width: min(calc(100% - 72px), var(--axxess-wide)) !important;
  max-width: var(--axxess-wide) !important;
  padding: 0 !important;
}

#footer .flex_column,
#footer .av_one_fourth,
#footer .av_one_third,
#footer .av_one_half {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

#footer .widget {
  margin: 0 0 24px;
  padding: 0;
}

#footer .widget:last-child {
  margin-bottom: 0;
}

#footer,
#footer p,
#footer li,
#footer a {
  color: rgba(255,255,255,.76);
}

#footer p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
}

#footer strong {
  color: var(--axxess-white);
  font-weight: 700;
}

#footer a {
  text-decoration: none;
  transition: color .2s ease;
}

#footer a:hover,
#footer a:focus-visible {
  color: var(--axxess-green) !important;
}

/* Titres de widgets */

#footer .widgettitle {
  position: relative;
  margin: 0 0 24px;
  padding: 0 0 14px;
  color: var(--axxess-white) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

#footer .widgettitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: var(--axxess-green);
}

/* ---------- COLONNE 1 : IDENTITÉ AXXESS ---------- */

#footer .flex_column:first-child .widget_media_image {
  margin-bottom: 22px;
}

#footer .flex_column:first-child .widget_media_image img {
  display: block;
  width: auto;
  max-width: 155px;
  max-height: 170px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.28));
}

.axxess-footer-brand {
  max-width: 310px;
}

.axxess-footer-brand__lead {
  margin-bottom: 18px !important;
  color: var(--axxess-white) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.axxess-footer-brand__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.axxess-footer-brand__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--axxess-white) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.axxess-footer-brand__socials a:hover,
.axxess-footer-brand__socials a:focus-visible {
  border-color: var(--axxess-green);
  color: var(--axxess-black) !important;
  background: var(--axxess-green);
}

/* ---------- COLONNE 2 : MENU SOLUTIONS ---------- */

#footer .widget_nav_menu ul,
#footer .widget_nav_menu li {
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

#footer .widget_nav_menu li + li {
  margin-top: 1px;
}

#footer .widget_nav_menu li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0 4px 15px;
  color: rgba(255,255,255,.75) !important;
  font-size: 14px;
  line-height: 1.35;
}

#footer .widget_nav_menu li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(189,190,0,.7);
  transform: translateY(-50%);
}

#footer .widget_nav_menu li a:hover,
#footer .widget_nav_menu li a:focus-visible,
#footer .widget_nav_menu li.current-menu-item > a {
  color: var(--axxess-white) !important;
}

/* ---------- COLONNE 3 : CONTACT ---------- */

.axxess-footer-contact p {
  margin-bottom: 15px !important;
}

.axxess-footer-contact a {
  color: var(--axxess-white) !important;
  font-weight: 650;
}

.axxess-footer-contact__label {
  display: block;
  margin-top: 22px;
  margin-bottom: 7px;
  color: var(--axxess-green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 750;
}

.axxess-footer-contact__emergency {
  margin-top: 19px !important;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: var(--axxess-white) !important;
  font-weight: 650;
}

/* ---------- COLONNE 4 : POINT FORT FICHET ---------- */

#footer .flex_column:nth-child(4) .widget_media_image {
  margin-bottom: 20px;
}

#footer .flex_column:nth-child(4) .widget_media_image img {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 120px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--axxess-white);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}

.axxess-footer-pff__brand {
  margin-bottom: 4px !important;
  color: var(--axxess-white) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 750;
}

.axxess-footer-pff__text {
  margin-bottom: 19px !important;
  color: rgba(255,255,255,.72) !important;
}

.axxess-footer-pff__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 18px;
  border-radius: 13px;
  color: var(--axxess-black) !important;
  background: var(--axxess-green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 11px 24px rgba(0,0,0,.18);
  transition:
    transform .2s var(--axxess-ease),
    background-color .2s ease;
}

.axxess-footer-pff__button:hover,
.axxess-footer-pff__button:focus-visible {
  color: var(--axxess-black) !important;
  background: var(--axxess-green-hover);
  transform: translateY(-2px);
}

/* ---------- SOCKET ---------- */

#socket {
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background: #101110 !important;
}

#socket .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(calc(100% - 72px), var(--axxess-wide)) !important;
  max-width: var(--axxess-wide) !important;
  min-height: 58px;
  padding: 10px 0 !important;
}

#socket .copyright {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  line-height: 1.4;
}

#socket .sub_menu_socket {
  float: none !important;
  flex: 1 1 auto;
  margin: 0 !important;
}

#socket .sub_menu_socket .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
}

#socket .sub_menu_socket li {
  position: relative;
  float: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
}

#socket .sub_menu_socket li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(189,190,0,.75);
  transform: translateY(-50%);
}

#socket .sub_menu_socket li a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 !important;
  color: rgba(255,255,255,.64) !important;
  font-size: 11px;
  line-height: 1.25;
  text-decoration: none;
}

#socket .sub_menu_socket li a:hover,
#socket .sub_menu_socket li a:focus-visible {
  color: var(--axxess-white) !important;
}

#socket .sub_menu_socket li.axxess-iziweb-credit a {
  color: rgba(255,255,255,.86) !important;
  font-weight: 650;
}

#socket .sub_menu_socket li.axxess-iziweb-credit a::after {
  content: " ↗";
  color: var(--axxess-green);
  font-size: 10px;
}

#socket .sub_menu_socket li.axxess-iziweb-credit a:hover,
#socket .sub_menu_socket li.axxess-iziweb-credit a:focus-visible {
  color: var(--axxess-green) !important;
}

/* ---------- TABLETTE ---------- */

@media only screen and (min-width: 768px) and (max-width: 989px) {

  #footer .container {
    grid-template-columns: 1.15fr 1fr !important;
    gap: 54px 60px;
    width: calc(100% - 56px) !important;
  }

  #socket .container {
    width: calc(100% - 56px) !important;
  }
}

/* ---------- MOBILE ---------- */

@media only screen and (max-width: 767px) {

  #footer {
    padding: 60px 0 48px;
  }

  #footer .container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 42px;
    width: calc(100% - 44px) !important;
  }

  #footer .flex_column,
  #footer .widget {
    text-align: center;
  }

  #footer .widgettitle {
    display: inline-block;
    margin-bottom: 21px;
  }

  #footer .widgettitle::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #footer .flex_column:first-child .widget_media_image img,
  #footer .flex_column:nth-child(4) .widget_media_image img {
    margin-right: auto;
    margin-left: auto;
  }

  .axxess-footer-brand {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
  }

  .axxess-footer-brand__socials {
    justify-content: center;
  }

  #footer .widget_nav_menu li a {
    justify-content: center;
    padding-left: 0;
  }

  #footer .widget_nav_menu li a::before {
    display: none;
  }

  .axxess-footer-contact,
  .axxess-footer-pff {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
  }

  #socket .container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: calc(100% - 40px) !important;
    min-height: 0;
    padding: 21px 0 24px !important;
    text-align: center;
  }

  #socket .copyright,
  #socket .sub_menu_socket {
    width: 100%;
  }

  #socket .sub_menu_socket .menu {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    width: 100%;
  }

  #socket .sub_menu_socket li {
    width: 100%;
  }

  #socket .sub_menu_socket li + li::before {
    display: none;
  }

  #socket .sub_menu_socket li a {
    justify-content: center;
    min-height: 34px;
  }

  #socket .sub_menu_socket li.axxess-iziweb-credit {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.09) !important;
  }
}

/* =========================================================
   FOOTER V1.1 — CORRECTIFS VALIDÉS
   - Hover des boutons lisible
   - Logos fabricants blancs
   - Sous-menus masqués dans le footer
   - Crédit Iziweb possible en texte non cliquable
   ========================================================= */

/* 1. Les boutons sociaux restent lisibles au survol. */
#footer .axxess-footer-brand__socials a:hover,
#footer .axxess-footer-brand__socials a:focus-visible {
  color: var(--axxess-black) !important;
  background: var(--axxess-green) !important;
}

/* 2. Le bouton Fichet reste lisible au survol. */
#footer .axxess-footer-pff__button:hover,
#footer .axxess-footer-pff__button:focus-visible {
  color: var(--axxess-black) !important;
  background: var(--axxess-green-hover) !important;
}

/*
 * 3. Logos fabricants en blanc.
 * Toutes les images placées dans la 4e colonne sont traitées en blanc.
 * Le blason Axxess de la 1re colonne reste dans ses couleurs officielles.
 */
#footer .flex_column:nth-child(4) .widget_media_image img {
  max-width: 240px !important;
  max-height: 120px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: brightness(0) invert(1) !important;
}

/* 4. Le footer n'affiche jamais les sous-menus. */
#footer .widget_nav_menu .sub-menu {
  display: none !important;
}

/*
 * 5. Crédit Iziweb en texte simple, non cliquable.
 * Ajouter les classes :
 * axxess-iziweb-credit axxess-iziweb-credit--plain
 * sur l'élément du menu Socket.
 */
#socket .sub_menu_socket li.axxess-iziweb-credit--plain a {
  color: rgba(255,255,255,.78) !important;
  cursor: default !important;
  pointer-events: none !important;
}

#socket .sub_menu_socket li.axxess-iziweb-credit--plain a::after {
  content: none !important;
}
/* Socket mobile : ordre logique des informations */
@media only screen and (max-width: 767px) {

  #socket .sub_menu_socket {
    order: 1;
  }

  #socket .copyright {
    order: 2;
    margin-top: 8px !important;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  /* Le crédit Iziweb reste dans la continuité des liens */
  #socket .sub_menu_socket li.axxess-iziweb-credit {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 0 !important;
  }
}