/* =========================================================
   FLODE — CONSENTEMENT COOKIES
========================================================= */

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 200000;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent--visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent__card {
  width: min(100%, 1040px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  color: #fff;
  background: rgba(16, 16, 16, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-consent__intro {
  min-width: 0;
}

.cookie-consent__eyebrow {
  margin: 0 0 0.75rem;
  color: #01f7b6;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cookie-consent__title {
  margin: 0;
  color: #fff;
  font-family: 'Coolvetica', Arial, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.cookie-consent__description {
  max-width: 690px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, sans-serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.cookie-consent__actions {
  width: min(100%, 270px);
  display: grid;
  gap: 0.65rem;
}

.cookie-consent__button,
.cookie-consent__save {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid #fff;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__button--accept,
.cookie-consent__button--reject {
  color: #1a1a1a;
  background: #fff;
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible,
.cookie-consent__button--reject:hover,
.cookie-consent__button--reject:focus-visible {
  color: #1a1a1a;
  background: #01f7b6;
  border-color: #01f7b6;
}

.cookie-consent__button--customize {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-consent__button--customize:hover,
.cookie-consent__button--customize:focus-visible {
  color: #01f7b6;
  border-color: #01f7b6;
}

.cookie-consent__preferences {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-consent__preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__preference h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cookie-consent__preference p,
.cookie-consent__necessary {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cookie-consent__necessary {
  margin-top: 1rem;
}

.cookie-consent__switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  cursor: pointer;
}

.cookie-consent__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__switch > span[aria-hidden="true"] {
  position: absolute;
  inset: 0;
  background: #484848;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__switch > span[aria-hidden="true"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + span[aria-hidden="true"] {
  background: #01f7b6;
  border-color: #01f7b6;
}

.cookie-consent__switch input:checked + span[aria-hidden="true"]::after {
  transform: translateX(22px);
}

.cookie-consent__switch input:focus-visible + span[aria-hidden="true"] {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-consent__save {
  width: auto;
  margin-top: 1.25rem;
  color: #1a1a1a;
  background: #01f7b6;
  border-color: #01f7b6;
}

.cookie-consent__save:hover,
.cookie-consent__save:focus-visible {
  color: #1a1a1a;
  background: #fff;
  border-color: #fff;
}

.footer-cookie-settings {
  appearance: none;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #01f7b6;
  opacity: 1;
}

.cookie-consent .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 0;
  }

  .cookie-consent__card {
    width: 100%;
    max-height: min(88svh, 760px);
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .cookie-consent__actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-consent__button--customize {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 5vh;
    height: auto;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .footer-cookie-settings {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-consent__title {
    font-size: 2.25rem;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent__button--customize {
    grid-column: auto;
  }

  .cookie-consent__preference {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__button,
  .cookie-consent__save,
  .cookie-consent__switch > span[aria-hidden="true"],
  .cookie-consent__switch > span[aria-hidden="true"]::after {
    transition: none;
  }
}

/* =========================================================
   FOOTER — LIENS LÉGAUX
========================================================= */

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.15vw, 1.35rem);
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #01f7b6;
  opacity: 1;
}

.footer-legal-links .footer-cookie-settings {
  width: auto;
  order: initial;
  text-align: inherit;
}

@media (max-width: 768px) {
  .footer-legal-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    white-space: normal;
  }

  .footer-legal-links .footer-cookie-settings {
    width: auto;
    order: initial;
    text-align: center;
  }
}

