/* Bandeau de consentement aux cookies — partagé par les marques Altheris.
   Thémé par les variables CSS de chaque marque, avec repli sombre neutre
   pour tout site qui l'inclurait sans les définir. */

.cc-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px clamp(20px, 4vw, 56px);
  background: var(--bg-soft, #0b0f16);
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cc-banner[data-open="true"] { transform: translateY(0); }

.cc-inner {
  max-width: var(--max, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.cc-text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2, #d7dbe2);
}
.cc-text a {
  color: var(--accent-2, #8fb4d8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Les trois options doivent être de taille, police et format identiques
   (exigence du document juridique) : une grille à colonnes égales le garantit
   quelle que soit la longueur du libellé. */
.cc-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cc-actions button {
  min-width: 190px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink, #f5f6f8);
  background: transparent;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.18));
  border-radius: var(--r-sm, 6px);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cc-actions button:hover {
  border-color: var(--accent, #4f86be);
  background: var(--accent-soft, rgba(79, 134, 190, 0.12));
}
.cc-actions button:focus-visible {
  outline: 2px solid var(--accent, #4f86be);
  outline-offset: 2px;
}

/* Lien de réouverture, posé dans la colonne Legal des footers. */
.cc-reopen { cursor: pointer; }

@media (max-width: 1024px) {
  .cc-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .cc-actions { width: 100%; }
  .cc-actions button { min-width: 0; }
}
@media (max-width: 620px) {
  .cc-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
}
