/* ==========================================================================
   OsmoTools : compatibilité iOS 27 et Android 17 ([osmova_compat_ios], [osmova_compat_android])
   Choix du modèle, verdict (compatible ou non), dernière version possible, fin des correctifs.
   ========================================================================== */

.ovs {
    --ovs-noir: #0A0A0A;
    --ovs-gris: #6B6B6B;
    --ovs-gris-bg: #F6F7F9;
    --ovs-border: #E5E7EB;
    --ovs-blue: #0064FF;
    --ovs-vert: #067647;
    --ovs-vert-bg: #ECFDF3;
    --ovs-orange: #B54708;
    --ovs-orange-bg: #FFFAEB;
    --ovs-rouge: #B42318;
    --ovs-rouge-bg: #FEF3F2;
    --ovs-mono: 'JetBrains Mono', monospace;
    margin: 0 0 40px;
    padding: clamp(16px, 4%, 28px); /* % = largeur du conteneur : reste aéré même dans une colonne étroite. */
    border: 1px solid var(--ovs-border);
    border-radius: 16px;
    background: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ovs-noir);
}

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

.ovs [hidden] {
    display: none !important;
}

.ovs__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--ovs-blue) 10%, white);
    color: var(--ovs-blue);
    font: 700 11px/1.4 var(--ovs-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ovs .ovs__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
}

.ovs__intro {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ovs-gris);
}

.ovs :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ovs-blue) 45%, white);
    outline-offset: 2px;
}

/* ---------- Champs ---------- */

.ovs__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ovs__field > label {
    font-size: 13px;
    font-weight: 600;
}

.ovs input[type="text"],
.ovs select {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--ovs-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--ovs-noir);
}

.ovs select {
    padding-right: 30px;
    font-size: 15px;
    cursor: pointer;
}

.ovs input:focus,
.ovs select:focus {
    border-color: var(--ovs-blue);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-blue) 15%, white);
}

.ovs__ou {
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--ovs-gris);
}

.ovs .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Verdict ---------- */

.ovs__res {
    margin: 18px 0 0;
    padding: 20px 22px;
    border: 1px solid var(--ovs-border);
    border-left-width: 5px;
    border-radius: 14px;
    background: var(--ovs-gris-bg);
}

.ovs__res:empty {
    display: none;
}

.ovs__res.is-ok {
    border-color: color-mix(in srgb, var(--ovs-vert) 30%, white);
    border-left-color: var(--ovs-vert);
    background: var(--ovs-vert-bg);
}

.ovs__res.is-partiel {
    border-color: color-mix(in srgb, var(--ovs-orange) 30%, white);
    border-left-color: var(--ovs-orange);
    background: var(--ovs-orange-bg);
}

.ovs__res.is-non {
    border-color: color-mix(in srgb, var(--ovs-rouge) 25%, white);
    border-left-color: var(--ovs-rouge);
    background: var(--ovs-rouge-bg);
}

.ovs__modele {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ovs-gris);
}

.ovs__verdict {
    display: block;
    margin: 0 0 12px;
    font-size: clamp(20px, 3.6vw, 26px);
    font-weight: 800;
    line-height: 1.25;
}

.is-ok .ovs__verdict {
    color: var(--ovs-vert);
}

.is-partiel .ovs__verdict {
    color: var(--ovs-orange);
}

.is-non .ovs__verdict {
    color: var(--ovs-rouge);
}

.ovs__chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ovs__chips li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--ovs-border);
    border-radius: 10px;
    background: #fff;
}

.ovs__chips span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ovs-gris);
}

.ovs__chips b {
    font: 700 15px/1.35 var(--ovs-mono);
    overflow-wrap: anywhere;
}

.ovs__note {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.ovs__res > .ovs__note:first-child {
    margin-top: 0;
}

.ovs__note a {
    color: var(--ovs-blue);
}

.ovs__choix {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.ovs__choix li {
    margin: 0;
}

.ovs__pill {
    padding: 7px 12px;
    border: 1px solid var(--ovs-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ovs-noir);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.ovs__pill:hover {
    border-color: var(--ovs-blue);
    color: var(--ovs-blue);
}

/* ---------- Aide et pied ---------- */

.ovs__aide {
    margin: 18px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--ovs-border);
    border-radius: 12px;
    background: var(--ovs-gris-bg);
}

.ovs__aide summary {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ovs__aide p {
    margin: 10px 0 2px;
    font-size: 14px;
    line-height: 1.55;
}

.ovs__more {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--ovs-gris);
}

/* Le conteneur de l'article peut être étroit même sur un grand écran : requête de conteneur. */
.ovs__body {
    container-type: inline-size;
}

@container (max-width: 420px) {
    .ovs__res {
        padding: 16px;
    }

    .ovs__chips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ovs {
        border-radius: 14px;
    }
}
