/* Outils publics des pages piliers (inc/outils-publics.php). Préfixe op-, bandeau opx-. */

/* Bandeau loop-web-ui des pages outils : l'outil est dans le bandeau. */
.opx { position: relative; overflow: hidden; padding: 104px 0 64px; background: linear-gradient(118deg, #FF7A3D 0%, #FF4F8B 55%, #6D5EF8 100%); color: #fff; }
.opx--verif-of { background: linear-gradient(118deg, #FF7A3D 0%, #6D5EF8 60%, #3B82F6 100%); }
.opx--rncp { background: linear-gradient(118deg, #6D5EF8 0%, #FF4F8B 60%, #FF7A3D 100%); }
.opx *, .opx *::before, .opx *::after { box-sizing: border-box; }
.opx-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.opx-spin { transform-origin: 1180px 110px; animation: opx-spin 70s linear infinite; }
@keyframes opx-spin { to { transform: rotate(360deg); } }
.opx-shell { position: relative; max-width: 980px; margin: 0 auto; padding: 0 24px; text-align: center; }
.opx-crumb ol { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; font-size: 13px; font-weight: 600; }
.opx-crumb li + li::before { content: "›"; margin-right: 8px; opacity: .7; }
.opx-crumb a { color: #fff; text-decoration: none; opacity: .85; }
.opx-crumb a:hover { opacity: 1; text-decoration: underline; }
.opx-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 13px; }
.opx-kick span { background: #fff; color: #C2410C; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; }
.opx-title { margin: 18px auto 0; max-width: 880px; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.opx-title em { font-style: normal; padding-bottom: .08em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 140 4, 197 12' fill='none' stroke='%23FFD27A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat; }
.opx-lead { margin: 16px auto 0; max-width: 720px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.opx-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; }
.opx-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; }
.opx-trust i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #C2410C; font-style: normal; font-size: 12px; font-weight: 900; }

/* Outil dans le bandeau */
.op.op--hero { padding: 0; margin: 30px 0 0; text-align: left; color: #0c1222; }
.op--hero .op__card { max-width: none; border: 0; border-radius: 28px; padding: 26px 28px 24px; box-shadow: 0 40px 90px -40px rgba(12, 18, 34, .6); }
.op--hero .op__eyebrow, .op--hero .op__title { display: none; }
.op--hero .op__input { min-height: 60px; font-size: 17px; border-radius: 18px; }
.op--hero .op__btn { min-height: 60px; padding: 0 30px; font-size: 16px; box-shadow: 0 14px 28px -14px rgba(227, 103, 45, .9); }
.op__field { position: relative; flex: 1; min-width: 0; display: flex; }
.op__field .op__input { width: 100%; padding-left: 48px; }
.op__ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #94a3b8; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.op__try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: #64708b; }
.op__try span { font-weight: 700; margin-right: 2px; }
.op__ex { border: 1px solid rgba(12, 18, 34, .12); background: #f6f4f0; color: #0c1222; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.op__ex:hover { background: #fff3ec; border-color: #e3672d; color: #c2410c; }
.op__ex:focus-visible { outline: 3px solid rgba(227, 103, 45, .45); outline-offset: 2px; }

/* Bloc réponse directe + chiffres + sommaire, sous le bandeau */
.lxc-pilier .lxcc-hero.lxp-hero--after-tool { padding-top: 40px; }
.lxc-pilier .lxp-hero--after-tool .lxp-answer { margin-top: 0; }

.op { padding: 8px 24px 48px; margin-top: -24px; position: relative; z-index: 2; }
.op__card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid rgba(12, 18, 34, .1); border-radius: 24px; padding: 24px 26px; box-shadow: 0 30px 60px -36px rgba(12, 18, 34, .45); }
.op__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #e3672d; }
.op__title { margin: 0 0 14px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: #0c1222; }
.op__label { display: block; font-size: 13px; font-weight: 800; color: #0c1222; margin: 0 0 6px; }
.op__row { display: flex; gap: 10px; }
.op__input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1.5px solid rgba(12, 18, 34, .14); border-radius: 14px; font: inherit; font-size: 16px; color: #0c1222; }
.op__input:focus { outline: none; border-color: #e3672d; }
.op__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #ff8a4c, #e3672d); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.op__btn:disabled { opacity: .6; cursor: wait; }
.op__btn--ghost { min-height: 42px; background: #0c1222; font-size: 14px; }
.op__btn:focus-visible, .op__input:focus-visible { outline: 3px solid rgba(227, 103, 45, .45); outline-offset: 2px; }
.op__note { margin: 10px 0 0; font-size: 12.5px; color: #64708b; }
.op__out:empty { display: none; }
.op__out { margin-top: 18px; }
.op-wait { color: #64708b; font-size: 14px; }
.op-err { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.op-res { border-top: 1px dashed rgba(12, 18, 34, .14); padding-top: 16px; }
.op-res__name { margin: 0 0 10px; font-size: 19px; font-weight: 900; color: #0c1222; }
.op-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.op-tag--warn { background: #fef3c7; color: #92400e; }
.op-verdict { margin: 0 0 8px; padding: 14px 16px; border-radius: 14px; background: #e6f6f0; color: #0f6b4f; font-size: 16px; }
.op-verdict span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.op-verdict b { font-size: 20px; color: #0c1222; }
.op-verdict--presume { background: #fff7ed; color: #9a3412; }
.op-verdict--none { background: #f1f5f9; color: #334155; font-size: 14.5px; }
.op-caution { margin: 0 0 10px; font-size: 13.5px; color: #92400e; line-height: 1.5; }
.op-sub { margin: 12px 0 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64708b; }
.op-cert { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.op-cert li { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.op-cert .is-ok { background: #e6f6f0; color: #0f6b4f; }
.op-cert .is-no { background: #f1f5f9; color: #94a3b8; }
.op-dl { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.op-row dt { font-size: 12px; font-weight: 700; color: #64708b; }
.op-row dd { margin: 2px 0 0; font-size: 14.5px; color: #0c1222; }
.op-links { margin: 12px 0 0; font-size: 13.5px; }
.op-links a { color: #1d9e75; font-weight: 700; }
.op-next { margin-top: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #fff3ec; }
.op-next p { margin: 0; font-size: 14px; font-weight: 700; color: #0c1222; }
.op__filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-top: 12px; }
.op__filters label { font-size: 12.5px; font-weight: 700; color: #64708b; display: flex; flex-direction: column; gap: 4px; }
.op__filters select { min-height: 40px; padding: 0 10px; border: 1.5px solid rgba(12, 18, 34, .14); border-radius: 10px; font: inherit; font-size: 14px; color: #0c1222; background: #fff; }
.op__filters .op__check { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; color: #3d4a63; }
.op-count { margin: 0 0 10px; font-size: 14px; color: #3d4a63; }
.op-cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-cert-item a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; border: 1px solid rgba(12, 18, 34, .1); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.op-cert-item a:hover { border-color: #e3672d; box-shadow: 0 10px 24px -18px rgba(12, 18, 34, .4); }
.op-cert-item__code { grid-row: span 2; align-self: start; padding: 4px 9px; border-radius: 8px; background: #fff3ec; color: #c2410c; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.op-cert-item__t { font-weight: 800; color: #0c1222; font-size: 15px; line-height: 1.35; }
.op-cert-item__meta { font-size: 12.5px; color: #64708b; }
.op-cert-item.is-off .op-cert-item__code { background: #f1f5f9; color: #64748b; }
.op-more { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .opx-spin { animation: none; } }
@media (max-width: 640px) {
    .opx { padding: 92px 0 40px; }
    .opx-shell { padding: 0 16px; }
    .opx-lead { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .opx-trust { gap: 6px; }
    .opx-trust li { font-size: 12px; }
    .op--hero .op__card { padding: 18px 16px; border-radius: 22px; }
    .op--hero .op__btn { width: 100%; }
    .op-cert-item a { grid-template-columns: 1fr; }
    .op-cert-item__code { grid-row: auto; justify-self: start; }
    .op { padding: 8px 16px 36px; }
    .op__card { padding: 18px; }
    .op__row { flex-direction: column; }
    .op-dl { grid-template-columns: 1fr; }
    .op-next .op__btn { width: 100%; }
}
