.wrapper {
    max-width: 100%;
    position: relative;
	margin: 10px
}

.wrapper input {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid black;
    border-radius: 50px;
    padding: 1rem 2rem;
    width: 100%;
}

.wrapper button {
    background: white;
    border-radius: 50px;
    aspect-ratio: 1;
    height: 80%;

    /* The important part */
    position: absolute;
    top: 10%;
    right: 5px;
}

.entry-title {
	margin: 0 !important;
}

.entry-content {
	margin: 0 !important;
}

label[for="usc-url"] {
	font-weight:bold;
	font-size: 16px;
}

.form-check label {
	display:inline;
}

div#usc-internal-results > *, div#usc-external-results > *{
    margin-bottom: 0 !important;
}

div#usc-result {
	padding-bottom: 5px;
}

#usc-external-results {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
	margin-top: 10px;
}

#usc-external-results h3 {
    margin-top: 0;
}

#usc-external-results h4 {
    margin-top: 25px;
}

.usc-status, .alert {
    font-weight: 500;
}

.usc-status--success, .alert-success {
    color: #198754;
}

.usc-status--warning, .alert-warning {
    color: #d39e00;
}

.usc-status--error, .alert-danger {
    color: #dc3545;
}

.alert-info {
	color: #17a2b8!important
}

/* =========================================================
   Google Web Risk
   ========================================================= */

.usc-webrisk {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.usc-webrisk *,
.usc-webrisk *::before,
.usc-webrisk *::after {
    box-sizing: border-box;
}

.usc-footer a {
	color: #188B8E !important;
}

/* ---------------------------------------------------------
   Bloc principal
   --------------------------------------------------------- */

.usc-result {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

#usc-errors {
	font-size : 16px;
    font-weight: bolder;
    color: #ff0000;
}

#url-analyse {
	text-align: center;
    font-size: 24px;
    font-weight: bolder;
    color: #188b8e;
}

/* ---------------------------------------------------------
   Formulaire
   --------------------------------------------------------- */
#usc-form { display: grid; gap: 1rem; accent-color:#188B8E; padding-bottom:15px; }
.usc-field { border: 0; padding: 0; margin: 0; }
.usc-field > label, .usc-options legend { display: block; font-weight: 600; margin-bottom: .5rem; }

.usc-field input[type="url"] {
    width: 100%; padding: .85rem 1rem; font-size: 1rem;
    border: 2px solid #c8ccd0; border-radius: 8px; box-sizing: border-box;
}
.usc-field input[type="url"]:focus { outline: 3px solid #188B8E; outline-offset: 1px; border-color: #188B8E; }
.usc-field input[aria-invalid="true"] { border-color: #c62828; }
.usc-error { color: #c62828; margin: .4rem 0 0; font-size: .9rem; }

.usc-submit {
    justify-self: start; padding: .85rem 2rem; font-size: 1rem; font-weight: 600;
    color: #fff; border: 0; border-radius: 8px; cursor: pointer;
	display: block; margin: 0 auto !important; 
	background-image: linear-gradient(220deg, #188B8E 15%, #132338 80%);
}
.usc-submit:hover { background: #188B8E; color:#fff; }
.usc-submit:disabled { opacity: .6; cursor: progress; }

.usc-note { font-size: .85rem; color: #666; margin: 0; }

.usc-button{
	width:100%;
}
.h-captcha {
	margin: 0 auto !important;
}

@media (max-width: 480px) { .usc-submit { width: 100%; justify-self: stretch; } }

/* ---------------------------------------------------------
   Loader
   --------------------------------------------------------- */
   
   .usc-loading {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 8px;
    color: #188B8E;
    font-weight: 500;
}

/* Sans cette règle, display:flex écrase l'attribut hidden */
.usc-loading[hidden] { display: none; }

.usc-spinner {
	margin: 0 auto;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 5px solid #188B8E;
    border-top-color: #132338;
    border-radius: 50%;
    animation: usc-spin .8s linear infinite;
}

@keyframes usc-spin {
    to { transform: rotate(360deg); }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
    .usc-spinner { animation-duration: 2.4s; }
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.usc-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.usc-result-title {
    min-width: 0;
}

.usc-result-title h3 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.usc-result-title span {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.7;
}


/* ---------------------------------------------------------
   Icône
   --------------------------------------------------------- */

.usc-result-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 26px;
    font-weight: 700;
}

.usc-result-icon span {
    line-height: 1;
}


/* ---------------------------------------------------------
   Message
   --------------------------------------------------------- */

.usc-result-message {
    padding: 20px 24px;
    border-top: 1px solid;
    border-bottom: 1px solid;
}

.usc-result-message strong {
    display: block;
    margin-bottom: 8px;

    font-size: 16px;
    line-height: 1.5;
}

.usc-result-message p {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Informations complémentaires
   --------------------------------------------------------- */

.usc-result-info {
    padding: 16px 24px;

    font-size: 13px;
    line-height: 1.6;

    opacity: 0.7;
}

.small {
	margin-top: 20px;
	font-size: smaller;
	color: grey;
}

/* ---------------------------------------------------------
   Menaces
   --------------------------------------------------------- */

.usc-threats {
    padding: 16px;

    border-radius: 8px;
}

.usc-threats-title {
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
}

.usc-threats ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.usc-threats li {
    margin: 4px 0;
    padding: 0;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   État : OK
   ========================================================= */

.usc-result-safe {
    border-color: #b7dfc1;
}

.usc-result-safe .usc-result-header {
    background: #edf8f0;
}

.usc-result-safe .usc-result-icon {
    background: #d4f0da;
    color: #187a32;
}

.usc-result-safe .usc-result-title h3 {
    color: #187a32;
}

.usc-result-safe .usc-result-message {
    border-color: #d9eee0;
}

.usc-result-safe .usc-result-message strong {
    color: #187a32;
}


/* =========================================================
   État : menace
   ========================================================= */

.usc-result-danger {
    border-color: #e5b8b8;
}

.usc-result-danger .usc-result-header {
    background: #fdf0f0;
}

.usc-result-danger .usc-result-icon {
    background: #f7d5d5;
    color: #b42323;
}

.usc-result-danger .usc-result-title h3 {
    color: #b42323;
}

.usc-result-danger .usc-result-message {
    border-color: #f0d4d4;
}

.usc-result-danger .usc-result-message strong {
    color: #b42323;
}

.usc-result-danger .usc-threats {
    background: #fdf5f5;
}


/* =========================================================
   État : avertissement / erreur
   ========================================================= */

.usc-result-warning {
    border-color: #e5d49c;
}

.usc-result-warning .usc-result-header {
    background: #fff9e8;
}

.usc-result-warning .usc-result-icon {
    background: #fff0bf;
    color: #8a6500;
}

.usc-result-warning .usc-result-title h3 {
    color: #8a6500;
}

.usc-result-warning .usc-result-message {
    border-color: #eee2bd;
}

.usc-result-warning .usc-result-message strong {
    color: #8a6500;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .usc-result-header {
        padding: 18px;
        gap: 12px;
    }

    .usc-result-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .usc-result-title h3 {
        font-size: 18px;
    }

    .usc-result-title span {
        font-size: 13px;
    }

    .usc-result-message {
        padding: 18px;
    }

    .usc-result-info {
        padding: 14px 18px;
    }

    .usc-threats {
        margin: 18px;
    }
}