/* Cookies CMP – minimal CSS, accessible focus */
.cookies-cmp-root { position: fixed; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.cookies-cmp-root[data-position="bottom-right"] { right: 16px; bottom: 16px; }
.cookies-cmp-root[data-position="bottom-left"] { left: 16px; bottom: 16px; }

.cookies-banner {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  border-radius: 10px;
  padding: 14px 14px 12px 14px;
}
.cookies-banner__title { font-weight: 700; margin: 0 0 6px 0; }
.cookies-banner__text { margin: 0 0 10px 0; font-size: 14px; line-height: 1.4; color: #222; }
.cookies-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookies-btn {
  appearance: none;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  background: #f7f7f7;
  color: #111;
}
.cookies-btn--primary { background: #1C376A; color: #fff; border-color: #1C376A; }
.cookies-btn--secondary { background: #fff; color: #111; }
.cookies-btn--link { background: transparent; border-color: transparent; text-decoration: underline; padding: 10px 8px; }

.cookies-btn:focus-visible, .cookies-manage:focus-visible, .cookies-icon-btn:focus-visible, .cookies-manage-inline:focus-visible {
  outline: 3px solid #32A8A2;
  outline-offset: 2px;
}

.cookies-manage {
  margin-top: 10px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.cookies-manage-inline{
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}

/* Modal */
.cookies-modal[hidden]{ display:none !important; }
.cookies-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; }
.cookies-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cookies-modal__panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.cookies-modal__header { display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.cookies-modal__header h2 { margin: 0; font-size: 18px; }
.cookies-icon-btn{ width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0,0,0,.18); background:#fff; cursor:pointer; font-size: 22px; line-height: 1; }

.cookies-categories { margin-top: 12px; display: grid; gap: 12px; }
.cookies-cat { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 12px; }
.cookies-cat__row { display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.cookies-cat__label { font-weight: 800; }
.cookies-cat__desc { margin: 6px 0 0 0; font-size: 13px; color:#333; line-height: 1.4; }

.cookies-switch { display:flex; align-items:center; gap: 8px; }
.cookies-switch input { width: 18px; height: 18px; }
.cookies-modal__footer { display:flex; gap: 10px; justify-content:flex-end; margin-top: 14px; flex-wrap: wrap; }
.cookies-modal__note { margin: 12px 0 0 0; font-size: 12px; color:#444; }

/* RGPD : lien politique de confidentialité */
.cookies-banner__privacy-link { font-size: 13px; color: #1C376A; text-decoration: underline; display: inline-block; margin-top: 6px; }

/* =========================================================
   Iframe placeholder (GLOBAL) — MODE INVISIBLE
   -> supprime bordure/fond/padding + masque le texte
   -> évite toute "zone" qui dégrade le visuel (badges/étoiles)
   ========================================================= */
.cookies-iframe{
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}

/* supprime le message "contenu tiers bloqué" */
.cookies-iframe__placeholder{
  display: none !important;
}

/* sécurité : si un style inline impose une hauteur, on neutralise */
.cookies-iframe[style]{
  height: auto !important;
  min-height: 0 !important;
}

/* Tables documents */
.cookies-doc-table-wrap{ overflow:auto; }
.cookies-doc-table{ width:100%; border-collapse: collapse; }
.cookies-doc-table th, .cookies-doc-table td{ border:1px solid rgba(0,0,0,.12); padding:8px; font-size: 14px; }
