/* Bandeau cookies RGPD / CNIL (additif, n'intervient pas dans style.css) */

.fcts-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  box-sizing: border-box;
  background: #151c20;
  color: #f1f5f9;
  border-top: 1px solid rgba(242, 179, 61, 0.45);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.fcts-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.fcts-cookie-text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: #f1f5f9;
}

.fcts-cookie-text a {
  color: #f2b33d;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.fcts-cookie-text a:hover,
.fcts-cookie-text a:focus-visible {
  color: #ffc75e;
}

.fcts-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 280px;
}

.fcts-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.85em 1.2em;
  margin: 0;
  border: 1px solid #f2b33d;
  border-radius: 2px;
  background: #22303a;
  color: #f1f5f9;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.fcts-cookie-btn:hover,
.fcts-cookie-btn:focus-visible {
  background: #2c3d49;
  color: #ffffff;
}

.fcts-cookie-btn:focus-visible {
  outline: 2px solid #f2b33d;
  outline-offset: 3px;
}

/* Bouton "Gerer mes preferences cookies" sur la page Confidentialite */
.fcts-cookie-prefs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85em 1.4em;
  margin: 0.4em 0 0;
  border: 1px solid #f2b33d;
  border-radius: 2px;
  background: #151c20;
  color: #f1f5f9;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.fcts-cookie-prefs:hover,
.fcts-cookie-prefs:focus-visible {
  background: #22303a;
  color: #ffffff;
}

.fcts-cookie-prefs:focus-visible {
  outline: 2px solid #f2b33d;
  outline-offset: 3px;
}

/* Desktop : bandeau en bas d'ecran. Mobile : au-dessus de la barre d'appel fixe (58px, z-index 60). */
@media (max-width: 1079.98px) {
  .fcts-cookie-banner {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 14px;
  }

  .fcts-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
  }

  .fcts-cookie-text {
    flex: 0 1 auto;
  }

  .fcts-cookie-actions {
    min-width: 0;
    width: 100%;
  }

  html.fcts-cookies-open body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 11rem);
  }
}

@media (min-width: 1080px) {
  html.fcts-cookies-open body {
    padding-bottom: 8.5rem;
  }
}

@media (max-width: 430px) {
  .fcts-cookie-banner {
    padding: 14px 16px;
  }

  .fcts-cookie-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .fcts-cookie-text a {
    white-space: normal;
  }

  .fcts-cookie-btn {
    letter-spacing: 0.1em;
    padding: 0.85em 0.6em;
  }
}
