/* CARONNA Odoo : variante de la charte CARONNA (nuit verte, vert signal, ambre) */
:root { --bleu: #0E8C72; --bleu-f: #0A6F5A; --nuit: #0C2421; --soleil: #F4B740; --menthe: #1FB894; }
.ws-btn-fort { box-shadow: 0 10px 24px -12px rgba(14, 140, 114, .8); }
.ag-heros { background: radial-gradient(1200px 500px at 85% -10%, #134238 0, transparent 60%), var(--nuit); }
.ag-heros p { color: #C3D3CE; }
.ag-flux div { background: #12302C; border-color: #1E4740; color: #C3D3CE; }
.ag-heros .ws-btn:not(.ws-btn-fort) { border-color: #2E5650; }
.agc-res { background: var(--nuit); } .agc-taux, .agc-gros span { color: #C3D3CE; }
.od-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.od-logos span { border: 1px solid #2E5650; color: #C3D3CE; border-radius: 999px; padding: 6px 14px; font-size: .85rem; }

/* démo : console d'intégration */
.odd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; margin-top: 1.6rem; align-items: stretch; }
.odd-panneau, .odd-ecran { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(12, 36, 33, .35); display: flex; flex-direction: column; min-width: 0; }
.odd-barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--trait); background: var(--papier); font-size: .8rem; color: var(--gris); }
.odd-barre span { width: 10px; height: 10px; border-radius: 50%; background: #D7DBE7; }
.odd-barre em { font-style: normal; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd-fil { padding: 14px; display: grid; gap: 9px; align-content: start; min-height: 380px; font-size: .9rem; }
.odd-m { margin: 0; padding: 9px 12px; border-radius: 12px; animation: agd-in .35s ease-out; overflow-wrap: anywhere; }
.odd-m.moi { background: #EAF2F0; }
.odd-m.ia { background: #FFF7E6; border: 1px solid #F3DB9E; }
.odd-m.etape { background: none; padding: 2px 0 2px 22px; position: relative; color: var(--gris); font-size: .84rem; }
.odd-m.etape::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--menthe); }
.odd-m.accord { border: 1.5px solid var(--soleil); background: #FFFBF2; }
.odd-m.accord b { display: block; margin-bottom: 6px; }
.odd-boutons { display: flex; gap: 8px; margin-top: 8px; } .odd-boutons i { font-style: normal; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 9px; border: 1.5px solid var(--trait); background: #fff; }
.odd-boutons i:first-child { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.odd-boutons i.appuye { outline: 3px solid var(--soleil); }
.odd-odoo { padding: 16px; display: grid; gap: 10px; font-size: .88rem; flex: 1; align-content: start; }
.odd-odoo .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.odd-odoo .t b { font-size: 1.05rem; }
.odd-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
.odd-champs div { display: grid; gap: 2px; } .odd-champs small { color: var(--gris); font-size: .76rem; }
.odd-champs span { border-bottom: 1px solid var(--trait); padding: 3px 0; min-height: 1.6em; }
.odd-neuf { animation: odd-flash 1.6s ease-out; border-radius: 8px; }
.odd-neuf span { border-bottom-color: var(--bleu); }
.odd-onglets { display: flex; gap: 14px; border-bottom: 1px solid var(--trait); font-size: .82rem; color: var(--gris); padding-bottom: 6px; }
.odd-onglets b { color: var(--encre); }
.odd-ctrl { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.odd-ctrl .ws-btn { min-height: 40px; }
.odd-scene { font-size: .86rem; color: var(--gris); }
@keyframes odd-flash { 0% { background: #FFF1C9; } 100% { background: transparent; } }
@media (max-width: 860px) { .odd { grid-template-columns: minmax(0, 1fr); } .odd-fil { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .odd-m, .odd-neuf { animation: none; } }

/* espace client : chantiers */
.oc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.oc-liste { display: grid; gap: 6px; }
.oc-liste a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; background: var(--blanc); border: 1px solid var(--trait); font-size: .9rem; overflow-wrap: anywhere; }
.oc-liste a[aria-current="true"] { border-color: var(--bleu); box-shadow: inset 3px 0 0 var(--bleu); }
.oc-liste small { display: block; color: var(--gris); font-size: .76rem; }
.oc-zone { background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; display: flex; flex-direction: column; min-height: 60vh; min-width: 0; }
.oc-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.oc-tete h2 { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.oc-tete small { color: var(--gris); }
.oc-fil { flex: 1; padding: 16px; display: grid; gap: 10px; align-content: start; overflow-y: auto; max-height: 64vh; }
.oc-m { padding: 10px 14px; border-radius: 14px; font-size: .94rem; max-width: 100%; overflow-wrap: anywhere; }
.oc-m.moi { background: #EAF2F0; justify-self: end; max-width: 88%; white-space: pre-wrap; }
.oc-m.ia { background: var(--papier); }
.oc-m.ia p:last-child, .oc-m.ia ul:last-child, .oc-m.ia ol:last-child { margin-bottom: 0; }
.oc-m.ia pre { background: #0C2421; color: #E6F2EF; padding: 10px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; max-width: 100%; }
.oc-m.ia code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; }
.oc-m.etape { padding: 2px 0 2px 22px; position: relative; color: var(--gris); font-size: .84rem; }
.oc-m.etape::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--menthe); }
.oc-m.etape.ko::before { background: var(--rouge); } .oc-m.etape.ko small { display: block; color: var(--rouge); }
.oc-m.accord, .oc-m.ecran { border: 1.5px solid var(--soleil); background: #FFFBF2; }
.oc-m.accord pre { white-space: pre-wrap; font-size: .78rem; max-height: 220px; overflow: auto; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 8px; }
.oc-m.decision { font-size: .84rem; color: var(--gris); border-left: 3px solid var(--menthe); border-radius: 0; padding: 2px 10px; }
.oc-m.decision.ko { border-left-color: var(--rouge); }
.oc-m.erreur { background: #FDECEC; color: #8A1C1C; }
.oc-m.fichier a { font-weight: 700; }
.oc-saisie { border-top: 1px solid var(--trait); padding: 12px; display: grid; gap: 8px; }
.oc-saisie textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 12px; box-sizing: border-box; }
.oc-saisie .wa-actions { justify-content: space-between; }
.oc-pj { font-size: .84rem; color: var(--gris); }
.oc-travail { display: flex; align-items: center; gap: 8px; color: var(--gris); font-size: .88rem; padding: 0 16px 10px; }
.oc-travail::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bleu); border-top-color: transparent; animation: agd-tourne .8s linear infinite; }
.oc-mode { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EAF2F0; color: var(--bleu-f); }
.oc-mode.prod { background: #FFF1D6; color: #8A5A00; }
.oc-vide { color: var(--gris); }
.oc-exemples { display: grid; gap: 8px; margin-top: 10px; }
.oc-exemples button { text-align: left; font: inherit; font-size: .9rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--papier); cursor: pointer; color: inherit; }
.oc-exemples button:hover { border-color: var(--bleu); }
.panneau .ws-tete { display: none; } .panneau main { padding-top: 10px !important; }
.panneau .oc { grid-template-columns: minmax(0, 1fr); } .panneau .oc-liste { display: none; }
.panneau .oc-fil { max-height: none; }
@media (max-width: 860px) { .oc { grid-template-columns: minmax(0, 1fr); } .oc-liste { max-height: 190px; overflow-y: auto; } .oc-fil { max-height: none; } }
.oc [hidden], .oc-zone [hidden] { display: none !important; }
.wa-form .ws-case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.wa-form .ws-case input { width: auto; flex: 0 0 auto; margin: .35em 0 0; }
.ws-heros-act .ws-btn { padding-top: .55rem; padding-bottom: .55rem; text-align: center; }
