/* Styles limités au composant Enculette. Le reste du CMS reste natif. */
.ecl-scores { color: #18302f; font: inherit; min-width: 0; }
.ecl-scores *, .ecl-scores *::before, .ecl-scores *::after { box-sizing: border-box; }
.ecl-scores h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.ecl-scores p { line-height: 1.5; margin: .5rem 0; }
.ecl-scores .ecl-panel { border: 1px solid #b8ccca; border-radius: 8px; padding: 1rem; margin: 1rem 0; background: #fff; }
.ecl-scores .ecl-help { color: #455d5a; font-size: .93rem; }
.ecl-scores .ecl-error { color: #9b2828; font-size: .9rem; margin: .4rem 0; }
.ecl-scores .ecl-status { background: #eff7f3; border-left: 3px solid #257553; padding: .75rem; }
.ecl-scores .ecl-warning { color: #795411; background: #fff8e6; padding: .6rem; border-radius: 4px; }
.ecl-scores .ecl-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; font-weight: 600; }
.ecl-scores input:not([type=checkbox]), .ecl-scores select, .ecl-scores textarea { width: 100%; min-height: 44px; border: 1px solid #9bb7b3; border-radius: 5px; background: white; color: #18302f; font: inherit; font-size: 16px; padding: .65rem; font-weight: 400; }
.ecl-scores input[aria-invalid=true] { border-color: #b43838; }
.ecl-scores textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.ecl-scores textarea[readonly] { background: #f3f6f5; }
.ecl-scores .ecl-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; }
.ecl-scores .ecl-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; }
.ecl-scores button { min-height: 44px; border: 1px solid #69918b; border-radius: 5px; padding: .6rem .9rem; background: #fff; color: #184d44; cursor: pointer; font: inherit; font-weight: 600; white-space: normal; }
.ecl-scores button.ecl-primary { background: #185d50; color: #fff; border-color: #185d50; }
.ecl-scores button.ecl-danger { color: #962d2d; border-color: #ca8c8c; }
.ecl-scores button:disabled { opacity: .5; cursor: default; }
.ecl-scores :focus-visible { outline: 3px solid #d79e22; outline-offset: 3px; }
.ecl-scores .ecl-check { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.4; font-weight: 600; }
.ecl-scores input[type=checkbox] { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; }
.ecl-scores .ecl-raw { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; color: #596b68; }
.ecl-scores .ecl-excluded { background: #f5f5f5; }
.ecl-scores .ecl-confirm { border: 1px solid #cb7777; background: #fff7f7; border-radius: 5px; padding: .75rem; margin-top: .75rem; }
.ecl-scores .ecl-row-title { font-weight: 700; margin-bottom: .75rem; }
.ecl-scores .ecl-summary { padding: .7rem 0; border-bottom: 1px solid #dce6e4; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .ecl-scores .ecl-grid { grid-template-columns: minmax(0, 1fr); }
  .ecl-scores .ecl-panel { padding: .75rem; }
  .ecl-scores .ecl-actions button { flex: 1 1 auto; }
}

/* Decap 3.16.3 retains an 800px editor minimum and a horizontal split.
   These version-pinned Emotion target classes are scoped to its editor.
   On phones the optional native preview moves below the full-width form. */
@media (max-width: 799px) {
  html, body { min-width: 0; width: 100%; }

  .e1nx103k5 {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw;
    height: 100vh !important;
    height: 100dvh !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .e1d2l9mo22 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
  }
  .e1d2l9mo18 {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    height: auto !important;
    padding: 4px 8px !important;
    border-right: 0 !important;
  }
  .e1d2l9mo17 {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 44px;
    height: auto !important;
    padding: 0 4px !important;
    border-left: 0 !important;
  }
  .e1d2l9mo21 {
    order: 3;
    flex: 1 0 100% !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 44px;
    padding: 0 !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .e1d2l9mo20, .e1d2l9mo19 {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px;
  }
  .e1d2l9mo22 button, .e1d2l9mo22 a {
    min-height: 44px;
    max-width: 100%;
  }
  .e1d2l9mo22 button { margin-left: 0 !important; margin-right: 0 !important; }

  .e1nx103k4 {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    margin: 0;
    overflow: hidden;
  }
  .e1nx103k7 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .e1nx103k7 > .Pane {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    flex: none !important;
  }
  .e1nx103k7 > .Pane1 { min-height: 100%; }
  .e1nx103k7 > .Resizer { display: none !important; }
  .e1nx103k7 > .Pane2 {
    min-height: 360px;
    height: 55vh !important;
    height: 55dvh !important;
    border-top: 2px solid #b8ccca;
    margin-top: 16px;
  }
  .e1nx103k2 {
    width: 100%;
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
    padding: 56px 12px 20px !important;
  }
  .e11hw0lx4 { width: 100%; min-width: 0; max-width: 100%; }
  .e1nx103k6 {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .e1nx103k3, #preview-pane { width: 100% !important; max-width: 100%; }
  .e1nx103k0 { top: 8px !important; right: 8px !important; }
}
