/* Bandeau et panneau de consentement cookies */
.la-cc, .la-cc-panel, .la-cc-veil { font-family: inherit; }
.la-cc[hidden], .la-cc-panel[hidden], .la-cc-veil[hidden] { display: none; }

.la-cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
  background: var(--ink-2); color: var(--cream);
  border-top: 1px solid var(--gold-soft);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .38);
  padding: 20px clamp(16px, 4vw, 40px);
}
.la-cc-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.la-cc-text { flex: 1 1 420px; min-width: 260px; }
.la-cc-text h2 {
  margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3;
  letter-spacing: .01em; color: var(--gold-soft);
}
.la-cc-text p { margin: 0; font-size: .89rem; line-height: 1.55; color: var(--cream); opacity: .9; }
.la-cc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

/* Les trois boutons ont la meme geometrie : le refus est aussi accessible que l'acceptation (CNIL) */
.la-cc-btn {
  font: inherit; font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  padding: 12px 20px; min-width: 132px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--cream); background: transparent; color: var(--cream);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.la-cc-btn:hover { background: rgba(255, 255, 255, .12); }
.la-cc-btn--on { background: var(--gold); border-color: var(--gold); color: #fff; }
.la-cc-btn--on:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.la-cc-btn:focus-visible, .la-cc-close:focus-visible, .la-cc-sw input:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.la-cc-veil { position: fixed; inset: 0; z-index: 9600; background: rgba(0, 0, 0, .6); }
.la-cc-panel {
  position: fixed; z-index: 9700; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow: auto;
  background: var(--cream); color: var(--ink);
  border-top: 3px solid var(--gold); border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  padding: 28px clamp(20px, 4vw, 34px) 24px;
}
.la-cc-panel h2 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; }
.la-cc-panel > p { margin: 0 0 20px; font-size: .9rem; line-height: 1.6; color: var(--slate-2); }
.la-cc-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 1px solid var(--line-dark); background: transparent; color: var(--ink);
  font-size: 1.15rem; line-height: 1; cursor: pointer; border-radius: 2px;
}
.la-cc-close:hover { background: var(--paper); }

.la-cc-cat { border-top: 1px solid var(--line-dark); padding: 16px 0; }
.la-cc-cat:last-of-type { border-bottom: 1px solid var(--line-dark); }
.la-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.la-cc-cat-head h3 { margin: 0; font-size: .97rem; line-height: 1.3; }
.la-cc-cat p { margin: 7px 0 0; font-size: .84rem; line-height: 1.55; color: var(--slate); }

.la-cc-sw { position: relative; flex: 0 0 auto; display: inline-flex; }
.la-cc-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.la-cc-sw span {
  display: block; width: 48px; height: 26px; border-radius: 13px;
  background: #c3c7cc; transition: background .18s ease;
}
.la-cc-sw span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .18s ease;
}
.la-cc-sw input:checked + span { background: var(--gold); }
.la-cc-sw input:checked + span::after { transform: translateX(22px); }
.la-cc-sw input:disabled { cursor: default; }
.la-cc-sw input:disabled + span { background: var(--gold-deep); opacity: .55; }

.la-cc-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 14px; }
.la-cc-panel .la-cc-btn { border-color: var(--slate-2); color: var(--ink); }
.la-cc-panel .la-cc-btn:hover { background: var(--paper); }
.la-cc-panel .la-cc-btn--on { background: var(--gold); border-color: var(--gold); color: #fff; }
.la-cc-panel .la-cc-btn--on:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.la-cc-note { margin: 0; font-size: .78rem; line-height: 1.55; color: var(--slate); }
.la-cc-note a { color: var(--gold-deep); }

body.la-cc-locked { overflow: hidden; }

@media (max-width: 720px) {
  .la-cc { padding: 16px; }
  .la-cc-inner { gap: 16px; }
  .la-cc-actions { width: 100%; }
  .la-cc-btn { flex: 1 1 100%; }
  .la-cc-panel { padding: 24px 18px 20px; }
  .la-cc-panel-actions .la-cc-btn { flex: 1 1 100%; }
}
