/**
 * Bandeau Cookies RGPD
 * Design épuré, boutons Accepter/Refuser identiques (exigence CNIL)
 */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  color: #f0f0f0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: cookieBannerIn 0.35s ease-out;
}

@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner--hiding {
  animation: cookieBannerOut 0.35s ease-in forwards;
}

@keyframes cookieBannerOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #ffffff;
}

.cookie-banner__text p {
  margin: 0;
  color: #c8c8d8;
  font-size: 13px;
}

.cookie-banner__text a {
  color: #7eb8f7;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/*  Boutons — même taille, même poids visuel (CNIL obligatoire)        */
/* ------------------------------------------------------------------ */

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  min-width: 110px;
}

/* Refuser : bordure, fond transparent — même importance que Accepter */
.cookie-btn--secondary {
  background: transparent;
  color: #f0f0f0;
  border-color: #f0f0f0;
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Accepter : fond plein */
.cookie-btn--primary {
  background: #4a90e2;
  color: #ffffff;
  border-color: #4a90e2;
}

.cookie-btn--primary:hover {
  background: #3a7bd5;
  border-color: #3a7bd5;
}

/* ------------------------------------------------------------------ */
/*  Responsive mobile                                                   */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 14px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 0;
  }
}
