/* ─────────────────────────────────────────────────────────────────────────── */
/* Variables */
/* ─────────────────────────────────────────────────────────────────────────── */
:root{
  --cm-bg:#f3f6fb;
  --cm-surface:#ffffff;
  --cm-surface-soft:#f8fbff;
  --cm-border:#dce6f1;
  --cm-border-strong:#cedceb;
  --cm-text:#132f57;
  --cm-text-soft:#6a7d97;
  --cm-primary:#204a9d;
  --cm-primary-dark:#153a83;
  --cm-primary-soft:#edf4ff;
  --cm-side-1:#11284f;
  --cm-side-2:#0f2143;
  --cm-success:#22c55e;
  --cm-warning:#f59e0b;
  --cm-danger:#ef4444;
  --cm-shadow:0 12px 30px rgba(16,35,66,.06);
  --cm-shadow-soft:0 8px 20px rgba(16,35,66,.05);
  --cm-radius-xl:24px;
  --cm-radius-lg:20px;
  --cm-radius-md:16px;
  --cm-radius-sm:12px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Base */
/* ─────────────────────────────────────────────────────────────────────────── */
*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  background:var(--cm-bg);
  color:var(--cm-text);
  font-family:"Manrope", Arial, Helvetica, sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  border:0;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* App layout */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px 1fr;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Main */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-main{
  padding:24px 28px 32px;
  overflow-x:hidden;
}

.cm-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:18px;
}

.cm-topLeft h1{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-0.02em;
}

.cm-subtitle{
  margin:8px 0 0;
  font-size:14px;
  color:var(--cm-text-soft);
}

.cm-topRight{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}

.cm-search{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:390px;
  background:var(--cm-surface);
  border:1px solid var(--cm-border);
  border-radius:18px;
  padding:13px 16px;
  box-shadow:var(--cm-shadow);
}

.cm-searchInput{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--cm-text);
}

.cm-bell{
  position:relative;
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid var(--cm-border);
  background:var(--cm-surface);
  box-shadow:var(--cm-shadow);
  cursor:pointer;
}

.cm-user{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--cm-surface);
  border:1px solid var(--cm-border);
  border-radius:18px;
  padding:10px 14px;
  box-shadow:var(--cm-shadow);
  min-width:220px;
}

.cm-userAvatar{
  width:42px;
  height:42px;
  border-radius:999px;
  background:var(--cm-primary-soft);
  color:var(--cm-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:22px;
}

.cm-userName{
  font-size:15px;
  font-weight:800;
  line-height:1.2;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Tool slot */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-card--slot{
  margin-bottom:18px;
  min-height:220px;
}

.cm-toolHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.cm-toolTitle{
  margin:0;
  font-size:24px;
}

.cm-toolClose{
  border:1px solid var(--cm-border);
  background:#fff;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  color:var(--cm-text);
}

.cm-toolDesc{
  color:var(--cm-text-soft);
  margin-bottom:16px;
}

.cm-toolPlaceholder{
  border:1px dashed var(--cm-border-strong);
  border-radius:16px;
  background:var(--cm-surface-soft);
  padding:24px;
  color:var(--cm-text-soft);
}

.cm-kpiSub{
  font-size:13px;
  color:var(--cm-text-soft);
  line-height:1.45;
}

.cm-card{
  background:var(--cm-surface);
  border:1px solid var(--cm-border);
  border-radius:22px;
  padding:20px;
  box-shadow:var(--cm-shadow);
  min-width:0;
}

.cm-card h3{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.1;
  letter-spacing:-0.02em;
}

.cm-card--span2{
  grid-column:span 2;
}

.cm-card--fixed{
  min-height:260px;
}

.cm-btn{
  border:1px solid var(--cm-border-strong);
  background:#fff;
  border-radius:14px;
  padding:10px 15px;
  cursor:pointer;
  font-weight:700;
  color:var(--cm-text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.cm-btnPrimary{
  background:var(--cm-primary);
  color:#fff;
  border-color:var(--cm-primary);
}

.cm-btnBlock{
  width:100%;
  display:flex;
  text-align:center;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Paramètres compte */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-settingsLayout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
}

.cm-settingsSidebar{
  background:linear-gradient(180deg,#f9fbff 0%, #f4f8fe 100%);
  border:1px solid var(--cm-border);
  border-radius:18px;
  padding:14px;
}

.cm-settingsSidebarTitle{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--cm-text-soft);
  margin-bottom:10px;
}

.cm-settingsNav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cm-settingsNavItem{
  width:100%;
  background:#fff;
  border:1px solid var(--cm-border);
  color:var(--cm-text);
  border-radius:14px;
  padding:12px 14px;
  text-align:left;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
}

.cm-settingsNavItem:hover{
  border-color:#c8d9ed;
  background:#f8fbff;
}

.cm-settingsNavItem.is-active{
  background:var(--cm-primary-soft);
  border-color:#c9daf8;
  color:var(--cm-primary-dark);
}

.cm-settingsContent{
  min-width:0;
  background:#fff;
  border:1px solid var(--cm-border);
  border-radius:18px;
  padding:20px;
}

.cm-settingsSectionHead{
  margin-bottom:16px;
}

.cm-settingsSectionHead h3{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.1;
}

.cm-settingsSectionHead p{
  margin:0;
  font-size:14px;
  color:var(--cm-text-soft);
}

.cm-settingsBox{
  border:1px solid var(--cm-border);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  padding:18px;
}

.cm-settingsIntro{
  font-size:14px;
  color:var(--cm-text-soft);
  line-height:1.6;
  margin-bottom:16px;
}

.cm-settingsFormGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.cm-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.cm-field--span2{
  grid-column:span 2;
}

.cm-label{
  font-size:13px;
  font-weight:700;
  color:var(--cm-text);
}

.cm-input{
  width:100%;
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:12px 14px;
  color:var(--cm-text);
  outline:none;
  appearance:none;
}

.cm-input:focus{
  border-color:#b9cfef;
  box-shadow:0 0 0 3px rgba(32,74,157,.08);
}

.cm-settingsActions{
  margin-top:16px;
  display:flex;
  justify-content:flex-start;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Paiement */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-payCard,
.cm-subscriptionCard,
.cm-affiliateCard{
  border:1px solid var(--cm-border);
  border-radius:18px;
  background:#fff;
  padding:18px;
}

.cm-payCardTop,
.cm-affiliateHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.cm-payTitle{
  font-size:18px;
  font-weight:800;
  color:var(--cm-text);
}

.cm-paySub{
  margin-top:4px;
  font-size:13px;
  color:var(--cm-text-soft);
}

.cm-payInfo,
.cm-affiliateText{
  font-size:14px;
  color:var(--cm-text-soft);
  line-height:1.6;
}

.cm-payActions{
  margin-top:16px;
}

.cm-statusBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.cm-statusBadge--pending{
  background:#fff7ed;
  color:#c2410c;
}

.cm-statusBadge--soft{
  background:#eef2ff;
  color:#4338ca;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Boutons de paiement / préparation */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-paymentFeatureGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.cm-featureCard{
  border:1px solid var(--cm-border);
  border-radius:18px;
  background:#fff;
  padding:16px;
}

.cm-featureHead{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.cm-featureHead strong{
  font-size:16px;
  color:var(--cm-text);
}

.cm-featureText{
  margin:0;
  font-size:14px;
  color:var(--cm-text-soft);
  line-height:1.6;
}

.cm-featureText code{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:2px 6px;
  font-size:12px;
  color:var(--cm-primary-dark);
}

.cm-builderPayBox{
  border:1px solid var(--cm-border);
  border-radius:18px;
  background:#fff;
  padding:18px;
}

.cm-builderPayTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.cm-builderSteps{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cm-builderStep{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.cm-builderStepNum{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:999px;
  background:var(--cm-primary-soft);
  color:var(--cm-primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
}

.cm-builderStep strong{
  display:block;
  margin-bottom:4px;
  color:var(--cm-text);
}

.cm-builderStep p{
  margin:0;
  color:var(--cm-text-soft);
  line-height:1.6;
  font-size:14px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Abonnements */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-subscriptionCard{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cm-subscriptionRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid #edf2f8;
}

.cm-subscriptionRow:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.cm-subscriptionLabel{
  font-size:14px;
  color:var(--cm-text-soft);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Modules */
/* ─────────────────────────────────────────────────────────────────────────── */
.cm-modulesGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.cm-moduleCard{
  border:1px solid #d9e5f2;
  border-radius:16px;
  background:#ffffff;
  padding:18px;
  box-shadow:0 8px 20px rgba(16,35,66,.04);
}

.cm-moduleName{
  font-weight:800;
  margin-bottom:12px;
  color:var(--cm-text);
  font-size:15px;
}

.cm-moduleLevel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
}

.cm-moduleLevel--off{ background:#f1f5f9; color:#64748b; }
.cm-moduleLevel--minimal{ background:#ecfeff; color:#0f766e; }
.cm-moduleLevel--basic{ background:#eff6ff; color:#1d4ed8; }
.cm-moduleLevel--pro{ background:#f5f3ff; color:#7c3aed; }
.cm-moduleLevel--advanced{ background:#fef3c7; color:#b45309; }
.cm-moduleLevel--limited{ background:#fef2f2; color:#b91c1c; }
.cm-moduleLevel--priority{ background:#dcfce7; color:#15803d; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* Responsive */
/* ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px){

  .cm-modulesGrid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .cm-settingsLayout{
    grid-template-columns:220px minmax(0,1fr);
  }

  .cm-paymentStateGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 1050px){
  .cm-app{
    grid-template-columns:1fr;
  }
.cm-card--span2{
    grid-column:span 1;
  }

  .cm-settingsLayout{
    grid-template-columns:1fr;
  }
}
@media (max-width: 820px){

  .cm-modulesGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cm-settingsFormGrid{
    grid-template-columns:1fr;
  }

  .cm-field--span2{
    grid-column:span 1;
  }

  .cm-subscriptionRow{
    flex-direction:column;
    align-items:flex-start;
  }

  .cm-paymentFeatureGrid{
    grid-template-columns:1fr;
  }

  .cm-paymentStateGrid{
    grid-template-columns:1fr;
  }

  .cm-paymentResultMeta{
    grid-template-columns:1fr;
  }
}
@media (max-width: 560px){
  .cm-main{
    padding:16px;
  }

  .cm-topLeft h1{
    font-size:28px;
  }

  .cm-modulesGrid{
    grid-template-columns:1fr;
  }

  .cm-user{
    width:100%;
    justify-content:flex-start;
    min-width:unset;
  }

  .cm-toolHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .cm-payCardTop,
  .cm-affiliateHead,
  .cm-builderPayTop,
  .cm-paymentResultHead{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Déploiement global plein écran — Dashboard + modules */
/* IMPORTANT :
   - Le contenu principal prend toute la largeur restante après la sidebar.
   - Suppression des bandes blanches sur grands écrans.
   - Ne modifie pas la logique des modules.
   - Ne modifie pas Booking / Calendrier.
   - Ne modifie pas les vues internes, seulement leur zone de déploiement.
*/
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-app{
  width:100%;
  height:100vh;
  min-height:100vh;
  display:grid;
  grid-template-columns:242px minmax(0,1fr);
  overflow:hidden;
}

.cm-main{
  width:100%;
  min-width:0;
  max-width:none;
  height:100vh;
  min-height:0;
  padding:14px 16px 20px;
  overflow-y:auto;
  overflow-x:hidden;
}

.cm-main > *{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
}

#cm-dashboard-home,
#cm-tool-slot{
  width:100%;
  max-width:none;
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────── */

.cm-top{
  margin-bottom:12px;
}

.cm-topLeft h1{
  font-size:28px;
}

.cm-subtitle{
  margin:4px 0 0;
  font-size:13px;
}

.cm-kpiSub{
  font-size:12px;
  line-height:1.35;
}

.cm-card{
  padding:16px;
  border-radius:18px;
}

.cm-card h3{
  font-size:20px;
  margin:0 0 4px;
}

.cm-card--fixed{
  min-height:auto;
}

.cm-btn{
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
}
.cm-settingsContent{
  padding:18px;
}

.cm-settingsSectionHead{
  margin-bottom:12px;
}

.cm-settingsSectionHead h3{
  font-size:20px;
  margin:0 0 4px;
}

.cm-settingsSectionHead p{
  font-size:13px;
}

.cm-settingsBox{
  padding:16px;
  border-radius:16px;
}

.cm-settingsIntro{
  font-size:13px;
  line-height:1.45;
  margin-bottom:12px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Abonnement paramètres compte compact */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-subscriptionPanel{
  border:1px solid var(--cm-border);
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  padding:16px;
  box-shadow:var(--cm-shadow-soft);
}

.cm-subscriptionPanelTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.cm-subscriptionPanelHead{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.cm-subscriptionBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 9px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}

.cm-subscriptionBadge--premium{
  background:#ede9fe;
  color:#6d28d9;
}

.cm-subscriptionPanelMeta{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.cm-subscriptionPanelMeta strong{
  font-size:14px;
  line-height:1.15;
  color:var(--cm-text);
}

.cm-subscriptionPanelMeta span{
  font-size:12px;
  line-height:1.35;
  color:var(--cm-text-soft);
}

.cm-subscriptionPanelBody{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cm-subscriptionInfoGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.cm-subscriptionInfoCard{
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:12px;
}

.cm-subscriptionInfoLabel{
  display:block;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--cm-text-soft);
  margin-bottom:6px;
}

.cm-subscriptionInfoCard strong{
  display:block;
  font-size:14px;
  color:var(--cm-text);
  margin-bottom:4px;
}

.cm-subscriptionInfoCard p{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:var(--cm-text-soft);
}

.cm-subscriptionPanelActions{
  margin-top:0;
}

.cm-subscriptionPanelStatus{
  flex:0 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Responsive plein écran */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1280px){

  .cm-subscriptionInfoGrid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 1050px){
  .cm-app{
    grid-template-columns:1fr;
  }
.cm-card--span2{
    grid-column:span 1;
  }

  .cm-settingsLayout{
    grid-template-columns:1fr;
  }
}
@media (max-width: 820px){
  .cm-main{
    padding:12px;
  }

  .cm-top{
    flex-direction:column;
  }

  .cm-topRight{
    width:100%;
    flex-wrap:wrap;
  }

  .cm-search{
    min-width:unset;
    width:100%;
  }

  .cm-subscriptionPanelTop{
    flex-direction:column;
    align-items:flex-start;
  }

  .cm-subscriptionPanelHead{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media (max-width: 560px){
  .cm-main{
    padding:16px;
  }

  .cm-topLeft h1{
    font-size:28px;
  }


  .cm-toolHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .cm-payCardTop,
  .cm-affiliateHead,
  .cm-builderPayTop,
  .cm-paymentResultHead{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   Sidebar globale - Bouton d’ouverture tablette et mobile
   ─────────────────────────────────────────────────────────────────────────── */

.cm-sidebarToggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2863ef, #1249d2);
  border-color: rgba(36, 88, 232, 0.34);
  box-shadow: 0 9px 22px rgba(36, 88, 232, 0.22);
  cursor: pointer;
}

.cm-sidebarToggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

@media (max-width: 1050px) {
  .cm-sidebarToggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .cm-top {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 9px;
    width: 100%;
  }

  .cm-topRight {
    display: contents;
  }

  .cm-bell {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
  }

  .cm-user {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
    min-width: 0;
    max-width: min(220px, 100%);
    min-height: 42px;
    gap: 9px;
    padding: 6px 11px 6px 7px;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
  }

  .cm-userAvatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 17px;
  }

  .cm-userMeta {
    min-width: 0;
  }

  .cm-userName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .cm-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
  }

  body.krea-sidebar-open .cm-sidebarToggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.krea-sidebar-open .cm-sidebarToggle span:nth-child(2) {
    opacity: 0;
  }

  body.krea-sidebar-open .cm-sidebarToggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .cm-sidebarToggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  .cm-top {
    gap: 9px 8px;
  }

  .cm-bell {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .cm-user {
    min-height: 40px;
    max-width: 185px;
    padding: 5px 9px 5px 6px;
  }

  .cm-userAvatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 16px;
  }

  .cm-userName {
    font-size: 12px;
  }

  .cm-search {
    min-height: 44px;
    padding: 10px 13px;
  }
}

/* ============================================================
   CM TOOL SLOT — CONTENEUR DE MONTAGE SANS ENCADREMENT
   ============================================================ */

#cm-tool-slot {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}


/* =============================================================================
   KREABOARD — ACCÈS GLOBAL WORLD MARKETPLACE
   -----------------------------------------------------------------------------
   Position : header applicatif, entre la recherche et les notifications.
   Ce bouton change de contexte fonctionnel ; il n'appartient à aucune sidebar.
   ============================================================================= */

.cm-marketplaceAccess {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(216, 137, 24, 0.24);
  border-radius: 12px;
  background: #fff8ec;
  color: #8f5c18;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.cm-marketplaceAccess[hidden] {
  display: none !important;
}

.cm-marketplaceAccess:hover {
  border-color: rgba(216, 137, 24, 0.42);
  background: #fff3e4;
  color: #c87509;
}

.cm-marketplaceAccess:focus-visible {
  outline: 3px solid rgba(216, 137, 24, 0.22);
  outline-offset: 2px;
}

.cm-marketplaceAccess__icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.cm-marketplaceAccess__label {
  min-width: 0;
}

@media (max-width: 980px) {
  .cm-marketplaceAccess {
    padding-inline: 11px;
  }

  .cm-marketplaceAccess__label {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .cm-marketplaceAccess {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .cm-marketplaceAccess__label {
    display: none;
  }
}
