/* Shared legal lightbox (CGU / Politique de confidentialité) */
.ss-modal[hidden] {
    display: none !important;
}

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

.ss-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.ss-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 28px 32px 36px;
    box-sizing: border-box;
}

.ss-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    appearance: none;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin: -8px -8px 0 12px;
}

.ss-modal__close:hover,
.ss-modal__close:focus-visible {
    color: #4c8dd8;
}

.ss-modal__body {
    clear: both;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.ss-modal__body h1 {
    margin: 0 0 18px;
    color: #4c8dd8;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.ss-modal__body h2 {
    margin: 22px 0 10px;
    color: #4c8dd8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.ss-modal__body p {
    margin: 0 0 12px;
}

.ss-modal__body ul {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.ss-modal__body li {
    margin-bottom: 4px;
}

.ss-modal__body strong {
    font-weight: 700;
}

.ss-modal__body .ss-cookie-prefs-btn,
button.ss-cookie-prefs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 18px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #4c8dd8;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(76, 141, 216, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ss-modal__body .ss-cookie-prefs-btn:hover,
.ss-modal__body .ss-cookie-prefs-btn:focus-visible,
button.ss-cookie-prefs-btn:hover,
button.ss-cookie-prefs-btn:focus-visible {
    background: #3a7bc4;
    box-shadow: 0 3px 10px rgba(76, 141, 216, 0.45);
    outline: none;
}
.ss-modal__body .ss-cookie-prefs-btn:active,
button.ss-cookie-prefs-btn:active {
    background: #2f6aab;
}
