/* ORTHENA – compte client, espace client et retours (orthena-compte.js). Toutes les regles sont prefixees .oc */
.oc-mount { font-family: 'Poppins', system-ui, sans-serif; color: #1c2720; }
.oc { box-sizing: border-box; width: 100%; max-width: 1040px; margin: 0 auto; padding: 56px 24px 90px; display: flex; flex-direction: column; gap: 22px; font-size: 15px; line-height: 1.6; }
.oc *, .oc *::before, .oc *::after, .oc-dialog * { box-sizing: border-box; }
.oc--narrow { max-width: 520px; }
.oc--mid { max-width: 820px; }
.oc h1, .oc h2, .oc h3 { font-family: 'Raleway', sans-serif; font-weight: 600; color: #1c2720; margin: 0; line-height: 1.2; }
.oc h1 { font-size: 36px; }
.oc h2 { font-size: 24px; }
.oc h3 { font-size: 18px; font-family: 'Poppins', system-ui, sans-serif; }
.oc h1:focus, .oc h2:focus { outline: none; }
.oc p { margin: 0; }
.oc a { color: #063018; }
.oc .oc-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: #4a524c; text-decoration: underline; cursor: pointer; text-align: left; }
.oc .oc-link:hover { color: #063018; }
.oc-muted { color: #4a524c; font-size: 14px; }
.oc-small { font-size: 13px; color: #6b716d; }
.oc-card { background: #ffffff; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(6, 48, 24, 0.04); }
.oc-card--soft { background: #eef3e6; box-shadow: none; }
.oc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.oc-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.oc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oc-stack { display: flex; flex-direction: column; gap: 14px; }

/* Tabs */
.oc-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #e6e6e3; border-radius: 8px; padding: 4px; }
.oc-tab { position: relative; z-index: 1; height: 44px; border: 0; background: transparent; border-radius: 6px; font: 600 13.5px 'Poppins', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #4a524c; cursor: pointer; }
.oc-tab[aria-selected="true"] { background: #ffffff; color: #4f7f1f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

/* Champs */
.oc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #1c2720; min-width: 0; }
.oc-input, .oc-select, .oc-textarea { font-family: inherit; font-size: 15px; height: 50px; padding: 0 14px; border: 1px solid #d9ddd6; border-radius: 6px; background: #ffffff; color: #1c2720; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
.oc-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.oc-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c2720' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.oc-input:focus, .oc-select:focus, .oc-textarea:focus { border-color: #4f7f1f; box-shadow: 0 0 0 3px rgba(128, 178, 10, 0.25); }
.oc-input[aria-invalid="true"] { border-color: #b3261e; }
.oc-pw { position: relative; }
.oc-pw .oc-input { padding-right: 96px; }
.oc-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; font: 600 12.5px 'Poppins', system-ui, sans-serif; color: #063018; cursor: pointer; }
.oc-pw-toggle:hover { background: #eef3e6; }
.oc-hint { font-size: 12.5px; color: #6b716d; font-weight: 400; }

/* Boutons */
.oc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 6px; border: 1px solid #063018; background: #063018; color: #ffffff; font: 600 14.5px 'Poppins', system-ui, sans-serif; letter-spacing: 0.02em; cursor: pointer; text-decoration: none; transition: background-color .22s, color .22s, transform .22s, box-shadow .22s; }
.oc a.oc-btn { color: #ffffff; }
.oc-btn:hover { background: #0a4a24; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 48, 24, 0.22); }
.oc-btn[disabled], .oc-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.oc-btn--ghost { background: transparent; color: #1c2720; border-color: #1c2720; }
.oc a.oc-btn--ghost { color: #1c2720; }
.oc-btn--ghost:hover { background: #1c2720; color: #ffffff; }
.oc a.oc-btn--ghost:hover { color: #ffffff; }
.oc-btn--accent { background: #80b20a; border-color: #80b20a; color: #062b14; }
.oc-btn--accent:hover { background: #6f9b08; }
.oc-btn--google { background: #ffffff; color: #1c2720; border-color: #d9ddd6; }
.oc-btn--google:hover { background: #f7f8f4; }
.oc-btn--block { width: 100%; }
.oc-btn--sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
.oc-btn:focus-visible, .oc-tab:focus-visible, .oc-link:focus-visible, .oc-pw-toggle:focus-visible, .oc a:focus-visible, .oc-check input:focus-visible, .oc-dialog .oc-btn:focus-visible { outline: 3px solid #80b20a; outline-offset: 2px; }
.oc-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #6b716d; text-transform: uppercase; letter-spacing: .08em; }
.oc-or::before, .oc-or::after { content: ""; flex: 1; height: 1px; background: #e3e6e2; }

/* Messages */
.oc-msg:empty { display: none; }
.oc-msg { border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.oc-msg--err { background: #fbeaea; color: #8c1d18; }
.oc-msg--ok { background: #e8f2dc; color: #2f4a1c; }
.oc-msg--info { background: #eef3e6; color: #1c2720; }

/* Badges */
.oc-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef0ec; color: #1c2720; white-space: nowrap; }
.oc-badge--green { background: #e3efd3; color: #2f4a1c; }
.oc-badge--amber { background: #fdf1d6; color: #7a5300; }
.oc-badge--blue { background: #e2edf7; color: #1d4a72; }
.oc-badge--grey { background: #eef0ec; color: #4a524c; }
.oc-badge--accent { background: #80b20a; color: #062b14; }

/* Commandes et articles */
.oc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oc-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #eef0ec; }
.oc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.oc-item b { font-weight: 600; }
.oc-sep { border: 0; border-top: 1px solid #e3e6e2; margin: 0; width: 100%; }
.oc-check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid #d9ddd6; border-radius: 10px; background: #ffffff; }
.oc-check.is-on { border-color: #4f7f1f; background: #f6faef; }
.oc-check.is-off { opacity: .6; }
.oc-check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #063018; }
.oc-check .oc-select { height: 42px; width: 86px; }

/* Options du dossier */
.oc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.oc-opt { position: relative; background: #ffffff; border: 1.5px solid #e3e6e2; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.oc-opt--rec { border-color: #80b20a; box-shadow: 0 8px 24px rgba(128, 178, 10, 0.16); }
.oc-opt--off { opacity: .55; }
.oc-opt-n { width: 30px; height: 30px; border-radius: 50%; background: #063018; color: #ffffff; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; flex: none; }
.oc-opt h3 { font-size: 16.5px; line-height: 1.35; }
.oc-opt p { font-size: 14px; color: #4a524c; }
.oc-opt .oc-btn { margin-top: auto; align-self: flex-start; }
.oc-amount { font-size: 22px; font-weight: 700; color: #063018; }
.oc-addr { font-style: normal; background: #f7f8f4; border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.oc-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-photo { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid #d9ddd6; }
.oc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-photo button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28, 39, 32, 0.82); color: #ffffff; font-size: 15px; line-height: 1; cursor: pointer; }
.oc-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.oc-code { font: 700 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: #f7f8f4; border: 1.5px dashed #80b20a; border-radius: 8px; padding: 12px 16px; }
.oc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.oc-steps li { background: #ffffff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; font-weight: 500; }
.oc-steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: #063018; color: #ffffff; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; }
.oc-section { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #d9ddd6; padding-top: 22px; }
.oc-spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ocspin .7s linear infinite; vertical-align: -3px; }
@keyframes ocspin { to { transform: rotate(360deg); } }
.oc-loading { padding: 40px 0; text-align: center; color: #4a524c; }
.oc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dialogue de confirmation */
.oc-dialog-bg { position: fixed; inset: 0; z-index: 6000; background: rgba(6, 48, 24, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Poppins', system-ui, sans-serif; }
.oc-dialog { background: #ffffff; border-radius: 16px; width: 100%; max-width: 460px; padding: 28px; display: flex; flex-direction: column; gap: 16px; color: #1c2720; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.oc-dialog h2 { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 600; margin: 0; }
.oc-dialog p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a524c; }
.oc-dialog .oc-row { justify-content: flex-end; }
.oc-dialog .oc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid #063018; background: #063018; color: #ffffff; font: 600 14.5px 'Poppins', system-ui, sans-serif; cursor: pointer; }
.oc-dialog .oc-btn--ghost { background: transparent; color: #1c2720; border-color: #1c2720; }

@media (max-width: 760px) {
  .oc { padding: 32px 16px 64px; gap: 18px; }
  .oc h1 { font-size: 28px; }
  .oc h2 { font-size: 21px; }
  .oc-card { padding: 20px 18px; border-radius: 12px; }
  .oc-grid2, .oc-options, .oc-steps { grid-template-columns: minmax(0, 1fr); }
  .oc-btn { width: 100%; }
  .oc-opt .oc-btn { align-self: stretch; }
  .oc-dialog .oc-row { flex-direction: column-reverse; align-items: stretch; }
  .oc-check { grid-template-columns: 22px minmax(0, 1fr); }
  .oc-check .oc-qty { grid-column: 2; }
}
