/*! Branche&Code : bandeau et panneau des cookies (v2), commandé par consentement-v1.js.
 * Charte : aplats, aucun dégradé ni halo, cibles tactiles de 44 px minimum, texte de 16 px sur les boutons.
 * « Accepter » et « Refuser » ont exactement le même aspect : aucun des deux n’est mis en avant.
 * v2 (thème clair / sombre) : seules différences avec la v1, le contour du choix actif, la couleur d’un lien au survol et celle
 * du bouton au survol suivent le thème (le blanc fixe de la v1 serait invisible sur fond clair, et l’azur y est identique au
 * bleu du bouton). La v1 reste en place : /assets/ est servi avec un cache d’un an. */

.bc-cc {
  position: fixed;
  z-index: 60;
  inset: auto .75rem max(.75rem, env(safe-area-inset-bottom)) .75rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid var(--line, #ffffff1f);
  border-radius: 1rem;
  background: var(--surface-2, #17171f);
  color: var(--text, #fff);
  font: .92rem/1.55 var(--sans, 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  text-align: left;
}

.bc-cc:focus {
  outline: none;
}

.bc-cc-title {
  max-width: none; /* le style global des h2 du site (18ch, équilibrage) ne s’applique pas ici */
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: wrap;
}

.bc-cc-text,
.bc-cc-state {
  margin: 0;
  color: var(--muted, #a3a3a3);
}

.bc-cc-state {
  margin-top: .6rem;
  color: var(--text, #fff);
}

.bc-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.bc-cc-btn {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  padding: .5rem 1.1rem;
  border: 1px solid #0000;
  border-radius: 999px;
  background: var(--blue, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.bc-cc-btn:hover {
  background: var(--cc-hover, var(--azur, #3b82f6));
}

.bc-cc-btn[aria-pressed='true'] {
  border-color: var(--text, #fff);
}

.bc-cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: .5rem 0 0;
}

.bc-cc-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--azur, #3b82f6);
  font: inherit;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.bc-cc-link:hover {
  color: var(--text, #fff);
}

.bc-cc a:focus-visible,
.bc-cc button:focus-visible {
  outline: 2px solid var(--azur, #3b82f6);
  outline-offset: 2px;
}

@media (min-width: 48em) {
  .bc-cc {
    inset: auto 1.25rem 1.25rem auto;
    width: 30rem;
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bc-cc {
    animation: bc-cc-in .3s var(--ease, ease-out) both;
  }

  @keyframes bc-cc-in {
    from {
      opacity: 0;
      transform: translateY(.6rem);
    }
  }
}

@media print {
  .bc-cc {
    display: none;
  }
}
