/* ============================= */
/* FOOTER - GRHTLD */
/* Même style que le footer du modèle */
/* Adapté à <footer class="footer"> */
/* ============================= */

:root {
  --bg: #F4F1EA;
  --bg-2: #ECE8DD;
  --surface: #FFFFFF;
  --ink: #14110D;
  --ink-2: #3B362D;
  --ink-3: #71695C;
  --line: #DDD6C6;

  --navy: #1F3565;
  --navy-dk: #152545;
  --gold: #D9A536;
  --gold-soft: #F4E2B8;

  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ============================= */
/* FOOTER GLOBAL */
/* ============================= */

.footer {
  background: var(--navy-dk);
  color: rgba(244, 241, 234, .72);
  padding: 64px 0 32px;
}

/* Container interne comme .wrap du modèle */
.footer .footer__main,
.footer .footer__last {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

/* ============================= */
/* FOOTER TOP */
/* équivalent .footer-top */
/* ============================= */

.footer .footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 241, 234, .12);
  align-items: start;
}

/* ============================= */
/* BRAND / AGENCY */
/* équivalent .foot-brand */
/* ============================= */

.footer .footer__agency {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .footer__agency a,
.footer .footer__agency .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer .footer__agency img {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 4px;
  object-fit: contain;
}

.footer .footer__agency > p {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-soft);
  max-width: 360px;
  line-height: 1.5;
  font-style: italic;
}

/* ============================= */
/* CONTACT / ADRESSE */
/* équivalent .addr du modèle */
/* ============================= */

.footer .footer__contact {
  grid-column: 1;
  margin-top: -34px;
  font-size: 13.5px;
  color: rgba(244, 241, 234, .65);
  line-height: 1.7;
}

.footer .footer__contact > p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer .footer__contact a {
  display: block;
  color: rgba(244, 241, 234, .65) !important;
  font-size: 13.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color .15s;
}

.footer .footer__contact a:hover {
  color: var(--gold) !important;
}

.footer .footer__contact a::before {
  display: none !important;
  content: none !important;
}

/* ============================= */
/* MENU FOOTER */
/* équivalent des 3 colonnes du modèle */
/* ============================= */

.footer .footer__menu {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
}

.footer .footer__menu .menu__footer {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  width: 100%;
}

.footer .footer__menu .menu__footer li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.footer .footer__menu .menu__footer li::before,
.footer .footer__menu .menu__footer li::marker {
  display: none !important;
  content: none !important;
}

.footer .footer__menu .menu__footer a {
  text-decoration: none;
}

/* Titres des colonnes : Découvrir / Association / Contribuer */
.footer .footer__menu .menu__footer > li > a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 18px;
  line-height: 1.3;
}

/* Sous-menu */
.footer .footer__menu .menu__footer > li > .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

/* Liens des sous-menus */
.footer .footer__menu .menu__footer > li > .sub-menu a {
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(244, 241, 234, .78) !important;
  line-height: 1.45;
  transition: color .15s;
}

.footer .footer__menu .menu__footer > li > .sub-menu a:hover {
  color: var(--gold) !important;
}

/* Liens actifs */
.footer .footer__menu .menu__footer li.current-page-ancestor > a,
.footer .footer__menu .menu__footer li.current-menu-item > a {
  color: var(--gold) !important;
}

/* ============================= */
/* FOOTER BOTTOM */
/* équivalent .footer-bottom */
/* ============================= */

.footer .footer__last {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(244, 241, 234, .55);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.footer .footer__last p {
  margin: 0;
  
  color: rgba(244, 241, 234, .55) !important;
  font-size: 13px;
}

.footer .footer__last a {
  color: rgba(244, 241, 234, .55) !important;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
  
}

.footer .footer__last a:hover {
  color: var(--gold) !important;
}

/* Devise / motto si présent */
.footer .footer__last .footer-bottom__motto,
.footer .footer-bottom__motto {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
}

/* ============================= */
/* RESET LISTES FOOTER */
/* ============================= */

.footer ul,
.footer li {
  list-style: none !important;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer li::before,
.footer li::marker {
  display: none !important;
  content: none !important;
}

.footer .footer-bottom.footer__last {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.footer .footer-bottom__links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 28px !important;
}

.footer .footer-bottom__links a {
  display: inline-flex !important;
  color: rgba(244, 241, 234, .55) !important;
  text-decoration: none !important;
}

.footer .footer-bottom__links a:hover {
  color: var(--gold) !important;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .footer .footer__main {
    grid-template-columns: 1.4fr 2fr;
    gap: 36px;
  }

  .footer .footer__menu .menu__footer {
    gap: 36px;
  }
}

@media (max-width: 880px) {
  .footer .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer .footer__agency {
    grid-column: auto;
  }

  .footer .footer__contact {
    grid-column: auto;
    margin-top: 0;
  }

  .footer .footer__menu {
    grid-column: auto;
    grid-row: auto;
  }

  .footer .footer__menu .menu__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 64px 0 32px;
  }

  .footer .footer__main,
  .footer .footer__last {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer .footer__agency img {
    height: 76px;
    padding: 8px 12px;
  }

  .footer .footer__menu .menu__footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer .footer__menu .menu__footer > li > a {
    margin-bottom: 14px;
  }

  .footer .footer__menu .menu__footer > li > .sub-menu {
    gap: 14px;
  }

  .footer .footer__last {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer .footer__last > div,
  .footer .footer__last p {
    width: 100%;
  }

  .footer .footer__last .motto,
  .footer .footer__last em {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .footer .footer__main,
  .footer .footer__last {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer .footer__agency img {
    height: 68px;
  }
}