/* Proposition d'activer les notifications push (assets/js/notifications/push.js).
   Fixée en bas à droite, au-dessus de la modale du center et du client. */
.city-push-offer {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 12px 14px;
    background: var(--box-color, #FFFFFF);
    color: var(--text-color, #0E1320);
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    animation: city-push-offer-in 0.25s ease-out;
}

@keyframes city-push-offer-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.city-push-offer__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    image-rendering: pixelated;
}

.city-push-offer__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.city-push-offer__text strong {
    font-size: 14px;
}

.city-push-offer__text span {
    color: var(--text-muted, #5C6680);
}

.city-push-offer__status:empty {
    display: none;
}

.city-push-offer__actions {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.city-push-offer__actions button {
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.city-push-offer__yes {
    background: var(--button-green, #1ce589);
    color: var(--button-green-text, #06301C);
}

.city-push-offer__yes:hover {
    background: var(--button-green-hover, #19db82);
}

.city-push-offer__no {
    background: transparent;
    color: var(--text-muted, #5C6680);
}

.city-push-offer__actions button:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 480px) {
    .city-push-offer {
        flex-wrap: wrap;
    }

    .city-push-offer__actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Interrupteur des paramètres : message d'état sous la case */
.push-toggle-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted, #5C6680);
}

.push-toggle-status:empty {
    display: none;
}

/* ---------------------------------------------------------------------------
   Page /push : envoi manuel par les administrateurs (website/push/push.php)
   --------------------------------------------------------------------------- */
.push-admin {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 40px;
    color: var(--text-color, #0E1320);
}

.push-admin__kicker {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #5C6680);
}

.push-admin__head h1 {
    margin: 2px 0 6px;
    font-size: 26px;
}

.push-admin__lead {
    margin: 0;
    max-width: 720px;
    color: var(--text-secondaire, #3F4A5A);
}

.push-admin__alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #E5A93B;
    background: rgba(229, 169, 59, 0.12);
}

.push-admin__card {
    box-sizing: border-box;
    padding: 18px;
    background: var(--box-color, #FFFFFF);
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 12px;
    box-shadow: var(--box-shadow, none);
    min-width: 0;
}

.push-admin__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.push-admin__stat {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--box-color, #FFFFFF);
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 12px;
}

.push-admin__stat strong {
    font-size: 24px;
}

.push-admin__stat span,
.push-admin__muted,
.push-admin__hint,
.push-admin__empty {
    color: var(--text-muted, #5C6680);
}

.push-admin__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
    align-items: start;
}

.push-admin__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.push-admin__targets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.push-admin__targets legend,
.push-admin__field > span,
.push-admin__label {
    display: flex;
    justify-content: space-between;
    margin: 0 0 6px;
    padding: 0;
    font-weight: 600;
    font-size: 13px;
}

.push-admin__target {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 8px;
    background: var(--box-color-double, #EEF2F9);
    cursor: pointer;
}

.push-admin__target:has(input:checked) {
    border-color: var(--button-green, #1ce589);
    box-shadow: inset 0 0 0 1px var(--button-green, #1ce589);
}

.push-admin__target input {
    margin-top: 3px;
    accent-color: var(--button-green, #1ce589);
}

.push-admin__target span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.push-admin__target small {
    font-size: 12px;
    color: var(--text-muted, #5C6680);
}

.push-admin__field {
    display: flex;
    flex-direction: column;
}

.push-admin__field[hidden] {
    display: none;
}

.push-admin__field small {
    font-weight: 400;
    color: var(--text-muted, #5C6680);
}

.push-admin__field input,
.push-admin__field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 8px;
    background: var(--box-color-double, #EEF2F9);
    color: var(--text-color, #0E1320);
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.push-admin__field input:focus,
.push-admin__field textarea:focus {
    outline: 2px solid var(--button-green, #1ce589);
    outline-offset: -1px;
}

.push-admin__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.push-admin__send {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--button-green, #1ce589);
    color: var(--button-green-text, #06301C);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.push-admin__send:hover {
    background: var(--button-green-hover, #19db82);
}

.push-admin__send.is-confirm {
    background: #E5A93B;
    color: #2B1A00;
}

.push-admin__send:disabled {
    opacity: 0.6;
    cursor: default;
}

.push-admin__status {
    margin: 0;
    font-size: 13px;
}

.push-admin__status[data-kind="error"] { color: #E5484D; }
.push-admin__status[data-kind="warn"] { color: #D08B12; }
.push-admin__status[data-kind="ok"] { color: #12A866; }

.push-admin__preview {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #2B2F36;
    color: #F2F4F7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.push-admin__preview-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.push-admin__preview-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.push-admin__preview-app {
    font-size: 11px;
    color: #A9B0BC;
}

.push-admin__hint {
    margin: 10px 0 0;
    font-size: 12px;
}

.push-admin__history h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.push-admin__table-wrap {
    overflow-x: auto;
}

.push-admin__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.push-admin__table th,
.push-admin__table td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color, #C4CEE2);
}

.push-admin__table th {
    font-size: 12px;
    color: var(--text-muted, #5C6680);
    font-weight: 600;
}

.push-admin__table td {
    overflow-wrap: anywhere;
}

.push-admin__table code {
    font-size: 11px;
    color: var(--text-muted, #5C6680);
}

.push-admin__nowrap {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .push-admin__grid,
    .push-admin__targets {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .push-admin__stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------------------------------------------------------------------------
   Grande proposition au centre de l'écran (home) : offerFeatured() de push.js
   --------------------------------------------------------------------------- */
.city-push-feature {
    position: fixed;
    inset: 0;
    z-index: 100002; /* au-dessus du bandeau cookies (100001), qu'elle n'attend pas */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(6, 10, 20, 0.6);
    animation: city-push-fade 0.2s ease-out;
}

@keyframes city-push-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.city-push-feature__card {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 28px 24px;
    text-align: center;
    background: var(--box-color, #FFFFFF);
    color: var(--text-color, #0E1320);
    border: 1px solid var(--border-color, #C4CEE2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: city-push-offer-in 0.25s ease-out;
}

.city-push-feature__icon {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.city-push-feature__title {
    margin: 10px 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.city-push-feature__text {
    margin: 0 0 16px;
    color: var(--text-secondaire, #3F4A5A);
    font-size: 14px;
    line-height: 1.45;
}

.city-push-feature__reward {
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 12px;
    background: var(--box-color-double, #EEF2F9);
    border: 1px dashed var(--button-green, #1ce589);
}

.city-push-feature__banner {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 8px;
    border-radius: 8px;
    image-rendering: pixelated;
}

.city-push-feature__reward figcaption {
    font-size: 13px;
    font-weight: 600;
}

.city-push-feature__status {
    margin: 0 0 12px;
    font-size: 13px;
    color: #E5484D;
}

.city-push-feature__status:empty {
    display: none;
}

.city-push-feature__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-push-feature__yes,
.city-push-feature__no {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* !important : _main.css force la couleur de tous les liens (a { color: inherit !important }) */
.city-push-feature__yes {
    background: var(--button-green, #1ce589);
    color: var(--button-green-text, #06301C) !important;
}

.city-push-feature__yes:hover {
    background: var(--button-green-hover, #19db82);
}

.city-push-feature__no {
    background: transparent;
    color: var(--text-muted, #5C6680);
    font-weight: 600;
}

.city-push-feature__yes:disabled,
.city-push-feature__no:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 480px) {
    .city-push-feature__card {
        padding: 24px 18px 18px;
    }

    .city-push-feature__title {
        font-size: 19px;
    }
}
