/* plg_system_consentembed_j6. Couleurs et z-index : variables posees par le plugin
   (--ce-acc, --ce-acc-dk, --ce-z), avec des valeurs de repli ici. */

/* ---- Encart d'une video ou d'une carte en attente d'accord ---- */
.ce-embed {
  box-sizing: border-box; width: 100%; margin: 0 0 1rem;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; border: 1px solid #e1dfdd; border-radius: 10px;
  background: #f3f2f1; color: #242424; text-align: center;
}
.ce-embed__inner { max-width: 460px; }
.ce-embed__titre { margin: 0 0 6px; font-weight: 600; font-size: 16px; }
.ce-embed__texte { margin: 0 0 14px; font-size: 14px; color: #605e5c; line-height: 1.5; }
.ce-embed__toujours { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; color: #605e5c; cursor: pointer; }

/* ---- Boutons : Refuser et Accepter ont EXACTEMENT le meme poids visuel ---- */
.ce-btn, .ce-embed__btn {
  display: inline-block; margin: 0; padding: 10px 20px; border: 2px solid var(--ce-acc, #0B7DAA); border-radius: 6px;
  background: var(--ce-acc, #0B7DAA); color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.ce-btn:hover, .ce-embed__btn:hover { background: var(--ce-acc-dk, #085B7B); border-color: var(--ce-acc-dk, #085B7B); }
.ce-btn:focus-visible, .ce-embed__btn:focus-visible, .ce-lien:focus-visible { outline: 2px solid var(--ce-acc-dk, #085B7B); outline-offset: 2px; }
.ce-btn--contour { background: #fff; color: var(--ce-acc, #0B7DAA); }
.ce-btn--contour:hover { color: #fff; }
.ce-lien { margin: 0; padding: 6px 4px; border: 0; background: none; color: var(--ce-acc, #0B7DAA); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ---- Bandeau (seulement pour un service charge sur toutes les pages) ---- */
.ce-bandeau {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--ce-z, 99990);
  max-width: 760px; margin: 0 auto; padding: 16px 18px;
  background: #fff; color: #242424; border: 1px solid #e1dfdd; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18); transition: bottom .3s ease;
}
.ce-bandeau__texte { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.ce-bandeau__texte a { color: var(--ce-acc, #0B7DAA); }
.ce-bandeau__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 480px) {
  .ce-bandeau__actions .ce-btn { flex: 1 1 40%; }
  /* Les coins bas de l'ecran portent souvent des boutons flottants (accessibilite, retour en
     haut) : un lien place dans un coin s'y retrouvait masque. Centre, il reste joignable. */
  .ce-bandeau__actions .ce-lien { flex: 1 1 100%; text-align: center; }
  .ce-bandeau { padding-bottom: 10px; }
}

/* ---- Reglages (page des cookies et fenetre) ---- */
.ce-prefs__intro { margin: 0 0 12px; font-size: 14px; color: #605e5c; }
.ce-prefs__liste { list-style: none; margin: 0; padding: 0; }
.ce-prefs__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #e1dfdd; }
.ce-prefs__texte { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.ce-prefs__detail { display: block; margin-top: 3px; color: #605e5c; font-size: 13px; }
.ce-prefs__etat { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #f3f2f1; color: #605e5c; }
.ce-prefs__etat--oui { background: #e6f4ea; color: #1e6b3a; }
.ce-prefs__item .ce-btn { flex: 0 0 auto; padding: 7px 14px; font-size: 13px; }
@media (max-width: 560px) {
  .ce-prefs__item { flex-direction: column; align-items: flex-start; }
}

.ce-fenetre { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.ce-fenetre::backdrop { background: rgba(0, 0, 0, .45); }
.ce-fenetre__tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e1dfdd; }
.ce-fenetre__fermer { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #605e5c; }
.ce-fenetre [data-ce-prefs] { padding: 14px 18px 18px; overflow-y: auto; }

/* ---- Mode nuit (widget d'accessibilite) ---- */
html[data-lma11y-theme="night"] .ce-embed { background: #1a2130; border-color: #2b3446; color: #e6e9ef; }
html[data-lma11y-theme="night"] .ce-embed__texte,
html[data-lma11y-theme="night"] .ce-embed__toujours,
html[data-lma11y-theme="night"] .ce-prefs__intro,
html[data-lma11y-theme="night"] .ce-prefs__detail { color: #b9c0cc; }
html[data-lma11y-theme="night"] .ce-bandeau,
html[data-lma11y-theme="night"] .ce-fenetre { background: #1a2130; color: #e6e9ef; border-color: #2b3446; }
html[data-lma11y-theme="night"] .ce-btn--contour { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .ce-bandeau { transition: none; }
}
@media print {
  .ce-bandeau { display: none; }
}
