.cultu-modal[hidden],
.cultu-preference-regions[hidden] {
    display: none !important;
}

body.cultu-modal-open {
    overflow: hidden;
}

.cultu-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cultu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cultu-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-sizing: border-box;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(56, 70, 74, 0.10);
    border-radius: 20px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
}

.cultu-modal-header {
    padding: 30px 54px 26px;
    text-align: center;
    background: linear-gradient(180deg, #f7f3ee 0%, #fbfaf8 100%);
    border-bottom: 1px solid #e9e3dc;
}

.cultu-modal-logo {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(56, 70, 74, 0.10);
}

.cultu-modal-eyebrow {
    margin-bottom: 7px;
    color: #8a7468;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.cultu-modal-title {
    margin: 0;
    color: #38464a;
    font-size: clamp(25px, 5vw, 32px);
    line-height: 1.15;
    font-weight: 750;
}

.cultu-modal-lead {
    max-width: 420px;
    margin: 11px auto 0;
    color: #625f5a;
    font-size: 15px;
    line-height: 1.55;
}

.cultu-modal-body {
    padding: 26px 30px 30px;
}

.cultu-modal-intro {
    margin: 0 0 20px;
    color: #5d5d5d;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.cultu-modal-context {
    display: grid;
    gap: 4px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #f7f8f7;
    border: 1px solid #e3e7e5;
    border-radius: 12px;
    color: #38464a;
}

.cultu-modal-context-label {
    color: #7a7a75;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cultu-modal-context strong {
    font-size: 15px;
    line-height: 1.4;
}

.cultu-modal-context small {
    color: #6d6d68;
    line-height: 1.45;
}

.cultu-modal-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.78);
    color: #38464a;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.cultu-modal-close:hover {
    background: #ffffff;
    transform: scale(1.04);
}

.cultu-modal-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.cultu-subscription-form {
    display: grid;
    gap: 18px;
}

.cultu-field {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.cultu-field input[type="email"],
.cultu-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #cfd4d2;
    border-radius: 9px;
    background: #ffffff;
    color: #2f3638;
    font: inherit;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cultu-field input[type="email"]:focus,
.cultu-field select:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.cultu-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.cultu-fieldset legend {
    margin-bottom: 10px;
    font-weight: 700;
}

.cultu-region-choices,
.cultu-followed-events {
    display: grid;
    gap: 9px;
}

.cultu-france-choice {
    padding-bottom: 8px;
    margin-bottom: 3px;
    border-bottom: 1px solid #e5e5e5;
}

.cultu-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    cursor: pointer;
}

.cultu-check input {
    margin-top: 4px;
}

.cultu-event-newsletter-optin {
    padding: 13px 14px;
    background: #f8f6f2;
    border: 1px solid #ece5dc;
    border-radius: 11px;
    color: #4f4a45;
    line-height: 1.45;
}

.cultu-submit {
    appearance: none;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cultu-submit:hover {
    border-color: #1e40af;
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
}

.cultu-submit:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.cultu-submit:active {
    transform: translateY(1px);
}

.cultu-submit:disabled,
.cultu-submit[aria-busy="true"] {
    opacity: .65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.cultu-submit-wide {
    justify-self: stretch;
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

.cultu-privacy-note {
    display: block;
    color: #77726d;
    font-size: 12px;
    line-height: 1.5;
}

.cultu-privacy-note-centered {
    max-width: 440px;
    margin: -2px auto 0;
    text-align: center;
}

.cultu-message-success {
    padding: 10px 12px;
    background: #edf8ef;
    border-radius: 8px;
}

.cultu-message-error {
    padding: 10px 12px;
    background: #fff0f0;
    border-radius: 8px;
}

.cultu-subscription-center {
    max-width: 760px;
}

.cultu-preference-section {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.cultu-preference-section h3:first-child {
    margin-top: 0;
}

.cultu-preference-regions {
    margin-top: 18px;
}

@media (max-width: 600px) {
    .cultu-modal {
        padding: 12px;
    }

    .cultu-modal-header {
        padding: 25px 42px 22px;
    }

    .cultu-modal-logo {
        width: 72px;
        height: 72px;
        border-radius: 15px;
    }

    .cultu-modal-body {
        padding: 22px 18px 24px;
    }
}

/* Dépendance visuelle : les zones appartiennent à l'abonnement aux actualités. */
.cultu-newsletter-master-row {
    padding: 14px 16px;
    background: #f7f7f7;
    border-radius: 10px;
}

.cultu-newsletter-master-row small {
    display: inline-block;
    margin-top: 3px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.cultu-preference-regions {
    margin: 14px 0 0 28px;
    padding: 14px 16px 16px;
    border: 0;
    border-left: 3px solid #c9c9c9;
    background: #fafafa;
    border-radius: 0 10px 10px 0;
    transition: opacity .15s ease;
}

.cultu-preference-regions legend {
    padding: 0 6px 0 0;
    font-weight: 700;
}

.cultu-preference-regions.is-disabled {
    opacity: .48;
}

.cultu-dependent-help {
    margin: 4px 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.cultu-ajax-message {
    margin: 0 0 14px;
}

.cultu-submit[aria-busy="true"] {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 600px) {
    .cultu-preference-regions {
        margin-left: 16px;
    }
}

.cultu-followed-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.cultu-followed-event-check {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.cultu-event-view-link {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cultu-event-view-link:hover,
.cultu-event-view-link:focus {
    text-decoration: underline;
}

.cultu-unsubscribe-section {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #d7d7d7;
}

.cultu-unsubscribe-section h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.cultu-unsubscribe-section p {
    max-width: 680px;
    margin: 0 0 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.55;
}

.cultu-unsubscribe-form {
    display: inline-block;
    margin: 0;
}

.cultu-unsubscribe-button {
    appearance: none;
    border: 1px solid #b42318;
    border-radius: 7px;
    background: transparent;
    color: #b42318;
    padding: 9px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cultu-unsubscribe-button:hover,
.cultu-unsubscribe-button:focus {
    background: #fff4f2;
}

.cultu-unsubscribe-button[aria-busy="true"] {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 600px) {
    .cultu-followed-event-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .cultu-event-view-link {
        margin-left: 28px;
    }
}

/* Dans les modals, l'action principale occupe toute la largeur pour une lecture plus nette. */
.cultu-modal .cultu-submit {
    justify-self: stretch;
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

.cultu-modal .cultu-privacy-note {
    text-align: center;
}
