/* ═══════════════════════════════════════════════════════════════════
   Les Domaines du Terroir — Bannière de consentement cookies
   DA2 "Vivant & Zen"
   ═══════════════════════════════════════════════════════════════════ */

.ldt-cb {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9990;
  width: min(680px, calc(100vw - 2rem));
  background: #FDFCF8;
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(37, 48, 40, 0.14),
    0 2px 8px  rgba(37, 48, 40, 0.08),
    0 0 0 1px rgba(61, 107, 68, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.35s ease;
  opacity: 0;
  overflow: hidden;
}

.ldt-cb[hidden] {
  display: none !important;
}

.ldt-cb--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Bande verte décorative en haut */
.ldt-cb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3D6B44, #7BA882, #F5A623, #3D6B44);
  background-size: 200% 100%;
  animation: ldt-cb-gradient 4s linear infinite;
}

@keyframes ldt-cb-gradient {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

.ldt-cb__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.ldt-cb__leaf {
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: ldt-cb-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes ldt-cb-sway {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg);  }
}

.ldt-cb__content {
  flex: 1;
  min-width: 0;
}

.ldt-cb__title {
  font-family: 'Lora', Georgia, serif;
  font-size: .95rem;
  font-weight: 600;
  color: #253028;
  margin-bottom: .35rem;
}

.ldt-cb__text {
  font-size: .78rem;
  color: #8A9185;
  line-height: 1.6;
}

.ldt-cb__text strong {
  color: #253028;
  font-weight: 600;
}

.ldt-cb__link {
  color: #3D6B44;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  font-weight: 500;
}

.ldt-cb__link:hover { color: #2A4D30; }

.ldt-cb__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex-shrink: 0;
}

.ldt-cb__btn {
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
  min-width: 110px;
  text-align: center;
}

.ldt-cb__btn:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.ldt-cb__btn:active { transform: translateY(0);    box-shadow: none; }

.ldt-cb__btn--accept {
  background: #3D6B44;
  color: #fff;
  border-color: #3D6B44;
}
.ldt-cb__btn--accept:hover { background: #2A4D30; border-color: #2A4D30; }

/* Refuser : même visibilité, style secondaire — pas de dark pattern */
.ldt-cb__btn--refuse {
  background: transparent;
  color: #8A9185;
  border-color: rgba(138, 145, 133, 0.35);
}
.ldt-cb__btn--refuse:hover {
  background: rgba(138, 145, 133, 0.08);
  color: #253028;
  border-color: rgba(138, 145, 133, 0.6);
}

/* ── Bouton footer "Gérer les cookies" ─────────────────────────── */
#ldt-manage-cookies {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color .2s;
  opacity: .75;
}
#ldt-manage-cookies:hover { opacity: 1; color: #B8D4BB; }

/* ── Responsive mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .ldt-cb {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(110%);
    border-radius: 20px 20px 0 0;
  }

  .ldt-cb--visible {
    transform: translateY(0);
  }

  .ldt-cb__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: .75rem;
  }

  .ldt-cb__leaf { display: none; }

  .ldt-cb__actions {
    flex-direction: row;
    width: 100%;
  }

  .ldt-cb__btn {
    flex: 1;
    padding: .65rem .75rem;
    font-size: .82rem;
  }
}
