/* ═══════════════════════════════════════════
   EAMAU — SweetAlert2 theme
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

.eamau-swal {
    --eamau-swal-navy: #0c1f3d;
    --eamau-swal-navy-mid: #152d54;
    --eamau-swal-gold: #d4a017;
    --eamau-swal-gold-light: #fef3c7;
    --eamau-swal-green: #059669;
    --eamau-swal-blue: #2563eb;
    --eamau-swal-red: #dc2626;
    --eamau-swal-amber: #d97706;
    font-family: 'Roboto', sans-serif;
}

/* Backdrop + conteneur — centrage viewport */
.eamau-swal.swal2-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eamau-swal.swal2-container.swal2-center {
    align-items: center !important;
}

/* Popup modal */
.eamau-swal .eamau-swal__popup {
    position: relative;
    overflow: hidden;
    margin: auto !important;
    border-radius: 1.25rem !important;
    border: 1px solid rgba(212, 160, 23, 0.35);
    box-shadow:
        0 24px 64px rgba(12, 31, 61, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
    background: #ffffff !important;
    padding: 0 0 1.75rem !important;
}

.eamau-swal .eamau-swal__popup::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--eamau-swal-navy) 0%, var(--eamau-swal-gold) 100%);
}

.eamau-swal .eamau-swal__popup::after {
    content: 'EAMAU';
    position: absolute;
    top: 1.125rem;
    right: 1.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(12, 31, 61, 0.2);
    pointer-events: none;
}

/* Title & text — centrés */
.eamau-swal .eamau-swal__title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--eamau-swal-navy) !important;
    padding: 1.5rem 1.75rem 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

.eamau-swal .eamau-swal__text {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    padding: 0.75rem 1.75rem 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Icon */
.eamau-swal .eamau-swal__icon {
    margin: 1.25rem auto 0.5rem !important;
    border-width: 3px !important;
    transform: scale(0.95);
}

.eamau-swal .swal2-icon.swal2-success {
    border-color: rgba(5, 150, 105, 0.25) !important;
    color: var(--eamau-swal-green) !important;
}
.eamau-swal .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--eamau-swal-green) !important;
}
.eamau-swal .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(5, 150, 105, 0.3) !important;
}

.eamau-swal .swal2-icon.swal2-error {
    border-color: rgba(220, 38, 38, 0.2) !important;
    color: var(--eamau-swal-red) !important;
}
.eamau-swal .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: var(--eamau-swal-red) !important;
}

.eamau-swal .swal2-icon.swal2-warning {
    border-color: rgba(217, 119, 6, 0.25) !important;
    color: var(--eamau-swal-amber) !important;
}

.eamau-swal .swal2-icon.swal2-info {
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: var(--eamau-swal-blue) !important;
}

.eamau-swal .swal2-icon.swal2-question {
    border-color: rgba(212, 160, 23, 0.35) !important;
    color: var(--eamau-swal-gold) !important;
}

/* Actions & buttons — centrés */
.eamau-swal .eamau-swal__actions {
    gap: 0.625rem !important;
    padding: 1.25rem 1.75rem 0 !important;
    margin: 0 !important;
    width: 100% !important;
    justify-content: center !important;
}

.eamau-swal .eamau-swal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.eamau-swal .eamau-swal__btn:hover {
    transform: translateY(-1px);
}

.eamau-swal .eamau-swal__btn--confirm {
    background: linear-gradient(135deg, var(--eamau-swal-gold) 0%, #c49214 100%);
    color: var(--eamau-swal-navy);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}
.eamau-swal .eamau-swal__btn--confirm:hover {
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.45);
}

.eamau-swal .eamau-swal__btn--cancel {
    background: #f1f5f9;
    color: var(--eamau-swal-navy);
}
.eamau-swal .eamau-swal__btn--cancel:hover {
    background: #e2e8f0;
}

.eamau-swal .eamau-swal__close {
    color: rgba(12, 31, 61, 0.45) !important;
    transition: color 0.2s ease;
}
.eamau-swal .eamau-swal__close:hover {
    color: var(--eamau-swal-navy) !important;
}

/* Animations — modal */
@keyframes eamau-swal-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes eamau-swal-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
}
@keyframes eamau-swal-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes eamau-swal-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.eamau-swal-animate-in {
    animation: eamau-swal-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.eamau-swal-animate-out {
    animation: eamau-swal-out 0.22s ease-in forwards !important;
}
.eamau-swal-backdrop-in {
    animation: eamau-swal-backdrop-in 0.3s ease forwards !important;
}
.eamau-swal-backdrop-out {
    animation: eamau-swal-backdrop-out 0.2s ease forwards !important;
}

/* Toast variant */
.eamau-swal--toast .eamau-swal__popup--toast {
    padding: 0.875rem 1.125rem !important;
    border-radius: 0.875rem !important;
    border-left: 4px solid var(--eamau-swal-gold) !important;
    box-shadow: 0 12px 40px rgba(12, 31, 61, 0.18) !important;
}
.eamau-swal--toast .eamau-swal__popup--toast::before,
.eamau-swal--toast .eamau-swal__popup--toast::after {
    display: none;
}
.eamau-swal--toast .eamau-swal__title--toast {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.eamau-swal--toast .eamau-swal__text--toast {
    font-size: 0.8125rem !important;
    padding: 0.25rem 0 0 !important;
}
.eamau-swal--toast .eamau-swal__icon--toast {
    margin: 0 0.625rem 0 0 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    border-width: 2px !important;
    transform: none;
}
.eamau-swal .eamau-swal__timer {
    background: var(--eamau-swal-gold) !important;
    opacity: 0.7;
}

@keyframes eamau-swal-toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes eamau-swal-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}
.eamau-swal-toast-in {
    animation: eamau-swal-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.eamau-swal-toast-out {
    animation: eamau-swal-toast-out 0.25s ease forwards !important;
}

@media (max-width: 575.98px) {
    .eamau-swal .eamau-swal__popup {
        width: calc(100% - 2rem) !important;
        margin: 0 1rem !important;
    }
    .eamau-swal .eamau-swal__title {
        font-size: 1.25rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .eamau-swal .eamau-swal__text {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Newsletter — centres d'intérêt */
.eamau-swal .eamau-swal__popup--interests {
    width: 32rem !important;
    max-width: calc(100vw - 2rem) !important;
}

.eamau-swal-interests__lead {
    margin: 0 0 0.5rem;
    text-align: center;
    color: #334155;
}

.eamau-swal-interests__hint {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.eamau-swal-interests {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-height: 16rem;
    overflow-y: auto;
    text-align: left;
}

.eamau-swal-interests__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(12, 31, 61, 0.12);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.eamau-swal-interests__item:hover {
    border-color: rgba(212, 160, 23, 0.45);
    background: #fffbeb;
}

.eamau-swal-interests__checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #d4a017;
}

.eamau-swal-interests__label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.4;
}

.eamau-swal-interests__label strong {
    color: #0c1f3d;
    font-size: 0.9375rem;
}

.eamau-swal-interests__label small {
    color: #64748b;
    font-size: 0.8125rem;
}
