/* ========================================
   C-F-03 — Footer
   Mobile-first — BEM
   Toutes les couleurs via variables CSS
======================================== */

/* ── Block ─────────────────────────────────────────────────────────────── */

.cf-03-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

/* ── Inner ─────────────────────────────────────────────────────────────── */

.cf-03-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ── Colonnes — mobile : empilées ──────────────────────────────────────── */

.cf-03-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* ── Logo ──────────────────────────────────────────────────────────────── */

.cf-03-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--footer-text);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cf-03-footer__logo img {
  display: block;
  width: auto;
  max-height: 80px;
}

/* ── Colonne logo ──────────────────────────────────────────────────────── */

.cf-03-footer__col--logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px; /* mobile : espace sous le logo avant les nav */
}

@media (min-width: 1024px) {
  .cf-03-footer__col--logo {
    flex: 0 0 170px; /* largeur fixe calée sur le Figma */
    margin-bottom: 0;
  }
}

/* ── Menu primaire (col 1) ─────────────────────────────────────────────── */

.cf-03-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-03-footer__menu .menu-item a {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375; /* 22/16 */
  color: var(--footer-text);
  text-decoration: none;
}

.cf-03-footer__menu .menu-item a:hover {
  text-decoration: underline;
}

/* ── Titre de colonne ──────────────────────────────────────────────────── */

.cf-03-footer__col-title {
  margin: 0 0 32px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--footer-text);
}

/* ── Navigation secondaire (col 2) ────────────────────────────────────── */

.cf-03-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-03-footer__link-item a {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.533; /* 23/15 */
  color: var(--footer-text);
  text-decoration: none;
}

.cf-03-footer__link-item a:hover {
  text-decoration: underline;
}

/* ── Contenu wysiwyg (col 3) ───────────────────────────────────────────── */

.cf-03-footer__wysiwyg {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.533;
  color: var(--footer-text);
}

.cf-03-footer__wysiwyg p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.533;
  color: var(--footer-text);
}

.cf-03-footer__wysiwyg p:last-child {
  margin-bottom: 0;
}

.cf-03-footer__wysiwyg a {
  color: var(--footer-text);
  text-decoration: underline;
}

/* ── Social links (col 4) ──────────────────────────────────────────────── */

.cf-03-footer__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-03-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--btn-primary-bg);
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cf-03-footer__social-link:hover {
  opacity: 0.8;
}

.cf-03-footer__social-link img {
  display: block;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* force blanc si picto sombre */
}

/* ── Ligne copyright ───────────────────────────────────────────────────── */

.cf-03-footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cf-03-footer__copyright {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--footer-text);
  opacity: 0.45;
}

@media (min-width: 1024px) {
  .cf-03-footer__bottom {
    padding: 14px 90px;
  }
}

/* ── Accent bas ────────────────────────────────────────────────────────── */

.cf-03-footer__accent {
  height: 6px;
  background-color: var(--btn-primary-bg);
}

/* ── Desktop ≥ 1024px ──────────────────────────────────────────────────── */

@media (min-width: 1024px) {

  .cf-03-footer__inner {
    padding: 64px 90px;
  }

  /* Colonnes côte à côte — s'adapte automatiquement au nombre de cols rendues */
  .cf-03-footer__columns {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: start;
  }

  .cf-03-footer__col {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Titres de colonne desktop */
  .cf-03-footer__col-title {
    font-size: 24px;
  }

  /* Liens secondaires desktop */
  .cf-03-footer__link-item a {
    font-size: 16px;
    line-height: 1.375;
  }

  /* Wysiwyg desktop */
  .cf-03-footer__wysiwyg,
  .cf-03-footer__wysiwyg p {
    font-size: 16px;
    line-height: 1.375;
  }
}
