/* ==========================================================================
   WPDefender.pro — Warm Light Semantic Utilities & Compatibility Layer
   Palette "Sérénité & Confiance"
   ========================================================================== */

/* ---------- Icon Size Utilities ---------- */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.icon-28 { width: 28px; height: 28px; }
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }
.icon-64 { width: 64px; height: 64px; }
.icon-hero { width: 4.5rem; height: 4.5rem; }
.nav-logo-icon .icon { width: 20px; height: 20px; }

/* ---------- Light Surface & Border Helpers ---------- */
.surf-0 { background-color: #FFFFFF; }
.surf-1 { background-color: #FFF8F6; }
.surf-2 { background-color: #FFF1ED; }
.surf-3 { background-color: #FFE9E3; }
.hover\:surf-0:hover { background-color: #FFF1ED; }

.bd-1 { border-color: #E1BFB5; }
.bd-2 { border-color: #D4ACA0; }
.hover\:bd-3:hover { border-color: #8D7168; }
.divide-bd-1 > :not([hidden]) ~ :not([hidden]) { border-color: #E1BFB5; }
.bd-brand { border-color: rgba(194, 65, 12, 0.35); }
.bt-2 { border-top: 1px solid #E1BFB5; }

/* ---------- Semantic Color Mappings (Light Mode Contrast Safe) ---------- */
.text-blue-300 { color: #0051AF !important; }
.text-blue-400 { color: #0051AF !important; }
.text-blue-500 { color: #0069DE !important; }
.hover\:text-blue-300:hover { color: #0069DE !important; }
.bg-blue-400 { background-color: #0069DE !important; }
.bg-blue-500\/5 { background-color: rgba(0, 81, 175, 0.05) !important; }
.bg-blue-500\/10 { background-color: rgba(0, 81, 175, 0.08) !important; }
.bg-blue-500\/20 { background-color: rgba(0, 81, 175, 0.14) !important; }
.border-blue-500\/10 { border-color: rgba(0, 81, 175, 0.14) !important; }
.border-blue-500\/20 { border-color: rgba(0, 81, 175, 0.24) !important; }
.border-blue-500\/30 { border-color: rgba(0, 81, 175, 0.34) !important; }
.hover\:border-blue-400\/40:hover { border-color: rgba(0, 81, 175, 0.45) !important; }
.accent-blue-500 { accent-color: #9B2F00; }

.text-indigo-300,
.text-indigo-400 { color: #0051AF !important; }
.bg-indigo-500\/10 { background-color: rgba(0, 81, 175, 0.08) !important; }
.border-indigo-500\/10 { border-color: rgba(0, 81, 175, 0.14) !important; }
.border-indigo-500\/20,
.hover\:border-indigo-500\/20:hover { border-color: rgba(0, 81, 175, 0.24) !important; }
.from-indigo-500\/20 { --tw-gradient-from: rgba(0, 81, 175, 0.08); --tw-gradient-to: rgba(0, 81, 175, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-indigo-600\/10 { --tw-gradient-to: rgba(0, 105, 222, 0.05); }

.text-green-300,
.text-green-400,
.text-emerald-300,
.text-emerald-400 { color: #006C4E !important; }
.text-green-400\/80 { color: rgba(0, 108, 78, 0.85) !important; }
.hover\:text-green-400:hover,
.hover\:text-emerald-300:hover { color: #007353 !important; }
.bg-green-500\/5,
.bg-emerald-500\/5 { background-color: rgba(0, 108, 78, 0.06) !important; }
.bg-green-500\/10,
.bg-emerald-500\/10 { background-color: rgba(151, 245, 204, 0.45) !important; }
.bg-green-500\/15,
.bg-emerald-500\/15 { background-color: rgba(151, 245, 204, 0.55) !important; }
.bg-emerald-500\/20 { background-color: rgba(151, 245, 204, 0.65) !important; }
.border-green-500\/10,
.border-emerald-500\/10 { border-color: rgba(0, 108, 78, 0.16) !important; }
.border-green-500\/20,
.border-emerald-500\/20,
.hover\:border-green-500\/20:hover { border-color: rgba(0, 108, 78, 0.26) !important; }
.border-green-500\/30,
.border-emerald-500\/30 { border-color: rgba(0, 108, 78, 0.38) !important; }
.border-emerald-500\/40,
.hover\:border-green-500\/40:hover { border-color: rgba(0, 108, 78, 0.48) !important; }

.text-ok { color: #006C4E !important; }
.shrink-0 { flex-shrink: 0; }

.text-cyan-300,
.text-cyan-400,
.text-cyan-500,
.text-sky-300,
.text-sky-400 { color: #9B2F00 !important; }
.hover\:text-cyan-300:hover,
.hover\:text-cyan-400:hover { color: #C2410C !important; }
.bg-cyan-500\/5 { background-color: rgba(194, 65, 12, 0.05) !important; }
.bg-cyan-500\/10,
.bg-sky-500\/10 { background-color: rgba(194, 65, 12, 0.09) !important; }
.bg-cyan-500\/15 { background-color: rgba(194, 65, 12, 0.13) !important; }
.bg-cyan-500\/20,
.bg-sky-500\/20 { background-color: rgba(194, 65, 12, 0.16) !important; }
.border-cyan-500\/10 { border-color: rgba(194, 65, 12, 0.14) !important; }
.border-cyan-500\/20,
.border-sky-500\/20 { border-color: rgba(194, 65, 12, 0.24) !important; }
.border-cyan-500\/30,
.border-sky-500\/30,
.hover\:border-cyan-500\/30:hover { border-color: rgba(194, 65, 12, 0.34) !important; }
.border-cyan-500\/40,
.hover\:border-cyan-500\/50:hover { border-color: rgba(194, 65, 12, 0.48) !important; }

.from-cyan-950\/30 { --tw-gradient-from: #FFF1ED; --tw-gradient-to: rgba(255, 241, 237, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-500 { --tw-gradient-from: #C2410C; --tw-gradient-to: rgba(194, 65, 12, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: #9B2F00; }

.text-brand-300,
.text-brand-400 { color: #9B2F00 !important; }
.text-brand-500 { color: #C2410C !important; }
.bg-brand-500\/5 { background-color: rgba(194, 65, 12, 0.06) !important; }
.bg-brand-500\/10 { background-color: rgba(194, 65, 12, 0.10) !important; }
.bg-brand-500\/15 { background-color: rgba(194, 65, 12, 0.14) !important; }
.border-brand-500\/10 { border-color: rgba(194, 65, 12, 0.14) !important; }
.border-brand-500\/20 { border-color: rgba(194, 65, 12, 0.24) !important; }
.border-brand-500\/30 { border-color: rgba(194, 65, 12, 0.34) !important; }
.border-brand-500\/40 { border-color: rgba(194, 65, 12, 0.45) !important; }
.from-brand-500\/20 { --tw-gradient-from: rgba(194, 65, 12, 0.12) !important; --tw-gradient-to: rgba(194, 65, 12, 0) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-brand-500 { --tw-gradient-to: #C2410C !important; }
.to-brand-600\/10 { --tw-gradient-to: rgba(155, 47, 0, 0.06) !important; }

.text-amber-200,
.text-amber-300,
.text-amber-400 { color: #9B2F00 !important; }
.text-amber-300\/80 { color: #59413A !important; }
.bg-amber-500\/10 { background-color: #FFE9E3 !important; }
.border-amber-500\/20,
.border-amber-500\/30 { border-color: rgba(194, 65, 12, 0.30) !important; }

.text-red-300,
.text-red-400,
.text-rose-300,
.text-rose-400,
.text-rose-500 { color: #BA1A1A !important; }
.bg-red-500\/10,
.bg-rose-500\/10 { background-color: #FFDAD6 !important; }
.border-red-500\/20,
.border-red-500\/30,
.border-rose-500\/30 { border-color: rgba(186, 26, 26, 0.28) !important; }

/* Explicit arbitrary utility definitions used by adapted light templates & JS */
.bg-\[\#FFF8F6\] { background-color: #FFF8F6 !important; }
.bg-\[\#FFF1ED\] { background-color: #FFF1ED !important; }
.bg-\[\#FFE9E3\] { background-color: #FFE9E3 !important; }
.bg-\[\#FFECE7\] { background-color: #FFECE7 !important; }
.bg-\[\#97F5CC\] { background-color: #97F5CC !important; }
.bg-\[\#FFDAD6\] { background-color: #FFDAD6 !important; }
.bg-\[\#006C4E\] { background-color: #006C4E !important; color: #FFFFFF; }
.bg-\[\#3C2D28\] { background-color: #3C2D28 !important; }

.text-\[\#261814\] { color: #261814 !important; }
.text-\[\#59413A\] { color: #59413A !important; }
.text-\[\#8D7168\] { color: #8D7168 !important; }
.text-\[\#9B2F00\] { color: #9B2F00 !important; }
.text-\[\#006C4E\] { color: #006C4E !important; }
.text-\[\#93000A\] { color: #93000A !important; }
.text-\[\#97F5CC\] { color: #97F5CC !important; }
.hover\:text-\[\#9B2F00\]:hover { color: #9B2F00 !important; }

.border-\[\#E1BFB5\] { border-color: #E1BFB5 !important; }
.border-\[\#9B2F00\] { border-color: #9B2F00 !important; }
.border-\[\#59413A\] { border-color: #59413A !important; }
.border-\[\#C2410C\]\/40 { border-color: rgba(194, 65, 12, 0.40) !important; }
.border-\[\#006C4E\]\/30 { border-color: rgba(0, 108, 78, 0.30) !important; }
.border-\[\#006C4E\]\/35 { border-color: rgba(0, 108, 78, 0.35) !important; }
.border-\[\#BA1A1A\]\/30 { border-color: rgba(186, 26, 26, 0.30) !important; }

.has-\[\:checked\]\:border-\[\#9B2F00\]:has(:checked) { border-color: #9B2F00 !important; }
.has-\[\:checked\]\:bg-\[\#FFECE7\]:has(:checked) { background-color: #FFECE7 !important; }

/* Dark surface classes mapped cleanly onto warm light containers */
.bg-slate-950 { background-color: #FFF8F6 !important; }
.bg-slate-950\/60 { background-color: #FFF1ED !important; }
.bg-slate-900 { background-color: #FFFFFF !important; }
.bg-slate-900\/40 { background-color: #FFF8F6 !important; }
.bg-slate-900\/60 { background-color: #FFFFFF !important; }
.bg-slate-900\/80 { background-color: #FFFFFF !important; }
.bg-slate-800 { background-color: #FFE9E3 !important; }
.bg-slate-800\/60 { background-color: #FFF1ED !important; }

.border-slate-700\/50,
.border-slate-700\/60,
.border-slate-800,
.border-white\/5,
.border-white\/10,
.border-white\/15 { border-color: #E1BFB5 !important; }

.text-slate-200,
.text-slate-100 { color: #261814 !important; }
.text-slate-300 { color: #59413A !important; }
.text-slate-400 { color: #59413A !important; }
.text-slate-500 { color: #8D7168 !important; }

/* Contextual protection so legacy .text-white inside light cards stays high-contrast,
   while solid CTA buttons & badges preserve crisp white ink */
.spotlight-card .text-white,
.sp-card .text-white,
.app-card .text-white,
.adm-card .text-white,
.adm-subcard .text-white,
.pay-box .text-white,
.page-hero .text-white,
.section .text-white,
.container .text-white {
    color: #261814;
}
.btn .text-white,
.btn-primary,
.btn-primary .text-white,
.btn-primary-orange,
.btn-primary-orange .text-white,
.bg-light-primary,
.bg-light-primary .text-white,
.bg-light-primary-container,
.bg-light-primary-container .text-white,
.bg-light-secondary,
.bg-light-secondary .text-white,
.bg-brand-600,
.bg-brand-600 .text-white,
.bg-emerald-600,
.bg-emerald-600 .text-white,
.bg-cyan-600,
.bg-cyan-600 .text-white,
.pricing-popular-badge,
.form-step-pill.active,
.form-step-pill.active .text-white,
button.text-white[class*="bg-"],
a.text-white[class*="bg-"] {
    color: #FFFFFF !important;
}

/* Keep explicit dark terminals readable with inverse surface ink */
pre.bg-slate-950,
code.bg-slate-950,
.adm-live-terminal {
    background-color: #3C2D28 !important;
    border-color: #59413A !important;
    color: #FFEDE8 !important;
}

/* ---------- Diagnostic Severity Badges ---------- */
.sev-critical {
    display: inline-block; padding: 3px 9px; border-radius: 9999px;
    background: #FFDAD6; border: 1px solid rgba(186, 26, 26, 0.30);
    color: #93000A; font-size: 0.75rem; font-weight: 700;
}
.sev-high {
    display: inline-block; padding: 3px 9px; border-radius: 9999px;
    background: #FFE9E3; border: 1px solid rgba(194, 65, 12, 0.35);
    color: #9B2F00; font-size: 0.75rem; font-weight: 700;
}
.sev-medium {
    display: inline-block; padding: 3px 9px; border-radius: 9999px;
    background: #FEF3C7; border: 1px solid rgba(180, 83, 9, 0.30);
    color: #92400E; font-size: 0.75rem; font-weight: 700;
}
.sev-low {
    display: inline-block; padding: 3px 9px; border-radius: 9999px;
    background: #ECF0FF; border: 1px solid rgba(0, 81, 175, 0.25);
    color: #0051AF; font-size: 0.75rem; font-weight: 700;
}
.sev-ok {
    display: inline-block; padding: 3px 9px; border-radius: 9999px;
    background: #97F5CC; border: 1px solid rgba(0, 108, 78, 0.25);
    color: #006C4E; font-size: 0.75rem; font-weight: 700;
}

/* ---------- Do / Don't Cards ---------- */
.do-card {
    background: #FFFFFF !important;
    border: 1px solid #E1BFB5 !important;
    border-left: 4px solid #006C4E !important;
}
.do-card h3 {
    color: #006C4E !important;
    display: flex; align-items: center; gap: 10px;
}
.do-card li {
    color: #59413A !important;
    display: flex; align-items: flex-start; gap: 10px;
}
.do-card .do-icon {
    width: 18px; height: 18px; color: #006C4E;
    flex-shrink: 0; margin-top: 2px;
}

.dont-card {
    background: #FFFFFF !important;
    border: 1px solid #E1BFB5 !important;
    border-left: 4px solid #C2410C !important;
}
.dont-card h3 {
    color: #9B2F00 !important;
    display: flex; align-items: center; gap: 10px;
}
.dont-card li {
    color: #59413A !important;
    display: flex; align-items: flex-start; gap: 10px;
}
.dont-card .dont-icon {
    width: 18px; height: 18px; color: #C2410C;
    flex-shrink: 0; margin-top: 2px;
}

/* ---------- Featured Card & Callout ---------- */
.card-featured-cyan {
    border: 2px solid #C2410C !important;
    position: relative;
}
.card-featured-cyan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: #C2410C;
    color: #FFFFFF; padding: 4px 18px; border-radius: 9999px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; white-space: nowrap;
}
.text-cyan-lead {
    color: #9B2F00; font-weight: 600; font-size: 0.95rem;
}
.w-full-btn {
    width: 100%; text-align: center; justify-content: center;
}
.card-callout-center {
    max-width: 720px; margin: 40px auto 0; padding: 28px; text-align: center;
}

/* ---------- Payment Page (.pay-*) ---------- */
.pay-box {
    max-width: 680px; margin: 0 auto 32px;
    background: #FFFFFF;
    border: 1px solid #E1BFB5;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 32px -12px rgba(38, 24, 20, 0.08);
}
.pay-header { text-align: center; margin-bottom: 24px; }
.pay-badge {
    display: inline-block; padding: 5px 14px; border-radius: 9999px;
    background: #FFECE7; color: #9B2F00;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pay-title { margin: 10px 0 6px; font-size: 1.5rem; color: #261814; font-weight: 700; }
.pay-desc { color: #59413A; margin: 0; }
.pay-price-card {
    background: #FFF1ED;
    border: 1px solid #E1BFB5;
    border-radius: 16px;
    padding: 20px; text-align: center; margin-bottom: 20px;
}
.pay-price-val { font-size: 2.25rem; font-weight: 800; color: #261814; }
.pay-price-period { color: #8D7168; font-size: 0.9rem; margin-left: 4px; }
.pay-line {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid #E1BFB5;
    font-size: 0.92rem; color: #59413A;
}
.pay-line:last-child { border-bottom: none; }
.pay-line strong { color: #261814; }
.pay-guarantee-box {
    display: flex; align-items: center; gap: 12px;
    margin-top: 20px; padding: 14px 16px; border-radius: 14px;
    background: rgba(151, 245, 204, 0.35); border: 1px solid rgba(0, 108, 78, 0.25);
}
.pay-guarantee-text { margin: 0; font-size: 0.9rem; color: #261814; }
.pay-tip-card {
    max-width: 680px; margin: 0 auto;
    background: #FFF1ED;
    border: 1px solid #E1BFB5;
    border-radius: 20px; padding: 26px; text-align: center;
}
.pay-tip-title { margin: 0 0 10px; font-size: 1.05rem; color: #261814; font-weight: 700; }
.pay-tip-text { margin: 0 0 16px; color: #59413A; font-size: 0.92rem; line-height: 1.6; }

/* ---------- Layout & Utility Helpers ---------- */
.d-none { display: none; }
.d-inline { display: inline; }
.list-plain { list-style: none; padding: 0; }
.mw-600 { max-width: 600px; }
.mw-800 { max-width: 800px; }
.mw-600-mt { max-width: 600px; margin: 40px auto 0; }
.badge-ok-lg {
    display: inline-flex; width: 64px; height: 64px;
    border-radius: 9999px; background: #97F5CC;
    border: 1px solid rgba(0, 108, 78, 0.30); color: #006C4E;
    align-items: center; justify-content: center; margin-bottom: 16px;
}
.panel-ok { padding: 40px; text-align: center; border-color: rgba(0, 108, 78, 0.30); }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.p-3\.5 { padding: 0.875rem !important; }
.pt-5 { padding-top: 1.25rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.gap-2\.5 { gap: 0.625rem; }
.gap-5 { gap: 1.25rem; }

.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.order-first { order: -9999; }

.shadow-lg { box-shadow: 0 14px 32px -12px rgba(38, 24, 20, 0.12); }
