/* CSS pour reproduire exactement le footer de la maquette */
.site-footer {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Arial, sans-serif;
  margin-top: auto;
}

/* Section des logos partenaires (fond blanc) */
.footer-partners {
  background-color: #eceffa !important;
  padding: 32px 0 24px;
  border-top: 1px solid #e0e0e0;
}

/* Rangée du logo Programme (AdaptWise | Interreg + emblème UE) : EN GRAND,
   centré, au-dessus des partenaires — vademecum Marittimo 21-27 §4, l'emblème
   UE doit primer sur les autres logos. */
.footer-programme {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 44px;
}

.footer-programme .footer-logo-programme {
  max-height: 96px;
  max-width: min(640px, 86vw);
  width: auto;
  height: auto;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-height: 38px;
  width: auto;
}

.footer-logos img {
  /* 32px (au lieu de 38) : les logos partenaires doivent rester plus petits que
     l'emblème UE — vademecum Marittimo 21-27 (demande client 2026-07-20). */
  max-height: 32px;
  max-width: 160px;
  width: auto;
}



/* Section des colonnes informatives (fond bleu) */
.footer-main {
  background-color: #fff;
}

.footer-column-title {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #000;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: black;
  font-weight: 400;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.footer-links li a:before {
  margin-right: 10px;
}

.footer-links li a:hover {
  text-decoration: underline;
}

/* Zone ADAPTWISE et logos de bas de page */
.footer-secondary-logos {
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-items: center;
}

.footer-eu-logos {
  display: flex;
  gap: 20px;
}

.footer-eu-logos .footer-logo img {
  max-height: 40px;
}

/* Contenu flexible de gauche du footer */
.footer-left-content {
  flex: 1;
  min-width: 200px;
}

.footer-left-content h1,
.footer-left-content h2,
.footer-left-content h3,
.footer-left-content h4,
.footer-left-content h5,
.footer-left-content h6 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.footer-left-content p {
  margin-bottom: 0px;
  color: #000000;
  line-height: 1.6;
  font-size: 14px;
}

.footer-left-content a {
  color: #003399;
  text-decoration: none;
}

.footer-left-content a:hover {
  text-decoration: underline;
}

.footer-left-content ul,
.footer-left-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.footer-left-content li {
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

.footer-left-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {

  .footer-partners {
    padding: 30px 0;
  }

  .footer-logos,
  .footer-secondary-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-logos img {
    max-height: 28px;
    max-width: 140px;
    width: auto;
  }

  .footer-programme .footer-logo-programme {
    max-height: 64px;
  }

  /* Faire passer les rows en colonne sur mobile */
  .footer-main .row {
    flex-direction: column !important;
    gap: 15px;
    align-items: flex-start;
  }

  .footer-secondary-logos {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left-content {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-eu-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }



  /* Ajuster les colonnes sur mobile */
  .footer-main .column {
    width: 100%;
    text-align: left;
  }
}
/* Sous 576px, le .container global (main.css) fait 100 % de large sans padding
   horizontal : le contenu du footer collait aux bords de l'écran (constat
   mobile 2026-07-16). Padding scopé au footer plutôt que de toucher au
   .container global. */
@media (max-width: 575px) {
  .site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   Slogan bilingue Interreg Maritime (pied de page, tout le site)
   ============================================================
   Obligation de communication du Programme : slogan dans les DEUX
   langues, en Montserrat ou Open Sans, 9 pt minimum, CMJN
   100/80/00/00. Le bleu a été échantillonné dans les fichiers
   officiels fournis par le client : #003399, soit exactement le
   bleu de la charte du site (--color-primary).

   Police auto-hébergée sous un nom de famille dédié : "Open Sans"
   est déclarée partout dans le thème mais n'est chargée nulle part
   (aucun @font-face, aucun Google Fonts), donc un visiteur qui ne
   l'a pas installée voit une police système. Déclarer un @font-face
   nommé "Open Sans" corrigerait ça pour TOUT le site d'un coup,
   changement typographique global non demandé : d'où ce nom dédié,
   qui ne s'applique qu'au slogan. */
@font-face {
  font-family: "Open Sans Interreg";
  src: url("../assets/fonts/open-sans-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.interreg-slogan {
  background-color: #eceffa;
  padding: 18px 0;
  border-top: 1px solid #e0e0e0;
}

.interreg-slogan__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  text-align: center;
}

.interreg-slogan__text {
  font-family: "Open Sans Interreg", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  /* Plancher du vademecum : 9 pt = 12 px. On garde de la marge. */
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-primary, #003399);
}

.interreg-slogan__vele {
  flex: 0 0 auto;
  width: auto;
  height: 30px;
}

@media (max-width: 767px) {
  /* Empilement vertical, mais on garde l'ordre du desktop : italien,
     voiles, français. Les voiles restent le point de bascule entre les
     deux langues, jamais rejetées en dessous (demande Tom 2026-08-25). */
  .interreg-slogan__inner {
    flex-direction: column;
    gap: 8px;
  }

  .interreg-slogan__text {
    font-size: 13px;
  }

  .interreg-slogan__vele {
    height: 26px;
  }
}
