/* =========================================================================
   KREME K.O — Contact multi-canal
   1) Bouton flottant (bas à droite) : WhatsApp / Appel / Email
   2) Panneau de suggestion affiché après l'envoi du formulaire de contact
   Réutilise la palette officielle du site (kreme.css) : aucune nouvelle
   couleur de marque introduite, seul le vert WhatsApp est ajouté (universel).
   Se charge APRÈS kreme-boost.css.
   ========================================================================= */

/* ---------------------------------------------------------------------
   1) BOUTON FLOTTANT
   Positionné au-dessus de la mascotte de chantier (.kk-mascot) pour ne
   jamais se superposer à elle : mascotte = bas 18px / haut 92px -> ce
   bouton démarre à 128px du bas sur desktop, 96px sur mobile.
   --------------------------------------------------------------------- */
.kk-fab{
  position: fixed;
  right: 18px;
  bottom: 128px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.kk-fab__menu{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.kk-fab__item{
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--kreme-dark, #14110A);
  border-radius: 30px;
  padding-right: 18px;
  height: 46px;
  box-shadow: 0 8px 22px rgba(20,17,10,.18);
  text-decoration: none;
  font-family: var(--kk-font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px) scale(.9);
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
}
.kk-fab.is-open .kk-fab__item{
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.kk-fab.is-open .kk-fab__item:nth-child(1){ transition-delay: .14s; }
.kk-fab.is-open .kk-fab__item:nth-child(2){ transition-delay: .07s; }
.kk-fab.is-open .kk-fab__item:nth-child(3){ transition-delay: 0s; }
.kk-fab__item:hover{ color: var(--kreme-dark, #14110A); transform: translateY(-2px); }

.kk-fab__icon{
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
}
.kk-fab__item--wa .kk-fab__icon{ background: #25D366; }
.kk-fab__item--call .kk-fab__icon{ background: var(--kreme-dark, #14110A); }
.kk-fab__item--mail .kk-fab__icon{ background: var(--kreme, #C9A227); color: var(--kreme-dark, #14110A); }

.kk-fab__toggle{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #25D366;
  color: #fff;
  font-size: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.kk-fab__toggle:hover{ transform: translateY(-3px); }
.kk-fab__toggle::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: kkFabPulse 2.4s ease-out infinite;
  z-index: -1;
}
.kk-fab__toggle i{ transition: transform .25s ease; }
.kk-fab.is-open .kk-fab__toggle i{ transform: rotate(135deg); }
.kk-fab.is-open .kk-fab__toggle{ background: var(--kreme-dark, #14110A); }
.kk-fab.is-open .kk-fab__toggle::before{ display: none; }

@keyframes kkFabPulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.9); opacity: 0; }
}

.kk-fab__tooltip{
  position: absolute;
  right: 70px;
  bottom: 16px;
  background: var(--kreme-dark, #14110A);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.kk-fab:not(.is-open):hover .kk-fab__tooltip{ opacity: 1; transform: translateX(0); }
.kk-fab.is-open .kk-fab__tooltip{ display: none; }

@media (max-width: 575px){
  .kk-fab{ right: 12px; bottom: 96px; gap: 8px; }
  .kk-fab__toggle{ width: 52px; height: 52px; font-size: 23px; }
  .kk-fab__item{ height: 42px; font-size: 13px; }
  .kk-fab__icon{ width: 42px; height: 42px; font-size: 17px; }
  .kk-fab__tooltip{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .kk-fab__toggle::before{ animation: none; }
}

/* ---------------------------------------------------------------------
   1bis) BIENS À LA UNE — page Contact (remplace l'ancien bloc vidéo)
   --------------------------------------------------------------------- */
.kk-contact-biens{
  margin-top: 24px;
  background: var(--kreme-soft, #FAF6EC);
  border: 1px solid #eee1c2;
  border-radius: 14px;
  padding: 22px;
}
.kk-contact-biens h4{
  font-size: 16.5px;
  font-weight: 800;
  color: var(--kreme-dark, #14110A);
  margin: 0 0 16px;
}
.kk-contact-biens__list{ display: flex; flex-direction: column; gap: 12px; }
.kk-contact-biens__empty{ font-size: 13.5px; color: #8a8467; margin: 0; }

.kk-contact-bien{
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20,17,10,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kk-contact-bien:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,17,10,.12); }
.kk-contact-bien__img{
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #f0ead4;
}
.kk-contact-bien__body{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kk-contact-bien__title{
  font-size: 14.5px;
  font-weight: 700;
  color: var(--kreme-dark, #14110A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kk-contact-bien__price{ font-size: 13px; font-weight: 700; color: var(--kreme-bronze, #7A5214); }

.kk-contact-biens__all{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kreme-dark, #14110A);
  text-decoration: none;
}
.kk-contact-biens__all i{ color: var(--kreme, #C9A227); font-size: 11px; transition: transform .2s ease; }
.kk-contact-biens__all:hover i{ transform: translateX(3px); }

/* ---------------------------------------------------------------------
   2) PANNEAU DE SUGGESTION — après envoi réussi du formulaire de contact
   --------------------------------------------------------------------- */
.kk-suggest{
  margin-top: 20px;
  background: var(--kreme-soft, #FAF6EC);
  border: 1px solid #eee1c2;
  border-radius: 14px;
  padding: 22px 22px 20px;
  animation: kkSuggestIn .4s ease;
}
@keyframes kkSuggestIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.kk-suggest h4{
  font-size: 16.5px;
  font-weight: 800;
  color: var(--kreme-dark, #14110A);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kk-suggest h4 i{ color: #2fae54; }
.kk-suggest p{
  font-size: 14px;
  color: #5a5a5a;
  margin: 0 0 16px;
}
.kk-suggest__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.kk-suggest__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kk-suggest__btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,17,10,.18); }
.kk-suggest__btn--wa{ background: #25D366; }
.kk-suggest__btn--call{ background: var(--kreme-dark, #14110A); }
.kk-suggest__btn--sms{ background: var(--kreme-bronze, #7A5214); }
.kk-suggest__btn--mail{ background: var(--kreme, #C9A227); color: var(--kreme-dark, #14110A) !important; }

@media (max-width: 575px){
  .kk-suggest{ padding: 18px; }
}
