/* Bannière consentement cookies RGPD/CNIL.
   Apparaît au 1er visit (cookie flaynn_consent absent ou expiré 12 mois).
   Position: bottom centered. Glassmorphism dark. Violet + orange. IBM Plex.
   Modale personnaliser : 3 catégories (strictement nécessaires forcé ON,
   fonctionnels, mesure d'audience). Toggles ARIA. */

.fly-cookie-banner,
.fly-cookie-modal,
.fly-cookie-modal__overlay {
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: #e9ecf1;
}

/* ========================= Bannière ========================= */
.fly-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(720px, calc(100vw - 32px));
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 15, 21, .94), rgba(8, 9, 13, .94));
  border: 1px solid rgba(168, 94, 192, .25);
  box-shadow:
    0 14px 48px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 0 60px -20px rgba(123, 45, 142, .35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: grid;
  gap: 14px;
}
.fly-cookie-banner__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #e9ecf1;
}
.fly-cookie-banner__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #9aa3b2;
}
.fly-cookie-banner__body a {
  color: #a85ec0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fly-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.fly-cookie-banner__btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  letter-spacing: -.005em;
  transition: filter .18s ease, transform .18s ease, background .18s ease;
  min-height: 44px;
}
.fly-cookie-banner__btn--primary {
  background: linear-gradient(135deg, #7B2D8E, #E8651A);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(123, 45, 142, .30), 0 4px 20px rgba(123, 45, 142, .25);
}
.fly-cookie-banner__btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.fly-cookie-banner__btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: #e9ecf1;
  border: 1px solid rgba(255, 255, 255, .10);
}
.fly-cookie-banner__btn--ghost:hover {
  background: rgba(255, 255, 255, .07);
}
.fly-cookie-banner__btn--link {
  background: transparent;
  color: #9aa3b2;
  padding: 10px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}
.fly-cookie-banner__btn--link:hover {
  color: #e9ecf1;
}

/* ========================= Modale personnaliser ========================= */
.fly-cookie-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(3, 4, 7, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.fly-cookie-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 15, 21, .98), rgba(8, 9, 13, .98));
  border: 1px solid rgba(168, 94, 192, .25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 80px -20px rgba(123, 45, 142, .45);
}
.fly-cookie-modal__head {
  margin-bottom: 18px;
}
.fly-cookie-modal__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.fly-cookie-modal__sub {
  font-size: 13px;
  color: #9aa3b2;
  line-height: 1.55;
}
.fly-cookie-cat {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.fly-cookie-cat__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.fly-cookie-cat__desc {
  font-size: 12.5px;
  color: #9aa3b2;
  line-height: 1.5;
}
.fly-cookie-toggle {
  --w: 44px;
  --h: 24px;
  position: relative;
  display: inline-block;
  width: var(--w);
  height: var(--h);
  flex-shrink: 0;
}
.fly-cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.fly-cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .10);
  border-radius: 999px;
  transition: background .18s ease;
}
.fly-cookie-toggle__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9ecf1;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.fly-cookie-toggle input:checked + .fly-cookie-toggle__slider {
  background: linear-gradient(135deg, #7B2D8E, #E8651A);
}
.fly-cookie-toggle input:checked + .fly-cookie-toggle__slider::before {
  transform: translateX(20px);
}
.fly-cookie-toggle input:disabled + .fly-cookie-toggle__slider {
  opacity: .85;
  cursor: not-allowed;
}
.fly-cookie-toggle input:focus-visible + .fly-cookie-toggle__slider {
  box-shadow: 0 0 0 2px rgba(168, 94, 192, .6);
}
.fly-cookie-modal__footer {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.fly-cookie-modal__btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  transition: filter .18s ease, background .18s ease;
}
.fly-cookie-modal__btn--primary {
  background: linear-gradient(135deg, #7B2D8E, #E8651A);
  color: #fff;
}
.fly-cookie-modal__btn--primary:hover {
  filter: brightness(1.08);
}
.fly-cookie-modal__btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: #e9ecf1;
  border: 1px solid rgba(255, 255, 255, .10);
}
.fly-cookie-modal__btn--ghost:hover {
  background: rgba(255, 255, 255, .07);
}

/* ========================= Footer global liens légaux =========================
   Posée sur les pages publiques (rejoindre, contact, etc.) qui n'avaient pas
   de bloc footer-legal natif. Réutilisée par les pages légales via leur
   propre legal-footer__row. */
.fly-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  padding: 14px 16px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.fly-legal-row a,
.fly-legal-row button {
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 4px 0;
  letter-spacing: .02em;
}
.fly-legal-row a:hover,
.fly-legal-row button:hover {
  color: #e9ecf1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fly-legal-row__sep {
  opacity: .35;
  user-select: none;
}

/* ========================= Mobile ========================= */
@media (max-width: 640px) {
  .fly-cookie-banner {
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px 20px;
    border-radius: 14px;
  }
  .fly-cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fly-cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
  .fly-cookie-modal {
    padding: 22px 20px;
    border-radius: 14px;
  }
  .fly-cookie-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
