.modal{
    z-index: 12000;
}
body.modal-open{
    overflow: hidden;
}
#zone-opacity-main,
#zone-opacity-all{
    background-color: #000;
    opacity: 0;
    z-index: -1;
}
#zone-opacity-main.showOpacity{
    transition: opacity 0.5s ease 0s;
    opacity: 0.5;
    z-index: 997;
}
#zone-opacity-all.showOpacity{
    transition: opacity 0.5s ease 0s;
    opacity: 0.5;
    z-index: 1000;
}
.button.disabled,
.button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
table.tableNoBorder,
table.tableNoBorder th,
table.tableNoBorder tr,
table.tableNoBorder td{
    border: none;
}
/* text et fonds pour les messages */
.text-success{
    color: #36D399;
}
.text-warning{
    color: #FFC400;
}
.text-error{
    color: #CC0000;
}
.background-success{
    color: #FFF;
    background-color: #36D399;
}
.background-warning{
    color: #FFF;
    background-color: #FFC400;
}
.background-error{
    color: #FFF;
    background-color: #CC0000;
}

/* Confidentialité du site */
.hide-header,
.hide-footer{
    display: none;
}

/* Alpine.js */
template[x-if],
template[x-for] {
    display: none !important;
}

/* Debug notifications */
[data-drupal-messages]:not([x-ref]) { position: fixed; bottom: 2rem; left: 2rem; z-index: 40; }
[data-drupal-messages]:not([x-ref]) .messages__wrapper [data-drupal-message-id] { display: flex; align-items: center; border-radius: 0.375rem; padding-left: 2.5rem; padding-right: 2.5rem; padding-top: 2rem; padding-bottom: 2rem; }
[data-drupal-messages]:not([x-ref]) .messages__wrapper [data-drupal-message-type="status"] { --tw-bg-opacity: 1; background-color: rgba(54, 211, 153, var(--tw-bg-opacity)); --tw-text-opacity: 1; color: rgba(255, 255, 255, var(--tw-text-opacity)); }
[data-drupal-messages]:not([x-ref]) .messages__wrapper [data-drupal-message-type="error"] { --tw-bg-opacity: 1; background-color: rgba(204, 0, 0, var(--tw-bg-opacity)); --tw-text-opacity: 1; color: rgba(255, 255, 255, var(--tw-text-opacity)); }
[data-drupal-messages]:not([x-ref]) .messages__wrapper [data-drupal-message-type="warning"] { --tw-bg-opacity: 1; background-color: rgba(255, 136, 0, var(--tw-bg-opacity)); --tw-text-opacity: 1; color: rgba(255, 255, 255, var(--tw-text-opacity)); }
[data-drupal-messages]:not([x-ref]) .messages__wrapper { display: flex; flex-direction: column; gap: 1rem; }
.bg-success { --tw-bg-opacity:1; background-color:rgb(54 211 153/var(--tw-bg-opacity));}
.bg-error { --tw-bg-opacity:1; background-color:rgb(204 0 0/var(--tw-bg-opacity));}
.bg-warning { --tw-bg-opacity:1; background-color:rgb(255 136 0/var(--tw-bg-opacity));}
#drupal-live-announce{display: none;}

/* Pas de contour autour des iframes (youtube, google map..) */
iframe:focus-visible{
    outline: none;
}

/* Si connecté avec un compte user qui est aussi admin Drupal, mega menu cassé au survole */
.contextual-region{
    position: initial;
}