/* Domain Security Checker - Altern8 / Jupiter Theme */

/* ===== WRAPPER ===== */
.dsc-wrapper {
    max-width: 740px !important;
    margin: 50px auto 60px !important;
    padding: 0 20px !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

/* ===== INTRO ===== */
.dsc-intro {
    margin-bottom: 35px;
    text-align: center;
}

.dsc-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 34px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #182140 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dsc-title span { color: #e43117; }

.dsc-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #4d4d4d !important;
    margin: 0 auto 20px !important;
    max-width: 600px;
    text-align: center !important;
}

.dsc-description a {
    color: #e43117;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.dsc-description a:hover {
    border-bottom-color: #e43117;
}

.dsc-accent-line {
    width: 60px;
    height: 3px;
    background: #e43117;
    margin: 0 auto;
}

/* ===== FORM ===== */
.dsc-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.dsc-input {
    flex: 1;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 16px;
    border: 2px solid #ededed;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
    color: #182140;
    background: #fff;
}
.dsc-input:focus { border-color: #e43117; }
.dsc-input::placeholder { color: #a3a3a3; }

.dsc-button {
    padding: 15px 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #e43117;
    border: 2px solid #e43117;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dsc-button:hover {
    background: #fff;
    color: #e43117;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.dsc-button:disabled {
    background: #a3a3a3;
    border-color: #a3a3a3;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

.dsc-hint {
    margin: 15px 0 0;
    font-size: 14px;
    color: #a3a3a3;
    text-align: center;
}

/* ===== LOADING ===== */
.dsc-loading {
    text-align: center;
    padding: 50px 0;
    color: #a3a3a3;
    font-size: 16px;
}
.dsc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ededed;
    border-top-color: #e43117;
    border-radius: 50%;
    animation: dsc-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes dsc-spin { to { transform: rotate(360deg); } }

/* ===== ERROR ===== */
.dsc-error {
    padding: 15px 20px;
    margin-top: 20px;
    background: #fef2f2;
    color: #e43117;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* ===== RESULTS ===== */
.dsc-results-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 22px !important;
    color: #182140 !important;
    text-align: center !important;
    margin: 0 0 25px !important;
    font-weight: 700 !important;
}
.dsc-results-title strong { color: #e43117; }

.dsc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.dsc-card {
    padding: 20px;
    background: #f7f7f7;
    border: none;
    border-left: 4px solid #ededed;
    transition: box-shadow 0.3s;
    text-align: left;
}
.dsc-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

.dsc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.dsc-card-header strong {
    font-family: 'Comfortaa', 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #182140;
}
.dsc-card-sub {
    display: block;
    font-size: 11px;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.dsc-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #4d4d4d;
    line-height: 1.5;
}
.dsc-more-link {
    font-size: 13px;
    font-weight: 700;
    color: #e43117;
    text-decoration: none;
}
.dsc-more-link:hover { text-decoration: underline; }

/* Status icons */
.dsc-icon { font-size: 1.3rem; line-height: 1; }
.dsc-ok   { color: #16a34a; }
.dsc-warn { color: #ea580c; }
.dsc-fail { color: #e43117; }

/* Card accents */
.dsc-card-ok      { border-left-color: #16a34a; }
.dsc-card-warning { border-left-color: #ea580c; }
.dsc-card-fail    { border-left-color: #e43117; }

/* Results actions */
.dsc-results-actions {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Link button (text style) */
.dsc-link-btn {
    background: none;
    border: none;
    color: #a3a3a3;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 10px;
    transition: color 0.2s;
}
.dsc-link-btn:hover { color: #e43117; }

/* ===== RGPD ===== */
.dsc-rgpd {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #a3a3a3 !important;
    margin: 12px auto 0 !important;
    max-width: 500px;
    text-align: center !important;
}
.dsc-rgpd a {
    color: #a3a3a3;
    text-decoration: underline;
}
.dsc-rgpd a:hover {
    color: #e43117;
}

/* ===== CONTACT FORM ===== */
.dsc-contact-form {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.dsc-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dsc-contact-fields .dsc-input {
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 15px;
    border: 2px solid #ededed;
    width: 100%;
}

.dsc-contact-btn {
    padding: 15px 40px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
}

.dsc-contact-success {
    padding: 25px;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.dsc-contact-error {
    padding: 12px 20px;
    margin-top: 10px;
    background: #fef2f2;
    color: #e43117;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
}

/* ===== FAQ ===== */
.dsc-faq {
    max-width: 700px;
    margin: 50px auto 0;
    text-align: left;
    border-top: 2px solid #ededed;
    padding-top: 35px;
}

.dsc-faq-title {
    font-family: 'Comfortaa', 'Nunito', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #182140 !important;
    text-align: center !important;
    margin: 0 0 20px !important;
}

.dsc-faq-item {
    border-bottom: 1px solid #ededed;
}

.dsc-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #182140;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.dsc-faq-q:hover { color: #e43117; }

.dsc-faq-arrow {
    font-size: 14px;
    color: #a3a3a3;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.dsc-faq-item.open .dsc-faq-arrow { transform: rotate(180deg); }

.dsc-faq-a {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 !important;
    opacity: 0;
}
.dsc-faq-item.open .dsc-faq-a {
    max-height: 300px !important;
    padding: 0 0 16px !important;
    opacity: 1;
}

.dsc-faq-a p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #4d4d4d !important;
    margin: 0 !important;
}

.dsc-faq-a a {
    color: #e43117;
    text-decoration: none;
    font-weight: 600;
}
.dsc-faq-a a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dsc-wrapper {
        margin: 30px auto 40px !important;
        padding: 0 15px !important;
    }
    .dsc-title {
        font-size: 24px !important;
    }
    .dsc-description {
        font-size: 14px !important;
    }
    .dsc-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    .dsc-input {
        padding: 14px 18px;
        font-size: 15px;
    }
    .dsc-button {
        width: 100%;
        padding: 14px 20px;
    }
    .dsc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dsc-card {
        padding: 16px;
    }
    .dsc-card-header strong {
        font-size: 16px;
    }
    .dsc-results-title {
        font-size: 18px !important;
    }
    .dsc-contact-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .dsc-title {
        font-size: 21px !important;
    }
    .dsc-wrapper {
        margin: 20px auto 30px !important;
    }
}

/* =========================================================
   SHIELD RESULT CARD (single card, replaces 3 tech cards)
   ========================================================= */
.dsc-shield-wrap {
    display: flex;
    justify-content: center;
    margin: 20px auto 30px;
}

/* Frameless horizontal layout: shield left, info right.
   Shield is vertically centered against the full height of the info block. */
.dsc-shield-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: row;
    align-items: center;     /* shield centered against text block */
    justify-content: center;
    gap: 36px;
    text-align: left;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.dsc-shield-info {
    flex: 0 1 320px;
    min-width: 0;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tag pill on top */
.dsc-shield-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a3a3a3;
    margin: 0 0 6px;
    font-weight: 700;
}
.dsc-level-1 .dsc-shield-tag { color: #16a34a; }
.dsc-level-2 .dsc-shield-tag { color: #ea580c; }
.dsc-level-3 .dsc-shield-tag { color: #e43117; }
.dsc-level-4 .dsc-shield-tag { color: #7f1d1d; }

/* Shield image — glow hugs the silhouette via filter:drop-shadow */
.dsc-shield-img {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
    /* Slight visual offset: -12px left, +14px down to align with text block's optical center */
    transform: translate(-12px, 14px);
    transition: filter 0.45s ease, transform 0.3s ease;
}

/* Subtle resting drop-shadow per level so the shield doesn't look pasted on white */
.dsc-level-1 .dsc-shield-img { filter: drop-shadow(0 6px 10px rgba(22,163,74,0.18)); }
.dsc-level-2 .dsc-shield-img { filter: drop-shadow(0 6px 10px rgba(234,88,12,0.18)); }
.dsc-level-3 .dsc-shield-img { filter: drop-shadow(0 6px 10px rgba(228,49,23,0.20)); }
.dsc-level-4 .dsc-shield-img { filter: drop-shadow(0 6px 10px rgba(127,29,29,0.25)); }

/* Hover: pulsing colored halo that breathes in/out, hugging the shield's outline */
@keyframes dsc-pulse-1 {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(22,163,74,0.20))
                drop-shadow(0 0 10px rgba(22,163,74,0.15));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(22,163,74,0.25))
                drop-shadow(0 0 18px rgba(22,163,74,0.45));
    }
}
@keyframes dsc-pulse-2 {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(234,88,12,0.20))
                drop-shadow(0 0 10px rgba(234,88,12,0.15));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(234,88,12,0.25))
                drop-shadow(0 0 18px rgba(234,88,12,0.45));
    }
}
@keyframes dsc-pulse-3 {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(228,49,23,0.22))
                drop-shadow(0 0 10px rgba(228,49,23,0.18));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(228,49,23,0.28))
                drop-shadow(0 0 20px rgba(228,49,23,0.50));
    }
}
@keyframes dsc-pulse-4 {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(127,29,29,0.25))
                drop-shadow(0 0 10px rgba(127,29,29,0.20));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(127,29,29,0.32))
                drop-shadow(0 0 22px rgba(127,29,29,0.55));
    }
}

/* Permanent pulse on the shield — always breathing, no hover required */
.dsc-shield-card.dsc-level-1 .dsc-shield-img { animation: dsc-pulse-1 1.8s ease-in-out infinite; }
.dsc-shield-card.dsc-level-2 .dsc-shield-img { animation: dsc-pulse-2 1.8s ease-in-out infinite; }
.dsc-shield-card.dsc-level-3 .dsc-shield-img { animation: dsc-pulse-3 1.6s ease-in-out infinite; }
.dsc-shield-card.dsc-level-4 .dsc-shield-img { animation: dsc-pulse-4 1.4s ease-in-out infinite; }

/* Hover: subtle scale-up nudge to indicate interactivity (the pulse keeps running) */
.dsc-shield-card:hover .dsc-shield-img {
    transform: translate(-12px, 14px) scale(1.04);
}

/* Respect users who prefer reduced motion: no pulse */
@media (prefers-reduced-motion: reduce) {
    .dsc-shield-card .dsc-shield-img,
    .dsc-button-pulse {
        animation: none;
    }
}

/* =========================================================
   CTA BUTTON PULSE — attracts attention when the verdict
   isn't level 1 (sceau intact). Same "breathing" feel as
   the shield's glow, applied to the "Être recontacté" button.
   ========================================================= */
@keyframes dsc-btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 16px rgba(228, 49, 23, 0.35),
                    0 0 0 0 rgba(228, 49, 23, 0.75);
    }
    60% {
        transform: scale(1.04);
        box-shadow: 0 10px 30px rgba(228, 49, 23, 0.55),
                    0 0 0 22px rgba(228, 49, 23, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 16px rgba(228, 49, 23, 0.35),
                    0 0 0 22px rgba(228, 49, 23, 0);
    }
}

.dsc-button-pulse {
    animation: dsc-btn-pulse 1.6s ease-out infinite;
    /* Permanent glow so the button always looks alive even between pulses */
    box-shadow: 0 6px 16px rgba(228, 49, 23, 0.35);
}

/* Keep the pulse running on hover (override .dsc-button:hover box-shadow & transform) */
.dsc-button-pulse:hover {
    animation: dsc-btn-pulse 1.6s ease-out infinite;
}

/* Verdict + message */
.dsc-shield-verdict {
    font-family: 'Comfortaa', 'Nunito', sans-serif;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}
.dsc-level-1 .dsc-shield-verdict { color: #16a34a; }
.dsc-level-2 .dsc-shield-verdict { color: #ea580c; }
.dsc-level-3 .dsc-shield-verdict { color: #e43117; }
.dsc-level-4 .dsc-shield-verdict { color: #7f1d1d; }

.dsc-shield-msg {
    font-size: 14px !important;
    color: #4d4d4d !important;
    line-height: 1.5 !important;
    margin: 0 0 14px !important;
}

/* Pills: vertical column aligned left, each row = name + indicator */
.dsc-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #ededed;
    width: 100%;
    max-width: 200px;
}
.dsc-pill-row {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}
.dsc-pill-name {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #5f5e5a;
    text-transform: uppercase;
    font-weight: 700;
}
.dsc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.dsc-pill.ok      { background: #16a34a; }
.dsc-pill.warn    { background: #ea580c; }
.dsc-pill.bad     { background: #e43117; }
.dsc-pill.unknown { background: #64748b; cursor: help; } /* neutral slate — custom selector */

/* Tablet/mobile: stack vertically with centered alignment */
@media (max-width: 640px) {
    .dsc-shield-card {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        max-width: 100%;
    }
    .dsc-shield-info {
        text-align: center;
        max-width: 100%;
    }
    .dsc-shield-img { width: 160px; height: 160px; }
    .dsc-shield-verdict { font-size: 22px !important; }
    .dsc-pills {
        max-width: 240px;
        margin: 0 auto;
    }
}
