/* =========================================================
   FOOTER - DESIGN COMPACT (FINAL v4)
   ========================================================= */

/* 1. FORCER LA HAUTEUR NULLE sur tous les conteneurs du footer */
.footer,
.footer .footer-center,
.footer .footer-center .container,
.footer .footer-center .container.custom-footer,
.footer .footer-center .row,
.footer .footer-1col,
.footer .first-section-footer,
.footer .first-section-footer > div,
.footer .column {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Structure principale - PADDING RÉDUIT */
.footer .footer-center {
  background: #1a1a1a !important;
  padding: 30px 0 25px !important;
  overflow: hidden !important;
}

.footer .footer-center .container.custom-footer {
  width: calc(100% - 60px) !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.footer .footer-center .row {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3. LA GRILLE */
.footer .first-section-footer {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer .first-section-footer > div {
  display: grid !important;
  grid-template-columns: 200px minmax(250px, 1fr) 180px 240px !important;
  grid-template-areas: "journal intro links social" !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 30px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* 4. Assignation de chaque bloc à sa zone */
.footer #block-unionjournalfooter {
  grid-area: journal !important;
  margin: 0 !important;
  align-self: center !important;
}

.footer #block-introfooter2 {
  grid-area: intro !important;
  margin: 0 !important;
  align-self: center !important;
  max-width: 100% !important;
}

.footer #block-linksfooterinline {
  grid-area: links !important;
  margin: 0 !important;
  align-self: center !important;
  width: 100% !important;
}

.footer #block-sociallinksfooter {
  grid-area: social !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: end !important;
  width: 100% !important;
}

/* 5. Image du journal - TAILLE RÉDUITE */
.footer #block-unionjournalfooter .field--name-field-image img {
  display: block !important;
  width: 100% !important;
  max-width: 190px !important;
  height: auto !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.footer #block-unionjournalfooter a:hover img {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45) !important;
}

/* 6. LOGO + TEXTE INTRO - RESTAURER LE LOGO */
.footer #block-introfooter2 .intro-text {
  color: #d1d1d1 !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* LE LOGO EST RESTAURÉ */
.footer #block-introfooter2 .intro-text img {
  display: block !important;
  max-width: 150px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 10px 0 !important;
  filter: brightness(1) !important;
}

.footer #block-introfooter2 .intro-text a {
  color: #d1d1d1 !important;
  text-decoration: underline !important;
}

.footer #block-introfooter2 > .content > .field > div:not(.intro-text) {
  margin-top: 8px !important;
}

.footer #block-introfooter2 > .content > .field > div > span {
  display: block !important;
  color: #ffffff !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-top: 8px !important;
}

/* 7. Liens "EN SAVOIR PLUS" - PLUS COMPACT */
.footer #block-linksfooterinline .text-white {
  color: #ffffff !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
  white-space: nowrap !important;
}

.footer .links-inline {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  align-items: flex-start !important;
}

.footer .links-inline a {
  color: #e5e5e5 !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, padding-left 0.2s ease !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.footer .links-inline a:hover {
  color: #c3070e !important;
  padding-left: 4px !important;
}

/* 8. ICÔNES SOCIALES - TOUTES SUR UNE SEULE LIGNE, PLUS PETITES */
.footer .footer-social {
  display: flex !important;
  flex-wrap: nowrap !important; /* Force tout sur une ligne */
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 100% !important;
  width: 100% !important;
}

.footer .footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important; /* Taille fixe 28px */
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #c3070e !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer .footer-social a:hover {
  transform: translateY(-2px) !important;
  background: #f02028 !important;
}

.footer .footer-social svg,
.footer .footer-social .icon-reseau {
  width: 12px !important;
  height: 12px !important;
  fill: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 9. COPYRIGHT - Compact, en italique, avec alignement aux extrémités */
.footer .copyright {
  background: #111111 !important;
  padding: 12px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.footer .copyright .container {
  width: calc(100% - 60px) !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.footer .copyright-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer .copyright-inner > div,
.footer .copyright-inner .field__item,
.footer .copyright #block-gavias-great-copyright .field__item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer .copyright .text-left,
.footer .copyright .text-right,
.footer .copyright p,
.footer .copyright span,
.footer .copyright div,
.footer .copyright .field__item > div {
  color: #e8e8e8 !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 12px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Alignement aux extrémités : gauche collé à gauche, droite collé à droite */
.footer .copyright .text-left,
.footer .copyright .pull-left,
.footer .copyright .field__item > div:first-child {
  text-align: left !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  float: none !important;
}

.footer .copyright .text-right,
.footer .copyright .pull-right,
.footer .copyright .field__item > div:last-child {
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  float: none !important;
}

/* 10. Responsive Tablette */
@media (max-width: 1199px) {
  .footer .first-section-footer > div {
    grid-template-columns: 180px minmax(220px, 1fr) 170px 220px !important;
    gap: 22px !important;
  }
}

/* 11. Responsive Tablette portrait */
@media (max-width: 991px) {
  .footer .first-section-footer > div {
    grid-template-columns: 180px 1fr !important;
    grid-template-areas:
      "journal intro"
      "links social" !important;
    gap: 25px !important;
  }

  .footer #block-sociallinksfooter {
    justify-self: start !important;
  }

  .footer .footer-social {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .footer .copyright .text-left,
  .footer .copyright .text-right,
  .footer .copyright p,
  .footer .copyright span,
  .footer .copyright div {
    font-size: 11px !important;
    white-space: normal !important;
  }
}

/* 12. Responsive Mobile */
@media (max-width: 767px) {
  .footer .footer-center {
    padding: 25px 0 20px !important;
  }

  .footer .footer-center .container.custom-footer,
  .footer .copyright .container {
    width: calc(100% - 30px) !important;
  }

  .footer .first-section-footer > div {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "journal"
      "intro"
      "links"
      "social" !important;
    gap: 20px !important;
    text-align: center !important;
  }

  .footer #block-unionjournalfooter,
  .footer #block-introfooter2,
  .footer #block-linksfooterinline,
  .footer #block-sociallinksfooter {
    justify-self: center !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .footer #block-introfooter2 .intro-text img {
    margin: 0 auto 10px auto !important;
  }

  .footer .links-inline {
    align-items: center !important;
  }

  .footer .footer-social {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .footer .copyright-inner > div,
  .footer .copyright-inner .field__item,
  .footer .copyright #block-gavias-great-copyright .field__item {
    flex-direction: column !important;
    text-align: center !important;
    gap: 5px !important;
  }

  .footer .copyright .text-left,
  .footer .copyright .text-right {
    text-align: center !important;
    margin: 0 !important;
  }
}

/* =========================================================
   CORRECTIF COPYRIGHT - POSITIONNEMENT AUX EXTRÉMITÉS
   ========================================================= */

/* Forcer le conteneur interne à prendre toute la largeur */
.footer .copyright #block-gavias-great-copyright,
.footer .copyright #block-gavias-great-copyright .content,
.footer .copyright #block-gavias-great-copyright .field,
.footer .copyright #block-gavias-great-copyright .field__item,
.footer .copyright-inner,
.footer .copyright-inner > div {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
  flex-wrap: nowrap !important;
}

/* Le premier texte (Copyright) : collé à gauche */
.footer .copyright #block-gavias-great-copyright .field__item > *:first-child,
.footer .copyright-inner > div > *:first-child,
.footer .copyright .text-left,
.footer .copyright .pull-left {
  text-align: left !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  flex: 0 0 auto !important;
}

/* Le second texte (Plus d'infos) : collé à droite */
.footer .copyright #block-gavias-great-copyright .field__item > *:last-child,
.footer .copyright-inner > div > *:last-child,
.footer .copyright .text-right,
.footer .copyright .pull-right {
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}