.field-primary-action {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff9d00, #f06d00);
  box-shadow: 0 12px 26px rgba(224, 104, 0, .25);
  font-size: 1.08rem;
  font-weight: 850;
}
.field-primary-action span { font-size: 1.7rem; line-height: 1; }
.field-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field-action-card {
  min-height: 154px;
  border: 2px solid rgba(0, 122, 69, .23);
  border-radius: 20px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  color: var(--ink);
  background: linear-gradient(150deg, #fff, #fff8ea);
  box-shadow: 0 13px 30px rgba(70, 48, 15, .10);
}
.field-action-card.red { border-color: rgba(212, 40, 40, .24); }
.field-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--brand); background: #e6f5eb; font-size: 1.55rem; font-weight: 900; }
.field-action-card.red .field-card-icon { color: var(--red); background: #fff0ee; }
.field-action-card strong { margin-top: auto; font-size: 1rem; }
.field-action-card small { margin-top: 4px; color: var(--soft); font-size: .8rem; }
.field-local-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: var(--soft); font-size: .82rem; font-weight: 750; }
.field-local-state span, .field-autosave > span { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

.field-form { display: grid; gap: 18px; }
.field-autosave { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px; color: #00542f; background: #e6f5eb; font-size: .86rem; font-weight: 800; }
.field-control { display: grid; gap: 8px; }
.field-control > strong { font-size: .95rem; }
.field-control input, .field-control textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}
.field-control textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.field-control input:focus, .field-control textarea:focus { outline: 3px solid rgba(0, 122, 69, .18); border-color: var(--brand); }
.field-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duration-box { margin: -5px 0 0; padding: 12px 14px; border-radius: 12px; background: #ddf4e8; color: #00542f; font-weight: 800; }

.selection-builder { padding: 17px; border: 2px solid rgba(0, 122, 69, .22); border-radius: 18px; background: rgba(255, 255, 255, .76); }
.selection-builder h3 { margin: 0; color: #00542f; font-size: 1.02rem; }
.selection-builder > p { margin: 7px 0 15px; color: var(--soft); font-size: .88rem; line-height: 1.45; }
#field-selection-tree { display: grid; gap: 12px; }
.selection-parcel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.selection-parcel-button, .selection-block-button { width: 100%; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); background: #fff8ea; font-weight: 850; }
.selection-parcel-button { padding: 13px 15px; font-size: 1.02rem; }
.selection-blocks { display: grid; gap: 10px; padding: 12px; }
.selection-block { overflow: hidden; border: 1px solid #ead9ba; border-radius: 12px; }
.selection-block-button { min-height: 44px; padding: 8px 11px; }
.selection-parcel-button.selected, .selection-block-button.selected { color: #00542f; background: #dff4e6; }
.selection-parcel-button.partial, .selection-block-button.partial { background: #fff0cb; }
.sector-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px; }
.sector-chip { min-height: 44px; border: 2px solid #e5d4b6; border-radius: 11px; color: var(--ink); background: #fff; font-weight: 800; }
.sector-chip.selected { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 4px 10px rgba(0, 122, 69, .18); }
.selection-summary { margin-top: 13px; padding: 12px; border-radius: 12px; background: #eef9f2; color: #00542f; }
.selection-summary div, .comment-targets div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.selection-summary span { padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--brand); font-size: .8rem; font-weight: 750; }
.comment-targets { padding: 11px 12px; border-radius: 12px; color: #00542f; background: #eef9f2; }
.comment-targets span { padding: 4px 7px; border-radius: 8px; background: #fff; font-size: .8rem; font-weight: 800; }
.location-rule { margin: 0; padding: 11px 13px; border-inline-start: 4px solid var(--orange); border-radius: 11px; color: #68430e; background: #fff3d7; font-size: .88rem; line-height: 1.45; font-weight: 750; }
.field-save-actions { display: grid; gap: 10px; }
.field-secondary-action { min-height: 54px; border: 2px solid var(--brand); border-radius: 15px; padding: 11px 14px; color: #00542f; background: #fff; font-size: .95rem; font-weight: 850; }

.field-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 14px 16px; border-radius: 15px; background: #e6f5eb; }
.field-page-intro strong { color: #00542f; }
.field-page-intro span { color: var(--soft); font-size: .82rem; }
.field-notes-list, .field-parcel-list { display: grid; gap: 16px; }
.field-note-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 22px rgba(70, 48, 15, .07); }
.field-note-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field-note-top > div { display: flex; flex-wrap: wrap; gap: 5px; }
.field-note-top strong { padding: 5px 8px; border-radius: 8px; color: #00542f; background: #e6f5eb; font-size: .84rem; }
.field-note-top > span { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; color: #8f4b00; background: #ffe0ac; font-size: .76rem; font-weight: 800; }
.field-note-card h3 { margin: 14px 0 5px; font-size: 1.08rem; white-space: pre-wrap; }
.field-note-meta { margin: 0; color: var(--soft); font-size: .88rem; }
.field-note-comment { margin-top: 14px; padding: 13px 14px; border-inline-start: 4px solid var(--orange); border-radius: 12px; background: #fff6e5; }
.field-note-comment strong { color: #8f4b00; font-size: .88rem; }
.field-note-comment p { margin: 8px 0 0; line-height: 1.45; white-space: pre-wrap; }
.field-note-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.field-note-actions button { min-height: 46px; border: 0; border-radius: 12px; padding: 8px 10px; color: #fff; background: var(--brand); font-weight: 850; }
.field-note-actions .danger { border: 2px solid rgba(212, 40, 40, .28); color: var(--red); background: #fff; }
.field-empty { padding: 30px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: center; color: var(--soft); }
.field-empty strong { display: block; color: var(--ink); }
.field-empty p { margin: 7px 0 18px; }

.field-parcel-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 22px rgba(70, 48, 15, .07); }
.field-parcel-card summary { padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; cursor: pointer; list-style: none; }
.field-parcel-card summary::-webkit-details-marker { display: none; }
.field-parcel-card summary strong { color: #00542f; font-size: 1.2rem; }
.field-parcel-card summary span { color: var(--soft); font-size: .8rem; text-align: end; }
.field-parcel-card > div { padding: 0 16px 16px; }
.field-parcel-card section { padding: 13px 0; border-top: 1px solid var(--line); }
.field-parcel-card h3 { margin: 0 0 8px; color: #00542f; font-size: .95rem; }
.field-parcel-card p { margin: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; }
.field-parcel-card p strong { color: var(--ink); }
.field-parcel-card p span { color: var(--soft); text-align: end; }

@media (max-width: 480px) {
  .field-action-grid { gap: 12px; }
  .field-action-card { min-height: 142px; padding: 17px; }
  .field-two-cols { grid-template-columns: 1fr; }
  .field-page-intro { align-items: flex-start; flex-direction: column; }
  .field-note-top { align-items: flex-start; flex-direction: column; }
  .field-note-actions { grid-template-columns: 1fr; }
  .field-parcel-card summary { grid-template-columns: 1fr; }
  .field-parcel-card summary span { text-align: start; }
}

html[dir="rtl"] .field-action-card { text-align: right; }

/* Parcelles facultatives (en bas du formulaire) */
.optional-tag { font-size: .8rem; font-weight: 700; opacity: .7; }
.selection-builder .selection-save { margin-top: 16px; width: 100%; }

/* Outil « Calculer une cuve » */
.calc-main { padding: 18px 1.5rem 110px; max-width: 760px; margin: 0 auto; }
.tank-calc .field { display: block; margin-bottom: 14px; }
.tank-calc label, .tank-calc .tc-label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--ink, #1f2a1f); }
.tank-calc input[type="text"], .tank-calc select { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 14px; background: white; font: inherit; font-size: 1.05rem; color: inherit; }
.tank-calc .tc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-toggle button { flex: 1; min-height: 46px; padding: 8px 10px; border-radius: 999px; border: 2px solid var(--line, #e3d8c3); background: white; font: inherit; font-weight: 800; color: var(--green, #006233); }
.tc-toggle button[aria-pressed="true"] { background: var(--green, #006233); border-color: var(--green, #006233); color: white; }
.tc-rows-result { margin: 0 0 12px; font-weight: 800; color: var(--green, #006233); }
.tc-result { margin-top: 16px; padding: 16px; border-radius: 18px; background: #eef7ef; border: 2px solid #c9e3cd; }
.tc-result h2 { margin: 0 0 10px; font-size: 1.1rem; color: var(--green, #006233); }
.tc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d7eadb; }
.tc-line span { opacity: .75; }
.tc-line b { text-align: end; }
.tc-line.strong b { font-size: 1.25rem; color: var(--green, #006233); }
.tc-equiv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.tc-equiv strong { width: 100%; font-size: .9rem; }
.tc-equiv span { padding: 4px 8px; border-radius: 8px; background: white; font-weight: 800; font-size: .85rem; }
.tc-warning { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fde8e4; color: #9b2c1c; font-weight: 800; }
.tc-hint { margin: 8px 0 0; opacity: .75; }
.tc-legal { margin: 14px 0 0; padding: 11px 13px; border-inline-start: 4px solid var(--orange, #e8891d); border-radius: 11px; color: #68430e; background: #fff3d7; font-size: .9rem; }
.tc-add { margin-top: 14px; width: 100%; min-height: 50px; border-radius: 16px; border: 2px solid var(--green, #006233); background: white; color: var(--green, #006233); font: inherit; font-weight: 800; }

/* Calcul : recherche dans le catalogue ONSSA */
.tc-product-field { position: relative; }
.tc-suggest { margin-top: 6px; border: 2px solid var(--line, #e3d8c3); border-radius: 14px; background: white; overflow: hidden; }
.tc-suggest button { display: block; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid #efe6d4; background: none; text-align: start; font: inherit; color: inherit; }
.tc-suggest button:last-child { border-bottom: 0; }
.tc-suggest button strong { display: block; }
.tc-suggest button span { font-size: .85rem; opacity: .7; }
.tc-suggest .tc-hint { padding: 10px 14px; margin: 0; }
.tc-nozzle { margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--line, #e3d8c3); background: #fffaf0; }
.tc-nozzle summary { cursor: pointer; font-weight: 800; color: var(--green, #006233); min-height: 32px; }
.tc-nozzle[open] summary { margin-bottom: 10px; }
.tc-nozzle-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line, #e3d8c3); }
.tc-nozzle-color { grid-column: 1 / -1; margin-bottom: 0 !important; }
.tc-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tc-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; padding: 6px 2px; border: 2px solid var(--line, #e3d8c3); border-radius: 12px; background: white; font: inherit; color: inherit; }
.tc-chip small { font-size: .72rem; font-weight: 800; opacity: .75; }
.tc-chip[aria-pressed="true"] { border-color: var(--green, #006233); background: #eef7ef; box-shadow: 0 0 0 2px var(--green, #006233); }
.tc-chip[aria-pressed="true"] small { opacity: 1; }
.tc-dot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); vertical-align: middle; }
.tc-chip-name { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green, #006233); min-height: 28px; }
.tc-chip-name .tc-dot, .tc-line .tc-dot { width: 18px; height: 18px; }
.tc-line span .tc-dot { margin-inline-end: 4px; }
.tc-nozzle-remove { min-width: 44px; min-height: 50px; margin-bottom: 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 14px; background: white; font: inherit; font-weight: 800; color: #9b2c1c; }
.tc-nozzle-add { width: 100%; min-height: 46px; margin: 0 0 14px; border: 2px dashed var(--green, #006233); border-radius: 14px; background: white; font: inherit; font-weight: 800; color: var(--green, #006233); }
.tc-nozzle-result { margin-top: 10px; }
.tc-use-volume { width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 14px; padding: 8px 12px; color: white; background: var(--green, #006233); font: inherit; font-weight: 850; }
.tc-label-dose { margin: 8px 0 0; font-weight: 700; color: var(--green, #006233); }
.tc-unlink { margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #e3d8c3); background: white; font: inherit; font-size: .85rem; }
.tc-certificate { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: white; border: 2px solid var(--green, #006233); }
.tc-certificate p { margin: 6px 0; line-height: 1.45; }

/* Formation : leçons et QCM */
.quiz-start { display: block; width: 100%; margin: 14px 0; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--brand, #006b3c); color: white; font: inherit; font-weight: 900; font-size: 1rem; }
.quiz-secondary { display: block; width: 100%; margin: 8px 0; min-height: 48px; border: 2px solid var(--brand, #006b3c); border-radius: 16px; background: white; color: var(--brand, #006b3c); font: inherit; font-weight: 800; }
.course-source-note { margin: 10px 0 0; font-size: .8rem; opacity: .7; }
.course-module { cursor: pointer; }
.course-module.current { outline: 2px solid var(--brand, #006b3c); }
.quiz-title { margin: 4px 0 12px; }
.quiz-bar { height: 6px; margin: 8px 0 14px; border-radius: 99px; background: #e3eee6; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--orange, #e8891d); border-radius: 99px; transition: width .3s; }
.quiz-question { font-size: 1.15rem; line-height: 1.35; margin: 0 0 14px; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice { min-height: 54px; padding: 12px 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 16px; background: white; text-align: start; font: inherit; font-weight: 700; line-height: 1.35; color: inherit; }
.quiz-choice.ok { border-color: #1f8a4c; background: #e7f6ec; }
.quiz-choice.ko { border-color: #c0392b; background: #fdecea; }
.quiz-choice:disabled { opacity: 1; }
.quiz-feedback { margin-top: 14px; padding: 14px; border-radius: 16px; background: white; border: 2px solid var(--line, #e3d8c3); }
.quiz-feedback.ok { border-color: #1f8a4c; }
.quiz-feedback.ko { border-color: #c0392b; }
.quiz-feedback p { margin: 8px 0 0; line-height: 1.45; }
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-score { font-size: 2.6rem; font-weight: 900; margin: 6px 0; color: var(--brand, #006b3c); }
.quiz-stars { font-size: 1.6rem; margin: 0; min-height: 1.6rem; }
.quiz-badge { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: #fff3d7; font-weight: 800; }
.quiz-final { margin-top: 16px; padding: 14px; border-radius: 18px; background: #fff; border: 2px dashed var(--orange, #e8891d); }
.quiz-final h4 { margin: 0 0 6px; }
.quiz-final p { margin: 4px 0; line-height: 1.4; }

/* Dictée et mémos vocaux */
.field-voice-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-voice-row strong { font-size: .95rem; }
.voice-button { min-height: 40px; border: 2px solid rgba(0, 122, 69, .28); border-radius: 999px; padding: 6px 12px; color: #00542f; background: #eef9f2; font: inherit; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.voice-button.recording, .voice-add-button.recording { border-color: var(--red); color: #fff; background: var(--red); animation: voice-pulse 1.2s infinite; }
@keyframes voice-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.voice-clips { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #eef9f2; border: 2px solid #bfe3cc; }
.voice-clips > strong { color: #00542f; font-size: .9rem; }
.voice-clip { display: flex; align-items: center; gap: 8px; }
.voice-clip audio { flex: 1; min-width: 0; height: 40px; }
.voice-clip button { min-height: 40px; border: 2px solid rgba(212, 40, 40, .28); border-radius: 10px; padding: 4px 10px; color: var(--red); background: #fff; font: inherit; font-weight: 800; }
.field-note-audio { display: grid; gap: 8px; margin-top: 14px; }
.field-note-audio audio { width: 100%; height: 40px; }
.voice-add-button { width: 100%; min-height: 46px; margin-top: 14px; border: 2px solid rgba(0, 122, 69, .28); border-radius: 12px; padding: 8px 10px; color: #00542f; background: #eef9f2; font: inherit; font-weight: 850; }
.voice-add-button + .field-note-actions { margin-top: 9px; }

/* Météo agricole */
.wx-card { margin-bottom: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line, #e3d8c3); box-shadow: 0 8px 22px rgba(70, 48, 15, .06); }
.wx-card h2 { margin: 0 0 10px; font-size: 1.1rem; color: var(--green, #006233); }
.wx-card h3 { margin: 14px 0 6px; font-size: .95rem; }
.wx-empty { display: grid; gap: 12px; }
.wx-empty p { margin: 6px 0 0; opacity: .75; }
.wx-enable, .wx-refresh { min-height: 46px; border: 0; border-radius: 14px; padding: 8px 14px; color: #fff; background: var(--green, #006233); font: inherit; font-weight: 800; }
.wx-refresh { min-height: 40px; font-size: .85rem; }
.wx-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wx-heading strong { display: block; font-size: 1.1rem; color: var(--green, #006233); }
.wx-heading span { font-size: .8rem; opacity: .7; }
.wx-offline { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff3d7; color: #68430e; font-weight: 700; font-size: .85rem; }
.wx-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.wx-icon { font-size: 2.6rem; line-height: 1; }
.wx-now > div:nth-child(2) b { display: block; font-size: 1.8rem; }
.wx-now dl { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 18px; margin: 0; margin-inline-start: auto; }
.wx-now dt { font-size: .75rem; opacity: .7; }
.wx-now dd { margin: 0; font-weight: 800; }
.wx-level { padding: 12px 14px; border-radius: 14px; display: grid; gap: 4px; }
.wx-level.good { background: #e6f5eb; color: #00542f; }
.wx-level.watch { background: #fff3d7; color: #68430e; }
.wx-level.bad { background: #fde8e4; color: #9b2c1c; }
.wx-level span { font-size: .88rem; font-weight: 700; }
.wx-windows { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.wx-hint { margin: 10px 0 0; font-size: .82rem; opacity: .75; line-height: 1.4; }
.wx-days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wx-day { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; background: #fffaf0; border: 1px solid var(--line, #e3d8c3); }
.wx-day b { font-size: 1.6rem; }
.wx-day small { font-size: .74rem; opacity: .8; }
.wx-source { display: inline-block; margin-top: 12px; font-size: .78rem; color: inherit; opacity: .7; }
.note-weather { display: grid; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #eef7ef; font-size: .85rem; }
.note-weather strong { color: var(--green, #006233); }

/* QCM d'entraînement sur le catalogue */
.quiz-catalogue { margin-top: 14px; }
.quiz-loading { margin: 18px 0; text-align: center; opacity: .75; font-weight: 700; }

/* Cultures & maladies */
.cm-heading { margin: 0 0 12px; font-size: 1.25rem; color: var(--green, #006233); }
.cm-heading small { display: block; margin-top: 2px; font-size: .85rem; font-weight: 700; opacity: .75; color: inherit; }
.cm-search { width: 100%; min-height: 50px; margin-bottom: 14px; padding: 10px 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 14px; background: #fff; font: inherit; font-size: 1.05rem; }
.cm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cm-crop, .cm-org, .cm-product { display: grid; gap: 3px; text-align: start; padding: 12px 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 14px; background: #fff; font: inherit; color: inherit; }
.cm-crop strong, .cm-org strong, .cm-product strong { font-size: 1rem; }
.cm-crop small, .cm-org small, .cm-product small { font-size: .78rem; opacity: .72; }
.cm-section { margin: 0 0 18px; }
.cm-section h4 { margin: 0 0 8px; font-size: 1rem; }
.cm-list { display: grid; gap: 8px; }
.cm-product { position: relative; }
.cm-expired { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #fde8e4; color: #9b2c1c; font-size: .72rem; font-style: normal; font-weight: 800; }
.cm-hint { margin: 10px 0; font-size: .86rem; opacity: .78; line-height: 1.45; }
.cm-catalogue { width: 100%; min-height: 48px; margin: 12px 0; border: 2px solid var(--green, #006233); border-radius: 14px; background: #fff; color: var(--green, #006233); font: inherit; font-weight: 800; }
.cm-source { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #fff3d7; color: #68430e; font-size: .85rem; }
.cm-source summary { cursor: pointer; font-weight: 800; }
.cm-source p { margin: 8px 0 0; line-height: 1.45; }
.cm-none { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: #fff3d7; color: #68430e; }
.cm-none strong { display: block; line-height: 1.4; }
.cm-none p { margin: 8px 0 0; font-size: .86rem; line-height: 1.45; }
.cm-sub { margin: 16px 0 8px; font-size: .95rem; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cm-chips span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e3d8c3); font-size: .82rem; font-weight: 700; }
.cm-org-empty { background: #fffaf0; }

/* Sites utiles */
.site-intro { margin: 0 0 6px; line-height: 1.45; opacity: .8; }
.site-section { margin: 20px 0 10px; font-size: 1.15rem; color: var(--green, #006233); }
.site-list { display: grid; gap: 10px; }
.site-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 14px; border: 2px solid var(--line, #e3d8c3); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; }
.site-card:active { transform: scale(.99); }
.site-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #fff; font-weight: 900; font-size: .95rem; letter-spacing: .02em; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.site-badge-small { font-size: .72rem; }
.site-body { display: grid; gap: 5px; min-width: 0; }
.site-body strong { font-size: 1.05rem; line-height: 1.3; }
.site-body strong span { color: var(--green, #006233); font-weight: 700; }
.site-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: #e6f5eb; color: #00542f; font-style: normal; font-weight: 800; font-size: .8rem; }
.site-text { line-height: 1.45; font-size: .95rem; }
.site-meta { font-size: .8rem; opacity: .7; }
.site-meta b { font-weight: 800; }
.site-notice { margin: 18px 0 0; padding: 11px 13px; border-radius: 12px; background: #fff3d7; color: #68430e; font-size: .85rem; line-height: 1.45; }
.site-logo { background: #fff; border: 1px solid var(--line, #e3d8c3); overflow: hidden; padding: 0; }
.site-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Calculer un engrais */
.en-tabs { margin-bottom: 14px; }
.en-tabs button { flex: 1 1 45%; font-size: .9rem; }
.en-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 6px; align-items: center; }
.en-formula input { text-align: center; font-weight: 800; }
.en-formula span { font-weight: 900; opacity: .6; }
.en-intro { margin: 0 0 12px; }
.en-price-row { padding: 12px 14px; margin-bottom: 10px; border: 2px dashed var(--line, #e3d8c3); border-radius: 16px; background: #fffaf0; }
.en-remove { min-height: 40px; padding: 4px 12px; border: 2px solid rgba(212, 40, 40, .28); border-radius: 10px; background: #fff; color: #9b2c1c; font: inherit; font-weight: 800; }
.en-price-result { padding: 10px 0 6px; border-bottom: 2px solid #d7eadb; }
.en-price-result:last-of-type { border-bottom: 0; }
.en-best { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; background: #fff3d7; color: #8f4b00; font-weight: 800; }
.en-needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.en-needs label { display: grid; gap: 4px; font-weight: 800; text-align: center; }
.en-needs input { text-align: center; }
.en-ref { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: #fffaf0; border: 2px dashed var(--line, #e3d8c3); }
.en-ref summary { cursor: pointer; font-weight: 800; color: var(--green, #006233); }
.en-ref table, .en-balance { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .85rem; }
.en-ref th, .en-ref td, .en-balance th, .en-balance td { padding: 6px 4px; border-bottom: 1px solid #e7dcc6; text-align: center; }
.en-ref td:first-child, .en-balance td:first-child { text-align: start; font-weight: 700; }
.en-check { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 4px 0 6px; }
.en-check input { width: 22px; height: 22px; }
.en-sub { margin: 14px 0 4px; font-size: 1rem; color: var(--green, #006233); }
.en-ok { color: #00542f; font-style: normal; font-weight: 800; }
.en-over { color: #8f4b00; font-style: normal; font-weight: 800; }
.en-short { color: #9b2c1c; font-style: normal; font-weight: 800; }
.en-warn { padding: 10px 12px; border-radius: 12px; background: #fff3d7; color: #68430e; }
.en-mix { display: grid; gap: 6px; margin: 8px 0; }
.en-mix-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px solid #d7eadb; }
.en-mix-row b { font-size: .85rem; white-space: nowrap; }
.en-mix-N { border-color: #f1b3a8; background: #fde8e4; } .en-mix-N b { color: #9b2c1c; }
.en-mix-P { border-color: #f3d48a; background: #fff3d7; } .en-mix-P b { color: #8f4b00; }
.en-mix-O b { color: #00542f; }
.en-sal td:nth-child(2) { white-space: nowrap; text-align: start; }
.en-bar { display: inline-block; width: 60px; height: 8px; margin-inline-end: 6px; border-radius: 4px; background: #e7dcc6; vertical-align: middle; overflow: hidden; }
.en-bar i { display: block; height: 100%; background: #c9822b; }
.en-comp { display: block; font-size: .72rem; opacity: .7; font-weight: 600; }
.en-mix-row span { display: flex; gap: 6px; align-items: flex-start; }

/* Formation : choix du cours (Cours 01 pesticides, Cours 02 engrais…) */
.course-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0 0 .9rem; }
.course-switch button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; min-height: 3.4rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink, #17331f); text-align: start; font: inherit; cursor: pointer; }
.course-switch button > span { grid-row: 1 / span 2; font-size: 1.35rem; line-height: 1; }
.course-switch small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.course-switch strong { font-size: .9rem; line-height: 1.15; }
.course-switch button.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(0, 84, 47, .2); }
.course-switch button.active small { opacity: .85; }

/* Produits OCP et NUTRIDROP® (v43) */
.tc-result:empty { display: none; }
.en-gap { margin-top: 12px; }
.en-ocp-list { display: grid; gap: 10px; }
.en-ocp-card { border: 2px solid #e3d8c3; border-radius: 18px; background: #fff; overflow: hidden; }
.en-ocp-card.open { border-color: #8fd3a9; box-shadow: 0 8px 20px rgba(0, 98, 51, .08); }
.en-ocp-head { position: relative; display: grid; gap: 6px; width: 100%; padding: 12px 38px 12px 14px; border: 0; background: transparent; font: inherit; color: inherit; text-align: start; cursor: pointer; }
[dir="rtl"] .en-ocp-head { padding: 12px 14px 12px 38px; }
.en-ocp-head strong { font-size: 1rem; color: var(--green, #006233); unicode-bidi: plaintext; }
.en-ocp-head small { color: #6f6455; font-weight: 600; line-height: 1.35; }
.en-ocp-arrow { position: absolute; top: 12px; inset-inline-end: 14px; font-style: normal; font-size: 1.4rem; line-height: 1; color: #9a8d78; transition: transform .2s ease; }
.en-ocp-card.open .en-ocp-arrow { transform: rotate(90deg); }
.en-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.en-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: .74rem; font-weight: 900; direction: ltr; }
.en-chip-n { background: #e3efff; color: #1d5fa8; } .en-chip-p { background: #ffe9d6; color: #a2470b; } .en-chip-k { background: #efe6ff; color: #5b3fb5; }
.en-chip-s { background: #fff5c2; color: #7a5d00; } .en-chip-b { background: #dcf5ef; color: #0d7766; } .en-chip-zn { background: #e9edf0; color: #44525d; } .en-chip-ca { background: #f1f4e3; color: #4f6413; }
.en-ocp-sheet { padding: 2px 14px 14px; border-top: 2px dashed #eadfca; }
.en-ocp-sheet h4 { margin: 14px 0 6px; font-size: .9rem; color: var(--green, #006233); }
.en-ocp-sheet p, .en-ocp-sheet ul { margin: 0; line-height: 1.45; }
.en-ocp-sheet ul { padding-inline-start: 18px; }
.en-ocp-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0e7d6; }
.en-ocp-row span { color: #6f6455; font-weight: 700; }
.en-ocp-row b { text-align: end; unicode-bidi: plaintext; }
.en-na { color: #9a8d78; font-style: italic; font-weight: 700; }
.en-crops { display: flex; flex-wrap: wrap; gap: 6px; }
.en-crops span { padding: 4px 10px; border-radius: 99px; background: #eef7ef; color: #1f5a35; font-size: .82rem; font-weight: 800; }
.en-ocp-sheet .en-warn { margin-top: 14px; }
.en-ocp-sheet .en-warn ul { margin-top: 4px; }
.en-ocp-actions { display: grid; gap: 8px; margin-top: 16px; }
.en-ocp-actions .cm-catalogue { width: 100%; margin: 0; }
.en-ocp-primary { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--green, #006233); color: #fff; font: inherit; font-weight: 900; box-shadow: 0 6px 14px rgba(0, 98, 51, .2); cursor: pointer; }
.en-ocp-src { margin-top: 10px !important; font-size: .78rem; }
.en-ocp-link { margin-top: 6px; padding: 6px 12px; border: 2px solid #cfe9d6; border-radius: 99px; background: #f3fbf5; color: var(--green, #006233); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.en-sol-ok { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #e9f8ee; color: #1f7a43; font-weight: 800; }

/* Photos des interventions (v47), reprises de Carnet Mohamed */
.photo-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.photo-source { min-height: 76px; border: 2px solid rgba(0, 122, 69, .23); border-radius: 14px; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--green, #006233); background: #f6fbf7; font-weight: 800; cursor: pointer; }
.photo-source span { font-size: 1.45rem; }
.photo-source:has(input:disabled) { opacity: .55; pointer-events: none; }
.photo-progress { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; color: var(--green, #006233); background: #e6f5eb; font-size: .88rem; font-weight: 800; }
.photo-attachments { margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff8ea; }
.photo-attachments > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.photo-attachments figure { position: relative; margin: 0; }
.photo-attachments img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
#notebook .photo-attachments button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; line-height: 1; border: 0; border-radius: 50%; color: #fff; background: rgba(173, 24, 24, .9); font-size: 1.05rem; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
html[dir="rtl"] #notebook .photo-attachments button { right: auto; left: 4px; }
.photo-note { margin: 8px 0 0; color: #6f6455; font-size: .8rem; line-height: 1.4; }
.field-note-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.field-note-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
