/* Fenêtre non modale, séparée du contenu et des contrôles de cookies. */
.cdg-visitor-home-alerts:empty { display: none; }
.cdg-site-ready:has(.cdg-alert-widget:not([hidden])) .cdg-hero-immersive .cdg-video-controls { left: auto !important; right: 20px !important; }
.cdg-alert-widget {
  --cdg-alert-edge: max(20px, env(safe-area-inset-left));
  --cdg-alert-bottom: max(20px, env(safe-area-inset-bottom));
  --cdg-alert-gap: 12px;
  position: fixed;
  left: var(--cdg-alert-edge);
  bottom: calc(var(--cdg-alert-bottom) + var(--cdg-alert-keyboard-inset, 0px));
  z-index: 9997;
  width: max-content;
  min-height: 46px;
  max-width: calc(100vw - 40px);
  color: var(--cdg-ink, #183229);
  font-family: var(--cdg-ui-font, system-ui, sans-serif);
}
.cdg-alert-widget[hidden], .cdg-alert-widget [hidden] { display: none !important; }
.cdg-alert-widget:has([data-alert-form-panel]:not([hidden])) { z-index: 10002; }
.cdg-alert-widget button { cursor: pointer; font-family: inherit; }
.cdg-alert-widget .cdg-alert-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: var(--cdg-ink, #183229);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24, 50, 41, .16);
}
.cdg-alert-widget .cdg-alert-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cdg-ink, #183229);
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.cdg-alert-launcher svg { width: 19px; height: 19px; flex: none; }
.cdg-alert-widget .cdg-alert-dismiss {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #fff;
}
.cdg-alert-dismiss svg { width: 18px; height: 18px; }
.cdg-alert-widget .cdg-alert-dismiss:hover { background: rgba(255, 255, 255, .14); }
.cdg-alert-widget .cdg-alert-launcher:hover { background: var(--cdg-blue, #244fc2); color: var(--cdg-button-text, #fff); }
.cdg-alert-widget .cdg-alert-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--cdg-alert-gap));
  width: min(348px, calc(100vw - 40px));
  max-width: none;
  max-height: min(580px, calc(100vh - 190px));
  max-height: var(--cdg-alert-max-height, min(580px, calc(100dvh - 190px)));
  margin: 0;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(24, 50, 41, .18);
  border-top: 4px solid var(--cdg-blue, #244fc2);
  border-radius: 18px;
  background: var(--cdg-paper, #f7f3e8);
  box-shadow: 0 12px 40px rgba(24, 50, 41, .2);
  text-align: left;
  line-height: 1.5;
  box-sizing: border-box;
}
.cdg-alert-widget .cdg-alert-popup-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: sticky;
  top: -20px;
  z-index: 1;
  padding-top: 8px;
  margin-top: -8px;
  background: var(--cdg-paper, #f7f3e8);
}
.cdg-alert-popup-heading > div { min-width: 0; flex: 1; }
.cdg-alert-widget .cdg-alert-popup h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--cdg-ink, #183229);
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 750;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
  text-transform: none !important;
}
.cdg-alert-widget .cdg-alert-popup p { margin: 0 0 16px; padding: 0; font-size: 14px; line-height: 1.5; }
.cdg-alert-widget .cdg-alert-popup .cdg-alert-popup-edition { margin: 0 0 6px; font-size: 12px; font-weight: 650; }
.cdg-alert-widget .cdg-alert-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -4px -10px 0 0;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.cdg-alert-close svg { width: 20px; height: 20px; }
.cdg-alert-widget .cdg-alert-close:hover { background: rgba(24, 50, 41, .08); }
.cdg-alert-widget .cdg-alert-popup :is(.cdg-alert-start, button[type=submit]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cdg-blue, #244fc2);
  color: var(--cdg-button-text, #fff);
  font-size: 14px !important;
  font-weight: 650;
  line-height: 1.5 !important;
  text-transform: none;
  white-space: normal;
  letter-spacing: 0;
  box-sizing: border-box;
}
.cdg-alert-widget .cdg-alert-popup :is(.cdg-alert-start, button[type=submit]):hover { filter: brightness(.94); }
.cdg-alert-widget .cdg-alert-popup .cdg-alert-popup-hint { margin: 14px 0 0; font-size: 12px; line-height: 1.5; }
.cdg-alert-widget .cdg-alert-form { gap: 12px; max-width: 100%; font-size: 14px; }
.cdg-alert-widget .cdg-alert-form > label { font-size: 14px; }
.cdg-alert-widget .cdg-alert-form input[type=email] {
  min-height: 46px;
  padding: 9px 12px;
  background: #fff;
  color: var(--cdg-ink, #183229);
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.cdg-alert-widget .cdg-alert-form fieldset { min-width: 0; display: grid; gap: 6px; margin: 0; }
.cdg-alert-widget .cdg-alert-form legend { margin: 0; padding: 0 0 6px; font-size: 13px; }
.cdg-alert-widget .cdg-alert-form fieldset label,
.cdg-alert-widget .cdg-alert-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.cdg-alert-widget .cdg-alert-form input[type=checkbox] { flex: 0 0 18px; margin: 2px 0 0; }
.cdg-alert-widget .cdg-alert-consent { font-size: 12px !important; font-weight: 400; }
.cdg-alert-widget .cdg-alert-form .cdg-form-small { margin: 0; font-size: 12px !important; }
.cdg-alert-widget .cdg-alert-popup a { color: var(--cdg-blue, #244fc2); text-decoration: underline; text-underline-offset: 3px; }
.cdg-alert-widget :is(button, input, a):focus-visible { outline: 3px solid var(--cdg-blue, #244fc2); outline-offset: 3px; }
.cdg-alert-popup h2:focus { outline: none; }
@media (max-width: 550px) {
  .cdg-alert-widget {
    --cdg-alert-edge: max(12px, env(safe-area-inset-left));
    --cdg-alert-bottom: max(12px, env(safe-area-inset-bottom));
    --cdg-alert-gap: 40px;
    max-width: calc(100vw - 24px);
  }
  .cdg-alert-widget .cdg-alert-popup { width: min(348px, calc(100vw - 24px)); padding: 16px; }
  .cdg-alert-widget .cdg-alert-popup-heading { top: -16px; }
  .cdg-alert-widget .cdg-alert-popup h2 { font-size: 20px !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .cdg-alert-widget .cdg-alert-popup:not([hidden]) { animation: cdg-alert-appear .2s ease-out; }
  @keyframes cdg-alert-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media print { .cdg-alert-widget { display: none !important; } }
