/* ==========================================================================
   Bandeau de consentement aux cookies
   Chargé après stylez.css : réutilise les variables :root de la charte.
   Le bandeau se place SOUS le panneau du formulaire (z-index 1080) pour ne
   jamais recouvrir une étape en cours de saisie.
   ========================================================================== */

.vp-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1070;
  background: var(--cream, #FBF6F3);
  border-top: 1px solid var(--sand, #d5c1b6);
  box-shadow: 0 -8px 30px rgba(var(--shadow-rgb, 74, 60, 50), .16);
  transform: translateY(110%);
  transition: transform .35s ease;
  /* Sur un petit ecran, le detail des finalites depasserait la hauteur visible :
     le bandeau defile alors sur lui-meme plutot que de sortir de l'ecran. */
  max-height: 85vh;
  overflow-y: auto;
}

.vp-cookies.is-open { transform: translateY(0); }

/* Pas d'animation pour qui la refuse (préférence système). */
@media (prefers-reduced-motion: reduce) {
  .vp-cookies { transition: none; }
}

.vp-cookies__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.35rem;
}

.vp-cookies__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark, #4a3c32);
  margin: 0 0 .35rem;
  text-transform: none;
}

.vp-cookies__text {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-body, #55483f);
  margin: 0 0 1rem;
  text-transform: none;
}

.vp-cookies__text a { color: var(--primary-dark, #4a3c32); }

/* --- Boutons -------------------------------------------------------------
   « Accepter » et « Refuser » ont exactement le même poids visuel : c'est une
   exigence CNIL, refuser doit être aussi simple qu'accepter. Seul le remplissage
   change, jamais la taille ni la position. */

.vp-cookies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.vp-cookies__btn {
  flex: 1 1 auto;
  min-width: 170px;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.vp-cookies__btn--accept {
  background: var(--brand, #F5054F);
  border: 1px solid var(--brand, #F5054F);
  color: #fff;
}

.vp-cookies__btn--refuse {
  background: #fff;
  border: 1px solid var(--brand, #F5054F);
  color: var(--brand, #F5054F);
}

.vp-cookies__btn--accept:hover,
.vp-cookies__btn--refuse:hover {
  background: var(--brand-hover-bg, #fff);
  border-color: var(--brand-hover-bd, #000);
  color: var(--brand-hover-bd, #000);
}

.vp-cookies__btn--settings {
  flex: 0 1 auto;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #6f625a);
  text-decoration: underline;
}

.vp-cookies__btn--settings:hover { color: var(--primary-dark, #4a3c32); }

.vp-cookies__btn:focus-visible {
  outline: 2px solid var(--brand, #F5054F);
  outline-offset: 2px;
}

/* --- Panneau « Personnaliser » ------------------------------------------- */

.vp-cookies__prefs {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e0d3cb);
}

.vp-cookies__prefs[hidden] { display: none; }

.vp-cookies__choice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .7rem .9rem;
  margin-bottom: .6rem;
  background: var(--warm-tint, #F7EBE5);
  border: 1px solid var(--border, #e0d3cb);
  border-radius: 10px;
}

.vp-cookies__choice input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--brand, #F5054F);
  cursor: pointer;
}

.vp-cookies__choice input[disabled] { cursor: not-allowed; opacity: .55; }

.vp-cookies__choice label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary-dark, #4a3c32);
  text-transform: none;
  cursor: pointer;
  margin: 0;
}

.vp-cookies__choice p {
  margin: .15rem 0 0;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-muted, #6f625a);
  text-transform: none;
}

@media (min-width: 768px) {
  .vp-cookies__inner { padding: 1.4rem 1.5rem; }
  .vp-cookies__actions { justify-content: flex-start; }
  .vp-cookies__btn--accept,
  .vp-cookies__btn--refuse { flex: 0 0 auto; }
}

/* --- Lien de reprise (pied de page) -------------------------------------- */

.vp-cookies-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.vp-cookies-link:hover { text-decoration: underline; }
