.scam-detector-page {
    margin: 0;
    padding: clamp(20px, 4vw, 56px);
    background: #f5f7ff;
}

.scam-detector,
.scam-detector *,
.scam-detector *::before,
.scam-detector *::after {
    box-sizing: border-box;
}

.scam-detector {
    --sc-blue: #459af2;
    --sc-blue-dark: #247fd9;
    --sc-blue-soft: #eaf4ff;
    --sc-ink: #08053d;
    --sc-text: #27264b;
    --sc-muted: #74758f;
    --sc-line: #e4e9f5;
    --sc-surface: #ffffff;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(20px, 3.5vw, 42px);
    border: 1px solid rgba(69, 154, 242, 0.08);
    border-radius: 28px;
    background: #f3f6ff;
    color: var(--sc-text);
    font-family: Poppins, "Avenir Next", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    isolation: isolate;
}

.scam-detector .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Formulaire */
.scam-detector .scam-detector-form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: min(100%, 850px);
    margin: 0 auto 14px;
}

.scam-detector .domain-field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--sc-surface);
    box-shadow: 0 8px 28px rgba(8, 5, 61, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.scam-detector .domain-field:focus-within {
    border-color: var(--sc-blue);
    box-shadow: 0 0 0 4px rgba(69, 154, 242, 0.13), 0 10px 30px rgba(8, 5, 61, 0.07);
}

.scam-detector .domain-field-icon {
    width: 22px;
    height: 22px;
    margin-left: 22px;
    color: var(--sc-blue);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    pointer-events: none;
}

.scam-detector .domain-field input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 22px 14px 13px;
    border: 0;
    outline: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--sc-ink);
    font: inherit;
    font-size: 15px;
}

.scam-detector .domain-field input::placeholder {
    color: #999bb0;
    opacity: 1;
}

.scam-detector .scam-detector-form button {
    display: inline-flex;
    min-width: 154px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 25px;
    border: 2px solid var(--sc-blue);
    border-radius: 999px;
    background: var(--sc-blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.scam-detector .scam-detector-form button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.scam-detector .scam-detector-form button:hover:not(:disabled) {
    background: transparent;
    color: var(--sc-blue-dark);
    box-shadow: 0 8px 22px rgba(69, 154, 242, 0.12);
    transform: translateY(-1px);
}

.scam-detector .scam-detector-form button:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.scam-detector .scam-detector-form button:focus-visible {
    outline: 3px solid rgba(69, 154, 242, 0.28);
    outline-offset: 3px;
}

.scam-detector .scam-detector-form button:disabled {
    border-color: #b8c8dd;
    background: #b8c8dd;
    cursor: wait;
}

.scam-detector .form-message {
    width: min(100%, 850px);
    margin: 12px auto 0;
    padding: 12px 18px;
    border: 1px solid #f1b6bb;
    border-radius: 14px;
    background: #fff1f2;
    color: #9f2935;
    font-size: 14px;
}

.scam-detector .form-message[hidden] {
    display: none;
}

/* Chargement */
.scam-detector #loader {
    display: none;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px;
    color: var(--sc-muted);
    font-size: 14px;
}

.scam-detector .spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 3px solid #dbe8f7;
    border-top-color: var(--sc-blue);
    border-radius: 50%;
    animation: sc-spin 700ms linear infinite;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

/* Résultats */
.scam-detector #results {
    display: none;
    margin-top: clamp(26px, 4vw, 42px);
    animation: sc-reveal 320ms ease both;
}

@keyframes sc-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.scam-detector .verdict-banner {
    --status: #627087;
    --status-soft: #eef1f5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: clamp(20px, 3vw, 28px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--status) 22%, white);
    border-radius: 22px;
    background: var(--sc-surface);
    box-shadow: 0 14px 38px rgba(8, 5, 61, 0.06);
    position: relative;
}

.scam-detector .verdict-banner.fiable {
    --status: #20a36a;
    --status-soft: #e8f8f0;
}

.scam-detector .verdict-banner.surveiller {
    --status: #d79312;
    --status-soft: #fff7df;
}

.scam-detector .verdict-banner.suspect {
    --status: #e26f2b;
    --status-soft: #fff0e7;
}

.scam-detector .verdict-banner.dangereux {
    --status: #d64455;
    --status-soft: #ffedef;
}

.scam-detector .verdict-icon,
.scam-detector .signal-sev,
.scam-detector .tranco-icon,
.scam-detector .whois-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.scam-detector .verdict-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--status-soft);
    color: var(--status);
}

.scam-detector .verdict-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.scam-detector .verdict-text {
    min-width: 0;
}

.scam-detector .verdict-text h2 {
    margin: 0 0 4px;
    color: var(--sc-ink);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.2;
}

.scam-detector .verdict-text p {
    max-width: 680px;
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.scam-detector .verdict-domain {
    display: flex;
    max-width: 230px;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.scam-detector .verdict-domain strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--sc-ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scam-detector .verdict-domain span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--status-soft);
    color: var(--status);
    font-size: 11px;
    font-weight: 600;
}

.scam-detector .signals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.scam-detector .signal-card {
    --status: #7a8495;
    --status-soft: #eff2f6;
    display: flex;
    min-width: 0;
    min-height: 154px;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--sc-line);
    border-radius: 20px;
    background: var(--sc-surface);
    box-shadow: 0 8px 24px rgba(8, 5, 61, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.scam-detector .signal-card:hover {
    border-color: color-mix(in srgb, var(--status) 28%, white);
    box-shadow: 0 13px 30px rgba(8, 5, 61, 0.07);
    transform: translateY(-2px);
}

.scam-detector .signal-card.ok {
    --status: #20a36a;
    --status-soft: #e8f8f0;
}

.scam-detector .signal-card.attention {
    --status: #d79312;
    --status-soft: #fff7df;
}

.scam-detector .signal-card.danger {
    --status: #d64455;
    --status-soft: #ffedef;
}

.scam-detector .signal-sev {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: var(--status-soft);
    color: var(--status);
}

.scam-detector .signal-sev svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.scam-detector .signal-body {
    min-width: 0;
}

.scam-detector .signal-body h3 {
    margin: 1px 0 7px;
    color: var(--sc-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.scam-detector .signal-body .signal-label {
    margin: 0;
    color: var(--sc-text);
    font-size: 13px;
    line-height: 1.45;
}

.scam-detector .signal-body .signal-advice,
.scam-detector .tranco-advice {
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid color-mix(in srgb, var(--status) 18%, white);
    color: #7f6331;
    font-size: 12px;
    line-height: 1.45;
}

.scam-detector .signal-card.danger .signal-advice {
    color: #9f3440;
}

.scam-detector .tranco-bar,
.scam-detector .whois-detail,
.scam-detector .transaction-tip {
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    background: var(--sc-surface);
    box-shadow: 0 8px 24px rgba(8, 5, 61, 0.04);
}

.scam-detector .tranco-bar {
    display: none;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 17px 20px;
}

.scam-detector .tranco-icon,
.scam-detector .whois-icon,
.scam-detector .transaction-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--sc-blue-soft);
    color: var(--sc-blue-dark);
}

.scam-detector .tranco-icon svg,
.scam-detector .whois-icon svg,
.scam-detector .transaction-tip-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.scam-detector .tranco-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    color: var(--sc-muted);
    font-size: 13px;
}

.scam-detector .tranco-content strong {
    color: var(--sc-ink);
    font-size: 14px;
}

.scam-detector .whois-detail {
    display: none;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
}

.scam-detector .whois-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--sc-ink);
    font-size: 13px;
}

.scam-detector .whois-heading small {
    color: var(--sc-muted);
    font-size: 10px;
    font-weight: 600;
}

.scam-detector .whois-list {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.scam-detector .whois-list > div {
    min-width: 0;
    padding: 0 24px;
    border-left: 1px solid var(--sc-line);
}

.scam-detector .whois-list > div:last-child {
    flex: 1 1 auto;
}

.scam-detector .whois-list dt {
    margin: 0 0 2px;
    color: var(--sc-muted);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scam-detector .whois-list dd {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--sc-ink);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scam-detector .transaction-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
    padding: 18px 20px;
}

.scam-detector .transaction-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.scam-detector .transaction-tip-content {
    min-width: 0;
}

.scam-detector .transaction-tip-content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--sc-ink);
    font-size: 14px;
}

.scam-detector .transaction-tip-intro {
    margin: 0;
    color: var(--sc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.scam-detector .transaction-checklist {
    margin: 10px 0 0;
    padding-left: 22px;
    color: var(--sc-text);
    font-size: 13px;
}

.scam-detector .transaction-checklist li {
    padding-left: 4px;
    line-height: 1.55;
}

.scam-detector .transaction-checklist li + li {
    margin-top: 7px;
}

.scam-detector .transaction-checklist li::marker {
    color: var(--sc-blue-dark);
    font-weight: 700;
}

.scam-detector .transaction-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid #dbe9fa;
    border-radius: 11px;
    background: var(--sc-blue-soft);
    color: var(--sc-ink);
    font-size: 12px;
    line-height: 1.55;
}

.scam-detector .transaction-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--sc-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--sc-blue-dark);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.scam-detector .transaction-copy-button:hover,
.scam-detector .transaction-copy-button:focus-visible,
.scam-detector .transaction-copy-button.copied {
    border-color: var(--sc-blue-dark);
    background: var(--sc-blue-dark);
    color: #fff;
}

.scam-detector .transaction-copy-button:focus-visible {
    outline: 3px solid rgba(69, 154, 242, 0.22);
    outline-offset: 2px;
}

.scam-detector .transaction-copy-button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

/* Volet IA conservé pour une éventuelle réactivation */
.scam-detector .reputation-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--sc-line);
}

.scam-detector .reputation-section > h3 {
    margin: 0 0 4px;
    color: var(--sc-ink);
    font-size: 16px;
}

.scam-detector .reputation-section > .rep-subtitle,
.scam-detector .rep-confidence,
.scam-detector .rep-disclaimer {
    color: var(--sc-muted);
    font-size: 12px;
}

.scam-detector .reputation-section > .rep-subtitle {
    margin: 0 0 16px;
}

.scam-detector .rep-summary-card,
.scam-detector .rep-observations,
.scam-detector .rep-axis-card,
.scam-detector .rep-vigilance-banner {
    padding: 18px;
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    background: var(--sc-surface);
}

.scam-detector .rep-summary-card,
.scam-detector .rep-observations,
.scam-detector .rep-vigilance-banner {
    margin-bottom: 14px;
}

.scam-detector .rep-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.scam-detector .rep-site-type,
.scam-detector .rep-chip {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.scam-detector .rep-site-type {
    background: var(--sc-blue-soft);
    color: var(--sc-blue-dark);
    text-transform: uppercase;
}

.scam-detector .rep-chip.good { background: #e8f8f0; color: #197b51; }
.scam-detector .rep-chip.neutral { background: #eff2f6; color: #606b7c; }
.scam-detector .rep-chip.warning { background: #fff7df; color: #976710; }
.scam-detector .rep-chip.danger { background: #ffedef; color: #a6313f; }

.scam-detector .rep-summary,
.scam-detector .rep-observations p,
.scam-detector .rep-vigilance-banner p {
    margin: 5px 0 0;
    color: var(--sc-text);
    font-size: 13px;
    line-height: 1.6;
}

.scam-detector .rep-loading-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.scam-detector .rep-mini-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid #dbe8f7;
    border-top-color: var(--sc-blue);
    border-radius: 50%;
    animation: sc-spin 700ms linear infinite;
}

.scam-detector .rep-axis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.scam-detector .rep-axis-card h4,
.scam-detector .rep-vigilance-banner h4 {
    margin: 0 0 9px;
    color: var(--sc-ink);
    font-size: 13px;
}

.scam-detector .rep-axis-card.rep-pos { border-color: #bce9d3; }
.scam-detector .rep-axis-card.rep-watch,
.scam-detector .rep-vigilance-banner { border-color: #f2dca7; background: #fffdf7; }
.scam-detector .rep-axis-card.rep-alert,
.scam-detector .rep-domain-alert-danger { border-color: #efc2c7; background: #fffafb; }
.scam-detector .rep-domain-alert-calm { border-color: #bce9d3; background: #fbfffd; }

.scam-detector .rep-axis-card ul,
.scam-detector .rep-details-toggle ul {
    margin: 0;
    padding-left: 18px;
    color: var(--sc-text);
    font-size: 12px;
}

.scam-detector .rep-details-toggle {
    margin-top: 10px;
    color: var(--sc-muted);
    font-size: 12px;
}

.scam-detector .rep-details-toggle summary {
    cursor: pointer;
}

.scam-detector .rep-confidence,
.scam-detector .rep-disclaimer {
    margin: 8px 0 0;
}

@media (max-width: 900px) {
    .scam-detector .signals-grid,
    .scam-detector .rep-axis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scam-detector .whois-detail {
        align-items: flex-start;
    }

    .scam-detector .whois-list {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .scam-detector .whois-list > div {
        width: 50%;
    }
}

@media (max-width: 640px) {
    .scam-detector-page {
        padding: 12px;
    }

    .scam-detector {
        padding: 18px;
        border-radius: 21px;
    }

    .scam-detector .scam-detector-form {
        flex-direction: column;
    }

    .scam-detector .scam-detector-form button {
        width: 100%;
    }

    .scam-detector .signals-grid,
    .scam-detector .rep-axis-grid {
        grid-template-columns: 1fr;
    }

    .scam-detector .signal-card {
        min-height: 0;
    }

    .scam-detector .verdict-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .scam-detector .verdict-domain {
        grid-column: 1 / -1;
        max-width: none;
        align-items: flex-start;
        padding-top: 14px;
        border-top: 1px solid var(--sc-line);
        text-align: left;
    }

    .scam-detector .whois-detail {
        flex-direction: column;
    }

    .scam-detector .whois-list {
        width: 100%;
    }

    .scam-detector .whois-list > div {
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid var(--sc-line);
        border-left: 0;
    }

    .scam-detector .whois-list dd {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scam-detector *,
    .scam-detector *::before,
    .scam-detector *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
