/* ─────────────────────────────────────────────────────────────────────────────
   Bibliothèque des templates publics — Footer 1 KreaBoard
   Modèle canonique utilisé par l’aperçu Admin et le runtime public.
   Ne contient aucune règle propre à l’interface Settings.
───────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────────
   Footer public : colonnes, liens, marque et bas de page
   ────────────────────────────────────────────────────────────────────────────── */

.kb-footer {
  padding: 56px 0 28px;
  color: var(--kb-white, #ffffff);
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 109, 255, 0.26), transparent 28%),
    linear-gradient(135deg, var(--kb-blue-950, #03103d), var(--kb-blue-900, #061b5a));
}

.kb-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 48px;
}

.kb-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kb-footer__logo > span {
  color: var(--kb-blue-500, #2d6dff);
  font-size: 39px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.kb-footer__logo strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.kb-footer__logo small {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
}

.kb-footer__brand p {
  max-width: 260px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.65;
}

.kb-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.kb-socials span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
}

.kb-footer__col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.kb-footer__col strong {
  margin-bottom: 8px;
  color: var(--kb-white, #ffffff);
  font-size: 14px;
}

.kb-footer__col a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
}

.kb-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.kb-footer__bottom span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Correction espacement footer après suppression colonne Plateforme
   ────────────────────────────────────────────────────────────────────────────── */

.kb-footer__grid {
  grid-template-columns: minmax(280px, 1.25fr) minmax(150px, 0.72fr) minmax(150px, 0.72fr) minmax(150px, 0.72fr);
  gap: clamp(42px, 5vw, 86px);
  align-items: start;
}

.kb-footer__brand {
  max-width: 320px;
}

.kb-footer__col {
  min-width: 0;
}

.kb-footer__col a {
  line-height: 1.45;
}

.kb-footer__bottom {
  margin-top: 58px;
}


/* ──────────────────────────────────────────────────────────────────────────────
   Footer desktop - Structure Produit / Ressources / Info
   ────────────────────────────────────────────────────────────────────────────── */

@media (min-width: 861px) {
  .kb-footer__grid {
    grid-template-columns:
      minmax(280px, 1.15fr)
      minmax(180px, 0.72fr)
      minmax(170px, 0.64fr)
      minmax(260px, 0.95fr);
    gap: clamp(42px, 5vw, 88px);
    align-items: start;
  }

  .kb-footer__brand {
    max-width: 360px;
  }

  .kb-footer__col h3 {
    margin-bottom: 18px;
  }

  .kb-footer__col a {
    line-height: 1.42;
  }
}


/* ──────────────────────────────────────────────────────────────────────────────
   Footer final - Structure propre KreaBoard
   KreaBoard | Produit | Ressources | Info
   ────────────────────────────────────────────────────────────────────────────── */

@media (min-width: 861px) {
  .kb-footer__grid {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.1fr) minmax(170px, 0.7fr) minmax(160px, 0.62fr) minmax(260px, 0.9fr) !important;
    gap: clamp(48px, 5vw, 88px) !important;
    align-items: start !important;
  }

  .kb-footer__brand {
    max-width: 360px !important;
  }

  .kb-footer__col {
    min-width: 0 !important;
  }

  .kb-footer__col h3 {
    margin: 0 0 18px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .kb-footer__col a {
    display: block !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .kb-footer__bottom {
    margin-top: 54px !important;
  }
}


/* ──────────────────────────────────────────────────────────────────────────────
   Footer final - Ajout colonne Legal
   Structure : KreaBoard | Produit | Ressources | Info | Legal
   ────────────────────────────────────────────────────────────────────────────── */

@media (min-width: 861px) {
  .kb-footer__grid {
    display: grid !important;
    grid-template-columns:
      minmax(280px, 1.05fr)
      minmax(150px, 0.6fr)
      minmax(140px, 0.55fr)
      minmax(140px, 0.55fr)
      minmax(230px, 0.85fr) !important;
    gap: clamp(34px, 4vw, 70px) !important;
    align-items: start !important;
  }

  .kb-footer__col h3 {
    margin: 0 0 18px !important;
  }

  .kb-footer__col a {
    display: block !important;
    margin: 0 0 12px !important;
    line-height: 1.38 !important;
  }
}


/* ──────────────────────────────────────────────────────────────────────────────
   Footer - Logo sans soulignement et réseaux sociaux définitifs
   ────────────────────────────────────────────────────────────────────────────── */

.kb-footer__logo,
.kb-footer__logo:hover,
.kb-footer__logo:focus,
.kb-footer__logo strong,
.kb-footer__logo span {
  text-decoration: none !important;
}

.kb-footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kb-footer__socials a,
.kb-footer__socials a:hover,
.kb-footer__socials a:focus {
  text-decoration: none !important;
}

.kb-footer__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--kb-white, #ffffff);
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.kb-footer__socials a:hover {
  background: rgba(255, 255, 255, 0.18);
}


/* ──────────────────────────────────────────────────────────────────────────────
   Footer - Réseaux sociaux SVG propres et espacés
   ────────────────────────────────────────────────────────────────────────────── */

.kb-footer__socials {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 22px !important;
}

.kb-footer__socials a {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: var(--kb-white, #ffffff) !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.kb-footer__socials a:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) !important;
}

.kb-footer__socials svg {
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  fill: currentColor !important;
}

@media (max-width: 560px) {
  .kb-footer__socials {
    gap: 18px !important;
    margin-top: 24px !important;
  }

  .kb-footer__socials a {
    width: 40px !important;
    height: 40px !important;
  }

  .kb-footer__socials svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Picto hébergement Europe */

.kb-footer__hosting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kb-footer__hosting i {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 3px dotted var(--kb-cyan, #32d6ff);
  border-radius: 999px;
}

