/* MetFi Cookies - bandeau aux couleurs du thème metfi (variables --mf-*) */
.mfc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: var(--mf-typo-famille, inherit);
}
.mfc__boite {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--mf-couleurs-fond, #fff);
  color: var(--mf-couleurs-texte, #444);
  border: 1px solid var(--mf-couleurs-bordure, #e6e6e4);
  border-radius: var(--mf-formes-rayon, 4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.5;
}
.mfc__titre {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: var(--mf-typo-graisse-titres, 700);
  color: var(--mf-couleurs-encre, #141414);
}
.mfc__texte { margin: 0 0 16px; }
.mfc__texte a { color: var(--mf-couleurs-encre, #141414); text-decoration: underline; }
.mfc__choix { margin: 0 0 16px; border-top: 1px solid var(--mf-couleurs-bordure, #e6e6e4); }
.mfc__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mf-couleurs-bordure, #e6e6e4);
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}
.mfc__ligne > span { text-align: left; flex: 1 1 auto; }
.mfc__ligne strong { color: var(--mf-couleurs-encre, #141414); }
.mfc__ligne small { color: var(--mf-couleurs-texte-doux, #6b6b6b); font-size: 13px; }
.mfc__ligne input { width: 20px; height: 20px; flex: none; accent-color: var(--mf-couleurs-encre, #141414); }
.mfc__boutons { display: flex; gap: 10px; flex-wrap: wrap; }
/* Trois boutons strictement identiques : refuser est aussi simple qu'accepter (CNIL). */
.mfc__btn {
  flex: 1 1 0;
  min-width: 150px;
  min-height: var(--mf-formes-hauteur-bouton, 48px);
  padding: 0 16px;
  border: 1px solid var(--mf-couleurs-encre, #141414);
  border-radius: var(--mf-formes-rayon, 4px);
  background: var(--mf-couleurs-encre, #141414);
  color: var(--mf-couleurs-fond, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mfc__btn:hover { background: var(--mf-nuance-encre-survol, #333); }
.mfc__btn:focus-visible { outline: 2px solid var(--mf-couleurs-encre, #141414); outline-offset: 2px; }
.mfc__lien-pied {
  display: block;
  margin: 6px 0 0;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
}
@media (max-width: 600px) {
  .mfc { left: 8px; right: 8px; bottom: 8px; }
  .mfc__boite { padding: 14px 16px; font-size: 13px; line-height: 1.45; }
  .mfc__titre { font-size: 15px; margin-bottom: 4px; }
  .mfc__texte { margin-bottom: 12px; }
  /* Refuser et Accepter côte à côte, à égalité ; Personnaliser dessous. */
  .mfc__boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mfc__btn { min-width: 0; min-height: 46px; padding: 0 8px; }
  .mfc__btn[data-mfc-action="personnaliser"], .mfc__btn[data-mfc-action="enregistrer"] { grid-column: 1 / -1; order: 3; }
}
