/* GF Studio — bannière cookies */
#gfs-cc, .gfs-cc-fab { --gfs-cc-brand: #d61f26; --gfs-cc-ink: #1d2433; --gfs-cc-muted: #5b6475; }

.gfs-cc {
  position: fixed; z-index: 100000; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
  font-family: inherit; font-size: 14px; line-height: 1.55; color: var(--gfs-cc-ink);
  opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease;
}
.gfs-cc.is-visible { opacity: 1; transform: none; }
.gfs-cc[hidden] { display: none; }
.gfs-cc.is-expanded { width: min(520px, calc(100vw - 40px)); }

.gfs-cc__box {
  max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 22px 18px; border-radius: 14px; background: #fff;
  border-top: 4px solid var(--gfs-cc-brand); box-shadow: 0 18px 50px -12px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .06);
}
.gfs-cc__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--gfs-cc-ink); }
.gfs-cc__text { margin: 0 0 16px; color: var(--gfs-cc-muted); }
.gfs-cc__text a { color: var(--gfs-cc-brand); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.gfs-cc__panel { margin: 0 0 16px; border-top: 1px solid #eaecf0; }
.gfs-cc__panel[hidden] { display: none; }
.gfs-cc__cat { padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.gfs-cc__cat p { margin: 4px 0 0 52px; font-size: 13px; color: var(--gfs-cc-muted); }
.gfs-cc__switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.gfs-cc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gfs-cc__slider { position: relative; flex: none; width: 40px; height: 22px; border-radius: 22px; background: #d0d5dd; transition: background .15s; }
.gfs-cc__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.gfs-cc__switch input:checked + .gfs-cc__slider { background: var(--gfs-cc-brand); }
.gfs-cc__switch input:checked + .gfs-cc__slider::after { transform: translateX(18px); }
.gfs-cc__switch input:disabled + .gfs-cc__slider { opacity: .55; }
.gfs-cc__switch input:focus-visible + .gfs-cc__slider { outline: 2px solid var(--gfs-cc-brand); outline-offset: 2px; }

.gfs-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gfs-cc__btn {
  flex: 1 1 auto; min-height: 42px; padding: 9px 14px; border: 2px solid var(--gfs-cc-brand); border-radius: 8px;
  background: var(--gfs-cc-brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: filter .15s, background .15s;
}
.gfs-cc__btn:hover { filter: brightness(.92); }
.gfs-cc__btn:focus-visible { outline: 3px solid var(--gfs-cc-ink); outline-offset: 2px; }
/* Refuser et accepter ont exactement le même poids visuel (exigence APD / CNIL). */
.gfs-cc__btn--ghost { flex-basis: 100%; background: transparent; color: var(--gfs-cc-ink); border-color: #d0d5dd; }
.gfs-cc__btn--ghost:hover { border-color: var(--gfs-cc-brand); color: var(--gfs-cc-brand); filter: none; }
.gfs-cc__btn[hidden] { display: none; }

.gfs-cc-fab {
  position: fixed; z-index: 99990; left: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--gfs-cc-brand); cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(16, 24, 40, .45), 0 0 0 1px rgba(16, 24, 40, .08); transition: transform .15s;
}
.gfs-cc-fab:hover { transform: scale(1.06); }
.gfs-cc-fab:focus-visible { outline: 3px solid var(--gfs-cc-brand); outline-offset: 2px; }

@media (max-width: 560px) {
  .gfs-cc, .gfs-cc.is-expanded { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .gfs-cc__box { padding: 18px 16px 14px; }
  .gfs-cc__btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gfs-cc, .gfs-cc-fab { transition: none; }
}
/* Le bouton flottant s'efface tant que la bannière est ouverte. */
.gfs-cc:not([hidden]) ~ .gfs-cc-fab { display: none; }
