/* ═══════════════════════════════════════════
   BANDEAU COOKIES — Baptiste & Daphné Immobilier
   Design V5 — navy #1E2535, gold #A8844A, Jost + Cormorant
   ═══════════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--navy);
  border-top: 1px solid rgba(168,132,74,0.2);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  opacity: 0;
  transform: translateY(100%);
 cursor: none !important;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
#cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Vue principale ── */
#banner-main {
  padding: 1.4rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.banner-left { flex: 1; min-width: 240px; }
.banner-left strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 400;
  color: var(--ivory); margin-bottom: .35rem; letter-spacing: .02em;
}
.banner-left p { font-size: .78rem; color: rgba(250,247,242,.5); line-height: 1.7; margin: 0; }
.banner-left p em { font-style: normal; color: rgba(250,247,242,.75); }

.banner-right { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; flex-shrink: 0; }
.banner-btns-row { display: flex; gap: .7rem; align-items: center; }

.btn-banner-accept {
  background: var(--gold); color: var(--charcoal);
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .75rem 1.8rem; border: none; cursor: pointer;
  transition: background .25s, transform .15s; white-space: nowrap;
}
.btn-banner-accept:hover { background: var(--gold-l); transform: translateY(-1px); }

.btn-banner-refuse {
  background: transparent; color: rgba(250,247,242,.8);
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .75rem 1.6rem;
  border: 1px solid rgba(250,247,242,.2); cursor: pointer;
  transition: border-color .25s, color .25s; white-space: nowrap;
}
.btn-banner-refuse:hover { border-color: var(--gold); color: var(--gold-l); }

.btn-banner-custom {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .68rem; letter-spacing: .1em;
  color: rgba(250,247,242,.28); text-decoration: underline;
  text-underline-offset: 3px; padding: 0; transition: color .2s;
}
.btn-banner-custom:hover { color: rgba(250,247,242,.55); }
.banner-reassurance { font-size: .64rem; color: rgba(250,247,242,.18); text-align: right; letter-spacing: .04em; }

/* ── Vue personnalisation ── */
#banner-custom { display: none; padding: 1.4rem 5% 1.2rem; border-top: 1px solid rgba(250,247,242,.06); }
#banner-custom.open { display: block; }

.custom-title {
  font-size: .64rem; font-weight: 400; color: var(--gold);
  letter-spacing: .24em; text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.custom-title::before { content: ''; display: block; width: 14px; height: 1px; background: var(--gold); flex-shrink: 0; }

.custom-rows { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

.custom-row {
  flex: 1; min-width: 180px;
  background: rgba(250,247,242,.03); border: 1px solid rgba(250,247,242,.08);
  padding: .9rem 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: .8rem; transition: border-color .2s;
}
.custom-row:hover { border-color: rgba(168,132,74,.3); }
.custom-row.required { opacity: .5; }
.custom-row-info { flex: 1; }
.custom-row-info strong { display: block; font-size: .78rem; font-weight: 400; color: var(--ivory); margin-bottom: .15rem; }
.custom-row-info span { font-size: .68rem; color: rgba(250,247,242,.32); line-height: 1.5; }

/* Toggle */
.toggle { position: relative; width: 38px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: rgba(250,247,242,.1); border-radius: 20px; transition: background .3s; }
.slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 3px; background: rgba(250,247,242,.6); border-radius: 50%; transition: transform .3s, background .3s; }
input:checked + .slider { background: var(--gold); }
input:checked + .slider::before { transform: translateX(18px); background: var(--charcoal); }
input:disabled + .slider { cursor: not-allowed; opacity: .4; }

/* Boutons custom */
.custom-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

.btn-save-custom {
  background: var(--gold); color: var(--charcoal);
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .65rem 1.6rem; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-save-custom:hover { background: var(--gold-l); transform: translateY(-1px); }

.btn-back-banner {
  background: transparent; color: rgba(250,247,242,.35);
  font-family: 'Jost', sans-serif; font-size: .72rem;
  border: none; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; transition: color .2s;
}
.btn-back-banner:hover { color: rgba(250,247,242,.65); }

.btn-refuse-all-custom {
  background: transparent; color: rgba(250,247,242,.3);
  font-family: 'Jost', sans-serif; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(250,247,242,.1); cursor: pointer;
  padding: .5rem .9rem; transition: color .2s, border-color .2s; margin-left: auto;
}
.btn-refuse-all-custom:hover { color: rgba(250,247,242,.55); border-color: rgba(250,247,242,.22); }

/* ── Responsive ── */
@media (max-width: 640px) {
  #banner-main { flex-direction: column; align-items: flex-start; }
  .banner-right { align-items: flex-start; width: 100%; }
  .banner-btns-row { width: 100%; }
  .btn-banner-accept, .btn-banner-refuse { flex: 1; text-align: center; }
  .banner-reassurance { text-align: left; }
  .custom-rows { flex-direction: column; }
  .custom-actions { flex-direction: column; align-items: flex-start; }
  .btn-refuse-all-custom { margin-left: 0; }
}
