/* ==========================================================================
       26. PLUGINS : IMPORTER UNE SECTION & CRÉER UN STYLE PERSONNALISÉ
       ========================================================================== */
    .theme-card {
      position: relative;
    }
    .theme-card-del {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(17, 19, 24, 0.85);
      color: #9ca3af;
      font-size: 10px;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
      opacity: 0;
      transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    }
    .theme-card:hover .theme-card-del,
    .theme-card-del:focus {
      opacity: 1;
    }
    .theme-card-del:hover {
      background: #dc2626;
      border-color: #dc2626;
      color: #ffffff;
    }
    .theme-badge-custom {
      display: inline-block;
      margin-top: 3px;
      font-size: 9.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #a5b4fc;
    }

    /* Modales génériques Plugin (Section & Thème) */
    .studio-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1490;
      background: rgba(8, 10, 16, 0.8);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      font-family: 'Inter', system-ui, sans-serif;
    }
    .studio-modal-backdrop.is-open {
      display: flex;
    }
    .studio-modal-dialog {
      width: min(720px, 96vw);
      max-height: 88vh;
      background: #111318;
      color: #f3f4f6;
      border: 1px solid #272c38;
      border-radius: 14px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      font-size: 12.5px;
    }
    .studio-modal-dialog.is-compact {
      width: min(520px, 95vw);
    }
    .studio-modal-tabs {
      display: flex;
      gap: 6px;
      padding: 10px 18px;
      background: #151821;
      border-bottom: 1px solid #272c38;
    }
    .studio-modal-tab {
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: #9ca3af;
      font-family: inherit;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }
    .studio-modal-tab.active {
      background: #1f2430;
      border-color: #2f3545;
      color: #ffffff;
    }
    .studio-modal-pane {
      display: none;
      flex-direction: column;
      gap: 12px;
    }
    .studio-modal-pane.active {
      display: flex;
    }
    .studio-code-area {
      width: 100%;
      min-height: 110px;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #2b3140;
      background: #0c0e13;
      color: #a5f3fc;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      line-height: 1.48;
      resize: vertical;
      outline: none;
    }
    .studio-code-area:focus {
      border-color: #6366f1;
    }
    .studio-code-area.is-tall {
      min-height: 240px;
    }
    .variant-builder-card {
      background: #181c25;
      border: 1px solid #272c38;
      border-radius: 10px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .variant-builder-head {
      display: grid;
      grid-template-columns: 0.7fr 1.3fr auto;
      gap: 8px;
      align-items: center;
    }
    .studio-hint-box {
      padding: 9px 12px;
      border-radius: 8px;
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.28);
      color: #c7d2fe;
      font-size: 11.5px;
      line-height: 1.45;
    }
    .studio-hint-box code {
      font-family: 'JetBrains Mono', monospace;
      color: #ffffff;
    }

    /* Accessibilité */
    @media (prefers-reduced-motion: reduce) {
      body.anim-enabled [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
        transition: none !important;
      }
    }

    /* ==========================================================================
       27. AJOUT MULTIPLE DE SECTIONS (PICKER & ZONE D'INSERTION)
       ========================================================================== */
    .block-insert-zone {
      display: none;
      align-items: center;
      justify-content: center;
      height: 26px;
      margin-block: -13px;
      position: relative;
      z-index: 45;
      pointer-events: none;
    }
    body.edit-mode .block-insert-zone {
      display: flex;
    }
    body.edit-mode #main-sections > .block-insert-zone:first-child:not(:only-child) {
      margin-block: -13px;
      transform: translateY(13px);
      z-index: 135;
    }
    body.edit-mode #main-sections > .block-insert-zone:only-child {
      height: 52px;
      margin-block: 16px;
      pointer-events: auto;
    }
    .block-insert-zone::before {
      content: '';
      position: absolute;
      left: 4%;
      right: 4%;
      top: 50%;
      height: 2px;
      background: #6366f1;
      opacity: 0;
      transition: opacity 0.16s ease;
      pointer-events: none;
    }
    .block-insert-btn {
      position: relative;
      z-index: 2;
      padding: 5px 13px;
      border-radius: 999px;
      border: 1px solid #818cf8;
      background: #4f46e5;
      color: #ffffff;
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.2;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: scale(0.94);
      transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
      box-shadow: 0 6px 18px rgba(17, 19, 24, 0.36);
    }
    .block-insert-btn:hover {
      background: #4338ca;
    }
    body.edit-mode .block-insert-zone:has(.block-insert-btn:hover)::before,
    body.edit-mode .block-insert-zone:focus-within::before,
    body.edit-mode [data-block-id]:hover + .block-insert-zone::before,
    body.edit-mode .block-insert-zone:has(+ [data-block-id]:hover)::before,
    body.edit-mode #slot-header:hover + #main-sections > .block-insert-zone:first-child::before,
    body.edit-mode.show-badges .block-insert-zone::before {
      opacity: 1;
    }
    body.edit-mode .block-insert-zone .block-insert-btn:hover,
    body.edit-mode .block-insert-zone:focus-within .block-insert-btn,
    body.edit-mode [data-block-id]:hover + .block-insert-zone .block-insert-btn,
    body.edit-mode .block-insert-zone:has(+ [data-block-id]:hover) .block-insert-btn,
    body.edit-mode #slot-header:hover + #main-sections > .block-insert-zone:first-child .block-insert-btn,
    body.edit-mode #main-sections > .block-insert-zone:only-child .block-insert-btn,
    body.edit-mode.show-badges .block-insert-btn {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1);
    }

    .picker-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    @media (max-width: 540px) {
      .picker-grid { grid-template-columns: 1fr; }
    }
    .picker-card {
      text-align: left;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid #272c38;
      background: #181c25;
      color: #f3f4f6;
      cursor: pointer;
      font-family: inherit;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    }
    .picker-card:hover {
      border-color: #6366f1;
      background: #1f2536;
      transform: translateY(-1px);
    }
    .picker-card strong {
      font-size: 13px;
      color: #ffffff;
    }
    .picker-card span {
      font-size: 11px;
      color: #9ca3af;
    }
    .studio-btn-catalog {
      background: #1e293b;
      border-color: #334155;
      color: #e2e8f0;
    }
    .studio-btn-catalog:hover {
      background: #334155;
      color: #ffffff;
    }
    .studio-btn-catalog.is-dirty {
      background: #f59e0b;
      border-color: #f59e0b;
      color: #1c1917;
      font-weight: 700;
    }
    .studio-btn-catalog.is-dirty:hover {
      background: #d97706;
      color: #ffffff;
    }
    .section-block-id {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: #64748b;
      font-weight: 500;
    }


    /* ==========================================================================
       28. ÉLÉMENTS RÉPÉTITIFS EN MANIPULATION DIRECTE (+, ←, →, ×)
       ========================================================================== */
    body.edit-mode [data-repeat-item] {
      position: relative;
    }
    body.edit-mode [data-repeat-item]:hover {
      outline: 1.5px dashed rgba(16, 185, 129, 0.75);
      outline-offset: 2px;
    }
    body.edit-mode .ui-card:hover {
      transform: none;
    }
    .repeat-item-tools {
      position: absolute;
      top: 6px;
      right: 6px;
      z-index: 40;
      display: none;
      align-items: center;
      gap: 3px;
      padding: 3px;
      border-radius: 999px;
      background: #111318;
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.14s ease;
      font-family: 'Inter', system-ui, sans-serif;
    }
    body.edit-mode [data-repeat-item]:hover > .repeat-item-tools,
    body.edit-mode .repeat-item-tools:hover,
    body.edit-mode .repeat-item-tools:focus-within {
      opacity: 1;
      pointer-events: auto;
    }
    body.edit-mode [data-repeat-item] > .repeat-item-tools {
      display: inline-flex;
    }
    .repeat-tool-btn {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 0;
      background: rgba(255, 255, 255, 0.12);
      color: #f3f4f6;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
      transition: background-color 0.14s ease, color 0.14s ease;
    }
    .repeat-tool-btn:hover:not(:disabled) {
      background: #4f46e5;
      color: #ffffff;
    }
    .repeat-tool-btn.is-add:hover {
      background: #10b981;
      color: #052e16;
    }
    .repeat-tool-btn.is-del:hover:not(:disabled) {
      background: #dc2626;
      color: #ffffff;
    }
    .repeat-tool-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }


    /* ==========================================================================
       29. RECADRAGE IMAGE & CONVERSION WEBP (CANVAS INTERACTIF)
       ========================================================================== */
    .crop-stage-wrap {
      position: relative;
      width: 100%;
      background: #090b10;
      border: 1px solid #272c38;
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      user-select: none;
      touch-action: none;
    }
    #crop-canvas {
      max-width: 100%;
      max-height: 360px;
      border-radius: 6px;
      cursor: grab;
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.85), 0 12px 30px rgba(0, 0, 0, 0.5);
      background: repeating-conic-gradient(#1a1e28 0% 25%, #12151d 0% 50%) 50% / 16px 16px;
    }
    #crop-canvas:active {
      cursor: grabbing;
    }
    .crop-controls-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    @media (max-width: 540px) {
      .crop-controls-grid { grid-template-columns: 1fr; }
    }
    .crop-meta-bar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 8px;
      background: #181c25;
      border: 1px solid #272c38;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: #a5b4fc;
    }


    /* ==========================================================================
       30. GESTION MULTI-PAGES & SEO
       ========================================================================== */
    .pages-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .page-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 9px;
      background: var(--st-surface);
      border: 1px solid var(--st-border);
      cursor: pointer;
      transition: border-color 0.15s ease, background-color 0.15s ease;
    }
    .page-row:hover {
      border-color: #3f475c;
      background: #1f2433;
    }
    .page-row.active {
      border-color: #818cf8;
      background: rgba(99, 102, 241, 0.16);
    }
    .page-row-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
      flex: 1;
    }
    .page-row-title {
      font-weight: 600;
      font-size: 12.5px;
      color: #ffffff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .page-row-slug {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      color: #9ca3af;
    }
    .seo-card {
      padding: 11px;
      border-radius: 10px;
      background: var(--st-surface);
      border: 1px solid var(--st-border);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .seo-serp-preview {
      padding: 10px 12px;
      border-radius: 8px;
      background: #ffffff;
      color: #202124;
      font-family: Arial, sans-serif;
      line-height: 1.35;
    }
    .seo-serp-url {
      font-size: 11px;
      color: #4d5156;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .seo-serp-title {
      font-size: 14px;
      font-weight: 600;
      color: #1a0dab;
      margin: 2px 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .seo-serp-desc {
      font-size: 11.5px;
      color: #4d5156;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .seo-counter.is-warn {
      color: #f59e0b;
    }


    /* ==========================================================================
       31. BARRE FLOTTANTE "DYNAMIC ISLAND" & MODE CLIENT / PRO
       ========================================================================== */
    #edit-mode-fab,
    #studio-toggle {
      display: none !important;
    }

    #floating-dock {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      z-index: 1020;
      display: inline-flex;
      align-items: center;
      gap: 14px;
      max-width: calc(100vw - 20px);
      transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
      font-family: 'Inter', system-ui, sans-serif;
    }

    @media (min-width: 1140px) {
      body.studio-open #floating-dock {
        left: calc(50% - 184px);
      }
    }

    #publish-dock-pill {
      display: inline-flex;
      align-items: center;
      padding: 6px;
      border-radius: 999px;
      background: rgba(15, 18, 25, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      flex-shrink: 0;
    }

    #dynamic-island {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px;
      border-radius: 999px;
      background: rgba(15, 18, 25, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .island-save-btn {
      padding: 8px 13px !important;
      gap: 7px;
      border: 1px solid rgba(16, 185, 129, 0.35);
      background: rgba(16, 185, 129, 0.12);
      color: #d1fae5;
    }
    .island-save-btn:hover {
      background: rgba(16, 185, 129, 0.24);
      color: #ffffff;
    }
    .island-save-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #10b981;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
      flex-shrink: 0;
      transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .island-save-btn.is-dirty {
      border-color: rgba(245, 158, 11, 0.55);
      background: rgba(245, 158, 11, 0.18);
      color: #fef3c7;
    }
    .island-save-btn.is-dirty:hover {
      background: rgba(245, 158, 11, 0.3);
      color: #ffffff;
    }
    .island-save-btn.is-dirty .island-save-dot {
      background: #f59e0b;
      box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.32);
    }
    .island-view-link {
      text-decoration: none;
      color: #6ee7b7;
    }
    .island-view-link:hover {
      background: rgba(16, 185, 129, 0.18);
      color: #a7f3d0;
    }
    .pub-choice-card {
      text-align: left;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid #272c38;
      background: #181c25;
      color: #f3f4f6;
      cursor: pointer;
      font-family: inherit;
      display: flex;
      align-items: flex-start;
      gap: 11px;
      transition: border-color 0.15s ease, background-color 0.15s ease;
    }
    .pub-choice-card:hover,
    .pub-choice-card.is-selected {
      border-color: #6366f1;
      background: rgba(99, 102, 241, 0.14);
    }

    .island-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 13px;
      border-radius: 999px;
      border: 0;
      background: transparent;
      color: #e5e7eb;
      font-family: inherit;
      font-size: 12.5px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      white-space: nowrap;
      transition: background-color 0.16s ease, color 0.16s ease;
    }
    .island-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
    }
    .island-btn.is-active {
      background: rgba(99, 102, 241, 0.24);
      color: #c7d2fe;
    }
    .island-btn.is-edit-on {
      background: #4f46e5;
      color: #ffffff;
    }
    .island-btn.is-publish {
      background: #0ea5e9;
      color: #082f49;
      font-weight: 700;
    }
    .island-btn.is-publish:hover {
      background: #38bdf8;
      color: #082f49;
    }
    .island-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #6b7280;
    }
    .island-btn.is-edit-on .island-dot {
      background: #4ade80;
      box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
    }
    .island-sep {
      width: 1px;
      height: 18px;
      background: rgba(255, 255, 255, 0.14);
      margin-inline: 2px;
    }
    .island-edit-group {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      border-radius: 999px;
      transition: background-color 0.18s ease, box-shadow 0.18s ease;
    }
    body.edit-mode .island-edit-group {
      background: #4f46e5;
      padding-right: 3px;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
    }
    body.edit-mode .island-edit-group #island-edit {
      background: transparent;
    }
    .island-inspect-btn {
      display: none;
      padding: 5px 9px;
      font-size: 11px;
      font-weight: 700;
      border-radius: 999px;
      background: rgba(15, 18, 25, 0.34);
      color: #e0e7ff;
      border: 1px solid rgba(255, 255, 255, 0.18);
    }
    body.pro-mode.edit-mode .island-inspect-btn {
      display: inline-flex;
    }
    .island-inspect-btn:hover {
      background: rgba(15, 18, 25, 0.55);
      color: #ffffff;
    }
    body.pro-mode.edit-mode.pro-inspector .island-inspect-btn {
      background: #f59e0b;
      border-color: #fde68a;
      color: #1c1917;
    }

    /* Mode Client (par défaut) : masque les outils techniques Pro & SuperAdmin */
    body:not(.pro-mode) .pro-only {
      display: none !important;
    }
    body:not(.is-superadmin) .superadmin-only {
      display: none !important;
    }
    body:not(.pro-mode) .studio-tabs {
      grid-template-columns: repeat(2, 1fr);
    }

    /* Indentation de l'arborescence des pages */
    .page-row.is-child {
      margin-left: 16px;
      border-left: 2px solid rgba(129, 140, 248, 0.45);
    }
    .page-row.is-child-2 {
      margin-left: 32px;
      border-left: 2px solid rgba(129, 140, 248, 0.3);
    }
    .link-picker-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      align-items: center;
    }
    @media (max-width: 680px) {
      .link-picker-row { grid-template-columns: 1fr; }
      #floating-dock { bottom: 10px; gap: 6px; }
      #dynamic-island, #publish-dock-pill { padding: 4px; gap: 2px; }
      .island-btn { padding: 7px 8px; font-size: 11.5px; }
    }


    /* ==========================================================================
       32. DYNAMIC ISLAND (ICÔNES + TOOLTIPS + DROPDOWNS) & COLLECTIONS
       ========================================================================== */
    .island-btn {
      position: relative;
      padding: 8px 10px;
    }
    .island-btn[data-tip]::after {
      content: attr(data-tip);
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      padding: 5px 9px;
      border-radius: 7px;
      background: #0b0d12;
      color: #f9fafb;
      border: 1px solid rgba(255, 255, 255, 0.14);
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.14s ease, transform 0.14s ease;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
      z-index: 1050;
    }
    .island-btn[data-tip]:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    .island-btn.is-open-menu::after {
      opacity: 0 !important;
    }
    .island-dropdown-wrap {
      position: relative;
      display: inline-flex;
    }
    .island-popover {
      position: absolute;
      bottom: calc(100% + 12px);
      left: 0;
      min-width: 240px;
      max-width: 300px;
      max-height: 360px;
      overflow-y: auto;
      padding: 8px;
      border-radius: 12px;
      background: #111318;
      border: 1px solid #272c38;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      display: none;
      flex-direction: column;
      gap: 4px;
      z-index: 1060;
    }
    .island-popover.is-open {
      display: flex;
    }
    .island-pop-head {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #9ca3af;
      padding: 4px 8px 6px;
      border-bottom: 1px solid #232836;
      margin-bottom: 2px;
    }
    .island-pop-item {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 7px 9px;
      border-radius: 8px;
      border: 0;
      background: transparent;
      color: #e5e7eb;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      text-align: left;
      cursor: pointer;
    }
    .island-pop-item:hover {
      background: #1e2330;
      color: #ffffff;
    }
    .island-pop-item.is-active {
      background: rgba(99, 102, 241, 0.2);
      color: #c7d2fe;
      font-weight: 600;
    }
    .island-pop-item small {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: #9ca3af;
    }
    .island-pop-footer {
      border-top: 1px solid #232836;
      margin-top: 4px;
      padding-top: 6px;
      display: flex;
      gap: 6px;
    }
    .col-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 8px;
      background: #12151d;
      border: 1px solid #252a38;
    }
    .col-item-row-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
      flex: 1;
    }
    .col-item-row-info strong {
      font-size: 12px;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .col-item-row-info span {
      font-size: 10.5px;
      color: #9ca3af;
    }
    body:not(.pro-mode) .studio-tabs {
      grid-template-columns: repeat(3, 1fr);
    }
    body.pro-mode .studio-tabs {
      grid-template-columns: repeat(5, 1fr);
    }


    /* ==========================================================================
       33. CORRECTIFS MODALE IMAGE, LISTES/FOOTER & PAGE DÉTAIL COLLECTION
       ========================================================================== */
    #image-crop-modal {
      z-index: 1620 !important;
    }
    li[data-repeat-item] > .repeat-item-tools {
      top: auto;
      bottom: calc(100% + 2px);
      right: 0;
    }
    .detail-context-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 9px 11px;
      border-radius: 9px;
      background: rgba(14, 165, 233, 0.16);
      border: 1px solid rgba(56, 189, 248, 0.45);
      color: #e0f2fe;
      font-size: 11.5px;
      margin-bottom: 10px;
    }
    .detail-context-banner strong {
      color: #ffffff;
      display: block;
    }
    .comp-pill-select {
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 999px;
      padding: 2px 7px;
      font-size: 10.5px;
      font-family: inherit;
      cursor: pointer;
      outline: none;
    }
    .comp-pill-select option {
      background: #111318;
      color: #f3f4f6;
    }


    /* ==========================================================================
       34. MODE APERÇU RESPONSIVE (DESKTOP / TABLETTE / MOBILE) & CORRECTIFS
       ========================================================================== */
    .island-pop-footer .studio-btn-secondary {
      background: #1f2430;
      border-color: #363d52;
      color: #f3f4f6;
    }
    .island-pop-footer .studio-btn-secondary:hover {
      background: #2c3344;
      color: #ffffff;
    }
    body.vp-tablet,
    body.vp-mobile {
      background-color: #161a23 !important;
    }
    body.vp-tablet #webizzi-viewport-frame,
    body.vp-mobile #webizzi-viewport-frame {
      position: fixed;
      top: 52px;
      left: 0;
      right: 0;
      bottom: 0;
      padding-top: 0;
      min-height: 0;
      overflow-y: auto;
      background: #161a23 !important;
    }
    #webizzi-phone-shell {
      display: contents;
    }
    body.vp-tablet #webizzi-phone-shell,
    body.vp-mobile #webizzi-phone-shell {
      display: block;
      container: webizzi-preview / inline-size;
      position: relative;
      transform: translateZ(0);
      width: 100%;
      margin-inline: auto;
      background: var(--bg, #ffffff);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 6px #232836, 0 0 0 7px rgba(255, 255, 255, 0.14);
      border-radius: 22px;
      margin-block: 16px 86px;
      overflow: hidden;
    }
    body.vp-tablet #webizzi-phone-shell {
      max-width: 768px;
      height: min(1024px, calc(100vh - 148px));
    }
    body.vp-mobile #webizzi-phone-shell {
      max-width: 390px;
      height: min(844px, calc(100vh - 148px));
    }
    body.vp-tablet #preview-stage,
    body.vp-mobile #preview-stage {
      width: 100%;
      height: 100%;
      min-height: 0;
      background: var(--bg, #ffffff);
      color: var(--text, #111827);
      overflow-y: auto;
      overflow-x: clip;
      scrollbar-width: thin;
      scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
    }

    /* Indicateurs Édition Collection & Inspecteur Pro */
    body.edit-mode [data-col-item-field] {
      cursor: text;
      border-radius: 4px;
    }
    body.edit-mode [data-col-item-field]:hover {
      outline: 1.5px dashed rgba(99, 102, 241, 0.78);
      outline-offset: 3px;
    }
    body.edit-mode [data-col-item-field]:focus {
      outline: 2px solid #6366f1;
      outline-offset: 3px;
      background: rgba(99, 102, 241, 0.08);
    }
    body.edit-mode [data-col-item-img] {
      cursor: pointer !important;
      position: relative;
    }
    body.edit-mode [data-col-item-img]:hover {
      outline: 2px dashed #10b981;
      outline-offset: 3px;
    }
    body.edit-mode [data-col-item-img]::after {
      content: 'Éditer l’image fiche';
      position: absolute;
      top: 8px;
      left: 8px;
      z-index: 15;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.92);
      color: #ffffff;
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s ease;
    }
    body.edit-mode [data-col-item-img]:hover::after {
      opacity: 1;
    }
    body.pro-mode.edit-mode.pro-inspector .pro-uneditable-hover {
      outline: 1.5px dashed #f59e0b !important;
      outline-offset: 3px !important;
      cursor: crosshair !important;
    }



    .brand-logo-img {
      height: 2.15em;
      width: auto;
      max-width: 165px;
      object-fit: contain;
      display: block;
      flex-shrink: 0;
    }

    .brand-asset-box {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 8px;
      background: #12151d;
      border: 1px solid #252a38;
    }
    .brand-asset-thumb {
      width: 38px;
      height: 38px;
      border-radius: 6px;
      background: repeating-conic-gradient(#1f2430 0% 25%, #151821 0% 50%) 50% / 10px 10px;
      border: 1px solid #2b3140;
      display: grid;
      place-items: center;
      overflow: hidden;
      flex-shrink: 0;
      font-size: 10px;
      color: #64748b;
    }
    
    body.auth-locked #preview-stage,
    body.auth-locked #floating-dock,
    body.auth-locked #ui-studio {
      display: none !important;
    }
    #account-modal.is-locked {
      background: #0b0d12;
      z-index: 2000;
    }
    #account-modal.is-locked #acc-close,
    #account-modal.is-locked #acc-done,
    #account-modal.is-locked .studio-modal-tabs {
      display: none !important;
    }

    .brand-asset-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }


    /* ==========================================================================
       35. MODALE MON COMPTE / ADMINISTRATION (GRAND ÉCRAN 24" & CONTRASTE RENFORCÉ)
       ========================================================================== */
    #account-modal:not(.is-locked) .studio-modal-dialog {
      width: min(1080px, 95vw);
      max-height: 90vh;
      background: #0c0f16;
      border: 1px solid #333c4f;
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
      font-size: 13.5px;
    }
    #account-modal .menu-ed-header {
      padding: 18px 26px;
      background: #121722;
      border-bottom: 1px solid #2d3648;
    }
    #account-modal .menu-ed-header h3 {
      font-size: 16px;
    }
    #account-modal .studio-modal-tabs {
      padding: 12px 26px;
      gap: 10px;
      background: #121722;
      border-bottom: 1px solid #2d3648;
    }
    #account-modal .studio-modal-tab {
      padding: 8px 16px;
      font-size: 13px;
      color: #cbd5e1;
    }
    #account-modal .studio-modal-tab.active {
      background: #232b3e;
      border-color: #475569;
      color: #ffffff;
    }
    #account-modal .menu-ed-body {
      padding: 22px 26px;
      gap: 18px;
    }
    #account-modal .menu-ed-footer {
      padding: 16px 26px;
      background: #121722;
      border-top: 1px solid #2d3648;
    }
    #account-modal .seo-card {
      padding: 16px 18px;
      background: #131823;
      border: 1px solid #333c4f;
      gap: 12px;
    }
    #account-modal .col-item-row {
      padding: 12px 14px;
      background: #161b26;
      border: 1px solid #333c4f;
    }
    #account-modal .col-item-row-info strong {
      font-size: 13.5px;
      color: #f8fafc;
    }
    #account-modal .col-item-row-info span {
      font-size: 12px;
      color: #cbd5e1;
    }
    #account-modal .edit-pop-input,
    #account-modal .studio-select {
      background: #0f131c;
      border-color: #3a4459;
      color: #f8fafc;
      font-size: 13px;
      padding: 9px 12px;
    }
    @media (min-width: 960px) {
      #account-modal #acc-sites-list,
      #account-modal .adm-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
    }

    /* ==========================================================================
       36. BARRE TEXTE RICHE ("MODE FULL" : H2/H3/H4, GRAS, ITALIQUE, LIEN, IMAGE, VIDÉO)
       ========================================================================== */
    #rich-text-toolbar {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1460;
      display: none;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
      padding: 5px 7px;
      border-radius: 10px;
      background: #111318;
      color: #f3f4f6;
      border: 1px solid #2e3546;
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 11.5px;
      max-width: min(560px, 94vw);
    }
    #rich-text-toolbar.is-open {
      display: inline-flex;
    }
    .rt-mode-btn {
      padding: 4px 9px;
      border-radius: 7px;
      border: 1px solid #333c4f;
      background: #1a202e;
      color: #cbd5e1;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }
    .rt-mode-btn.is-full {
      background: #4f46e5;
      border-color: #818cf8;
      color: #ffffff;
    }
    .rt-tools-group {
      display: none;
      align-items: center;
      flex-wrap: wrap;
      gap: 3px;
      padding-left: 5px;
      border-left: 1px solid #2b3140;
    }
    #rich-text-toolbar.is-full-active .rt-tools-group {
      display: inline-flex;
    }
    .rt-btn {
      min-width: 26px;
      height: 26px;
      padding: 0 6px;
      border-radius: 6px;
      border: 1px solid transparent;
      background: transparent;
      color: #e2e8f0;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    .rt-btn:hover {
      background: #232938;
      color: #ffffff;
      border-color: #363f54;
    }
    .rt-inline-prompt {
      display: none;
      flex-direction: column;
      gap: 6px;
      width: 100%;
      padding-top: 6px;
      margin-top: 3px;
      border-top: 1px solid #252b38;
    }
    .rt-inline-prompt.is-open {
      display: flex;
    }
    .rt-prompt-row {
      display: flex;
      align-items: center;
      gap: 5px;
      width: 100%;
    }
    .rt-link-opts {
      display: none;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      padding: 2px 2px 1px;
      font-size: 11px;
      color: #cbd5e1;
    }
    .rt-link-opts.is-visible {
      display: flex;
    }
    .rt-link-opt-chk {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      user-select: none;
    }
    .rt-link-opt-chk input {
      accent-color: #6366f1;
      margin: 0;
      cursor: pointer;
    }
    .rt-inline-prompt input {
      flex: 1;
      padding: 5px 8px;
      border-radius: 6px;
      border: 1px solid #333c4f;
      background: #181c25;
      color: #fff;
      font-size: 11.5px;
      outline: none;
    }
    .rt-rich-content h2, .rt-rich-content h3, .rt-rich-content h4 {
      margin: 1.05em 0 0.45em;
      line-height: 1.25;
    }
    .rt-rich-content ul, .rt-rich-content ol {
      padding-left: 1.35em;
      margin: 0.6em 0;
    }
    .rt-media {
      margin: 1em 0;
      border-radius: var(--radius, 8px);
      overflow: hidden;
    }
    .rt-media img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: inherit;
    }
    .rt-video {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      margin: 1em 0;
      border-radius: var(--radius, 8px);
      overflow: hidden;
      background: #000;
    }
    .rt-video iframe, .rt-video video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* Bouton bascule Clair / Sombre dans la barre supérieure Webizzi */
    .webizzi-theme-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 9px;
      border: 1px solid #2a3142;
      background: #141822;
      color: #e2e8f0;
      cursor: pointer;
      padding: 0;
      transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    }
    .webizzi-theme-btn:hover {
      background: #1d2332;
      border-color: #475569;
      color: #ffffff;
    }

    /* ==========================================================================
       37. VERSION CLAIRE DE L'ÉDITEUR (body.editor-light — ISOLÉE DU SITE)
       ========================================================================== */
    body.editor-light #ui-studio,
    body.editor-light #studio-toggle,
    body.editor-light #studio-toast,
    body.editor-light #dynamic-island,
    body.editor-light #edit-popover,
    body.editor-light #comp-pill-popover,
    body.editor-light #rich-text-toolbar,
    body.editor-light #menu-editor-modal,
    body.editor-light .studio-modal-backdrop {
      --st-bg: #ffffff;
      --st-surface: #f8fafc;
      --st-header: #f1f5f9;
      --st-border: #cbd5e1;
      --st-text: #0f172a;
      --st-muted: #64748b;
      --st-accent: #4f46e5;
    }

    body.editor-light #webizzi-header {
      background: #ffffff;
      color: #0f172a;
      border-bottom: 1px solid #e2e8f0;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    }
    body.editor-light .webizzi-brand-name {
      color: #0f172a;
    }
    body.editor-light .webizzi-site-pill {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #475569;
    }
    body.editor-light .webizzi-theme-btn,
    body.editor-light .webizzi-acc-btn {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    body.editor-light .webizzi-theme-btn:hover,
    body.editor-light .webizzi-acc-btn:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    body.editor-light .webizzi-acc-labels strong {
      color: #0f172a;
    }
    body.editor-light .webizzi-acc-labels small {
      color: #64748b;
    }

    /* Panneau latéral Studio en version claire */
    body.editor-light.studio-open #ui-studio {
      box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
    }
    body.editor-light .studio-title {
      color: #0f172a;
    }
    body.editor-light .studio-icon-btn {
      background: #ffffff;
      color: #334155;
    }
    body.editor-light .studio-icon-btn:hover {
      background: #e2e8f0;
      color: #0f172a;
    }
    body.editor-light .studio-tab-btn:hover {
      color: #0f172a;
      background: rgba(15, 23, 42, 0.05);
    }
    body.editor-light .studio-tab-btn.active {
      background: #ffffff;
      color: #0f172a;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }
    body.editor-light .theme-card:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    body.editor-light .theme-card.active {
      background: rgba(79, 70, 229, 0.08);
      border-color: #4f46e5;
    }
    body.editor-light .theme-swatches span {
      border-color: rgba(15, 23, 42, 0.18);
    }
    body.editor-light .studio-field-head,
    body.editor-light .studio-switch-row {
      color: #1e293b;
    }
    body.editor-light .studio-field-head code {
      color: #4338ca;
      background: rgba(79, 70, 229, 0.1);
    }
    body.editor-light .studio-select {
      background-color: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    }
    body.editor-light .studio-select:hover {
      border-color: #94a3b8;
    }
    body.editor-light .studio-btn-secondary {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #1e293b;
    }
    body.editor-light .studio-btn-secondary:hover {
      background: #e2e8f0;
      color: #0f172a;
    }
    body.editor-light .page-row:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    body.editor-light .page-row.active {
      background: rgba(79, 70, 229, 0.08);
      border-color: #4f46e5;
    }
    body.editor-light .page-row-title,
    body.editor-light .col-item-row-info strong,
    body.editor-light .detail-context-banner strong {
      color: #0f172a;
    }
    body.editor-light .page-row-slug,
    body.editor-light .col-item-row-info span {
      color: #64748b;
    }
    body.editor-light .col-item-row {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    body.editor-light .section-move-btn {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #334155;
    }
    body.editor-light .section-move-btn:hover:not(:disabled) {
      background: #4f46e5;
      border-color: #4f46e5;
      color: #ffffff;
    }
    body.editor-light .detail-context-banner {
      background: rgba(14, 165, 233, 0.1);
      border-color: rgba(14, 165, 233, 0.4);
      color: #0369a1;
    }

    /* Dynamic Island & Popovers en version claire */
    body.editor-light #dynamic-island {
      background: rgba(255, 255, 255, 0.96);
      border-color: #cbd5e1;
      box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    }
    body.editor-light .island-btn {
      color: #334155;
    }
    body.editor-light .island-btn:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    body.editor-light .island-btn.is-active,
    body.editor-light .island-btn.is-open-menu {
      background: rgba(79, 70, 229, 0.12);
      color: #4338ca;
    }
    body.editor-light .island-btn.is-active:hover,
    body.editor-light .island-btn.is-open-menu:hover {
      background: rgba(79, 70, 229, 0.18);
      color: #3730a3;
    }
    body.editor-light .island-sep {
      background: #e2e8f0;
    }
    /* Groupe Édition ON & bouton Débloquer dans Dynamic Island */
    body.editor-light.edit-mode .island-edit-group {
      background: #4f46e5;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    }
    body.editor-light.edit-mode .island-edit-group #island-edit {
      background: transparent;
      color: #ffffff;
    }
    body.editor-light.edit-mode .island-edit-group #island-edit:hover {
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
    }
    body.editor-light .island-inspect-btn {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.34);
      color: #ffffff;
    }
    body.editor-light .island-inspect-btn:hover {
      background: rgba(255, 255, 255, 0.32);
      color: #ffffff;
    }
    body.editor-light.pro-mode.edit-mode.pro-inspector .island-inspect-btn {
      background: #f59e0b;
      border-color: #fde68a;
      color: #1c1917;
    }
    body.editor-light.pro-mode.edit-mode.pro-inspector .island-inspect-btn:hover {
      background: #fbbf24;
      color: #1c1917;
    }
    /* Bouton Sauvegarder (propre & modifié) */
    body.editor-light .island-save-btn {
      background: #ecfdf5;
      border-color: #a7f3d0;
      color: #065f46;
    }
    body.editor-light .island-save-btn:hover {
      background: #10b981;
      border-color: #10b981;
      color: #ffffff;
    }
    body.editor-light .island-save-btn.is-dirty {
      background: #fef3c7;
      border-color: #fcd34d;
      color: #92400e;
    }
    body.editor-light .island-save-btn.is-dirty:hover {
      background: #f59e0b;
      border-color: #f59e0b;
      color: #ffffff;
    }
    body.editor-light .island-save-btn:hover .island-save-dot,
    body.editor-light .island-save-btn.is-dirty:hover .island-save-dot {
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    }
    body.editor-light .island-view-link {
      color: #059669;
    }
    body.editor-light .island-view-link:hover {
      background: #ecfdf5;
      color: #047857;
    }
    body.editor-light .island-popover {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    }
    body.editor-light .island-pop-head {
      color: #64748b;
      border-bottom-color: #e2e8f0;
    }
    body.editor-light .island-pop-item {
      color: #1e293b;
    }
    body.editor-light .island-pop-item:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    body.editor-light .island-pop-item.is-active {
      background: rgba(79, 70, 229, 0.1);
      color: #4338ca;
    }
    body.editor-light .island-pop-footer {
      border-top-color: #e2e8f0;
    }
    body.editor-light .island-pop-footer .studio-btn-secondary {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #1e293b;
    }

    /* Pilules & Popovers flottants en version claire */
    body.editor-light .comp-pill,
    body.editor-light .section-edit-tools,
    body.editor-light .repeat-item-tools {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
      box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
    }
    body.editor-light .comp-pill strong,
    body.editor-light .comp-pill-title {
      color: #4f46e5;
    }
    body.editor-light .comp-pill-btn,
    body.editor-light .section-tool-btn,
    body.editor-light .repeat-tool-btn {
      background: #f1f5f9;
      color: #1e293b;
    }
    body.editor-light .comp-pill-gear {
      background: rgba(79, 70, 229, 0.14);
      color: #4338ca;
    }
    body.editor-light .comp-pill-btn:hover:not(:disabled),
    body.editor-light .comp-pill-btn.is-open,
    body.editor-light .section-tool-btn:hover:not(:disabled),
    body.editor-light .repeat-tool-btn:hover:not(:disabled) {
      background: #4f46e5;
      color: #ffffff;
    }
    body.editor-light #comp-pill-popover,
    body.editor-light #edit-popover,
    body.editor-light #rich-text-toolbar {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    }
    body.editor-light #comp-pill-popover .studio-select,
    body.editor-light #comp-pill-popover .edit-pop-input,
    body.editor-light .edit-pop-input {
      background-color: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    body.editor-light .edit-pop-head {
      border-bottom-color: #e2e8f0;
    }
    body.editor-light .edit-pop-title {
      color: #0f172a;
    }
    body.editor-light .edit-pop-close {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #334155;
    }
    body.editor-light .edit-pop-close:hover {
      background: #e2e8f0;
      color: #0f172a;
    }
    body.editor-light .edit-pop-field label,
    body.editor-light .edit-pop-check,
    body.editor-light .rt-link-opts {
      color: #475569;
    }
    body.editor-light .edit-pop-file-label {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #4338ca;
    }
    body.editor-light .rt-mode-btn {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #334155;
    }
    body.editor-light .rt-mode-btn.is-full {
      background: #4f46e5;
      border-color: #4f46e5;
      color: #ffffff;
    }
    body.editor-light .rt-tools-group {
      border-left-color: #e2e8f0;
    }
    body.editor-light .rt-btn {
      color: #1e293b;
    }
    body.editor-light .rt-btn:hover {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    /* Modales (Menu, Paramètres, Picker, Compte) en version claire */
    body.editor-light .menu-ed-dialog,
    body.editor-light .studio-modal-dialog {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
      box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    }
    body.editor-light .menu-ed-header,
    body.editor-light .menu-ed-footer,
    body.editor-light .studio-modal-tabs {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    body.editor-light .menu-ed-header h3 {
      color: #0f172a;
    }
    body.editor-light .studio-modal-tab {
      color: #64748b;
    }
    body.editor-light .studio-modal-tab.active {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    body.editor-light .menu-ed-item,
    body.editor-light .picker-card,
    body.editor-light .pub-choice-card,
    body.editor-light .variant-builder-card {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    body.editor-light .picker-card:hover,
    body.editor-light .pub-choice-card:hover {
      background: #f1f5f9;
      border-color: #4f46e5;
    }
    body.editor-light .picker-card strong,
    body.editor-light .pub-choice-card strong {
      color: #0f172a;
    }
    body.editor-light .menu-ed-subitem,
    body.editor-light .brand-asset-box {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    body.editor-light .menu-ed-icon-btn {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #334155;
    }
    body.editor-light .studio-hint-box {
      background: rgba(79, 70, 229, 0.08);
      border-color: rgba(79, 70, 229, 0.25);
      color: #3730a3;
    }
    body.editor-light .studio-hint-box code {
      color: #1e1b4b;
    }

    /* Lisibilité des textes secondaires en ligne dans toutes les modales en mode clair */
    body.editor-light .studio-modal-backdrop [style*="color:#9ca3af"],
    body.editor-light .studio-modal-backdrop [style*="color: #9ca3af"],
    body.editor-light #menu-editor-modal [style*="color:#9ca3af"],
    body.editor-light #menu-editor-modal [style*="color: #9ca3af"] {
      color: #475569 !important;
    }
    body.editor-light .studio-modal-backdrop [style*="color:#cbd5e1"],
    body.editor-light .studio-modal-backdrop [style*="color: #cbd5e1"] {
      color: #334155 !important;
    }

    /* Fenêtre Mon Compte & Administration en version claire */
    body.editor-light #account-modal.is-locked {
      background: #f1f5f9;
    }
    body.editor-light #account-modal:not(.is-locked) .studio-modal-dialog {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
      box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    }
    body.editor-light #account-modal .menu-ed-header,
    body.editor-light #account-modal .studio-modal-tabs,
    body.editor-light #account-modal .menu-ed-footer {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    body.editor-light #account-modal .menu-ed-header h3 {
      color: #0f172a;
    }
    body.editor-light #account-modal #acc-modal-subtitle,
    body.editor-light #account-modal #acc-quota-desc,
    body.editor-light #account-modal #acc-footer-note {
      color: #475569 !important;
    }
    body.editor-light #account-modal .studio-modal-tab {
      color: #475569;
    }
    body.editor-light #account-modal .studio-modal-tab:hover {
      color: #0f172a;
      background: rgba(15, 23, 42, 0.04);
    }
    body.editor-light #account-modal .studio-modal-tab.active {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }
    body.editor-light #account-modal [data-acc-tab="admin"] {
      color: #b45309 !important;
    }
    body.editor-light #account-modal .seo-card {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    body.editor-light #account-modal .col-item-row {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    body.editor-light #account-modal [data-acc-pane="sites"] .col-item-row[style*="rgba(99,102,241"],
    body.editor-light #account-modal [data-acc-pane="billing"] .seo-card[style*="rgba(99,102,241"] {
      background: #eef2ff !important;
      border-color: #6366f1 !important;
    }
    body.editor-light #account-modal [data-acc-pane="billing"] .seo-card[style*="rgba(245,158,11"],
    body.editor-light #account-modal [data-acc-pane="admin"] .col-item-row[style*="rgba(245,158,11"] {
      background: #fffbeb !important;
      border-color: #f59e0b !important;
    }
    body.editor-light #account-modal [style*="color:#fff"],
    body.editor-light #account-modal [style*="color: #fff"],
    body.editor-light #account-modal [style*="color:#ffffff"],
    body.editor-light #account-modal [style*="color: #ffffff"] {
      color: #0f172a !important;
    }
    body.editor-light #account-modal [style*="color:#fcd34d"],
    body.editor-light #account-modal [style*="color: #fcd34d"] {
      color: #b45309 !important;
    }
    body.editor-light #account-modal [style*="color:#a5b4fc"],
    body.editor-light #account-modal [style*="color: #a5b4fc"] {
      color: #4338ca !important;
    }
    body.editor-light #account-modal [style*="color:#f472b6"],
    body.editor-light #account-modal [style*="color: #f472b6"] {
      color: #be185d !important;
    }
    body.editor-light #account-modal .col-item-row-info strong,
    body.editor-light #account-modal strong {
      color: #0f172a !important;
    }
    body.editor-light #account-modal [data-acc-pane="billing"] strong[style*="color:#fcd34d"] {
      color: #b45309 !important;
    }
    body.editor-light #account-modal [data-acc-pane="admin"] strong[style*="color:#a5b4fc"] {
      color: #4338ca !important;
    }
    body.editor-light #account-modal [data-acc-pane="admin"] strong[style*="color:#fcd34d"] {
      color: #b45309 !important;
    }
    body.editor-light #account-modal .col-item-row-info span,
    body.editor-light #account-modal ul,
    body.editor-light #account-modal li,
    body.editor-light #account-modal small {
      color: #334155 !important;
    }
    body.editor-light #account-modal code {
      color: #334155 !important;
      background: rgba(15, 23, 42, 0.06);
      padding: 1px 5px;
      border-radius: 4px;
    }
    body.editor-light #account-modal #acc-avatar-badge,
    body.editor-light #account-modal .studio-btn-primary,
    body.editor-light #account-modal .studio-btn-primary *,
    body.editor-light #account-modal .studio-btn-secondary:hover {
      color: #ffffff !important;
    }
    body.editor-light #account-modal #auth-logout-btn {
      color: #dc2626 !important;
      border-color: rgba(220, 38, 38, 0.35) !important;
      background: #fef2f2 !important;
    }
    body.editor-light #account-modal #auth-logout-btn:hover {
      background: #fee2e2 !important;
      color: #b91c1c !important;
    }
    body.editor-light #account-modal [data-acc-pane="sites"] > div:first-child,
    body.editor-light #account-modal [data-acc-pane="admin"] > div:nth-child(2) {
      background: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
    }
    body.editor-light #account-modal .submenu-tag {
      background: rgba(79, 70, 229, 0.1) !important;
      border-color: rgba(79, 70, 229, 0.28) !important;
      color: #4338ca !important;
    }
    body.editor-light #account-modal .edit-pop-input,
    body.editor-light #account-modal .studio-select {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
    }

/* Site primitives inherit this unit; Studio controls retain viewport sizing. */
body:is(.vp-tablet, .vp-mobile) #preview-stage {
  --preview-fluid-width: 1cqw;
}
