/* i-CM Ops — pages publiques apex (palette css.txt) */

:root,
html[data-theme="dark"] {
    --icm-bg: #0f172a;
    --icm-surface: #162033;
    --icm-card2: #1e293b;
    --icm-border: #2b3b52;
    --icm-text: #f8fafc;
    --icm-muted: #94a3b8;
    --icm-accent: #3b82f6;
    --icm-primary-hover: #60a5fa;
    --icm-success: #22c55e;
    --icm-danger: #ef4444;
    --icm-warning: #f59e0b;
    --icm-green: #22c55e;
    --icm-green-hover: #16a34a;
    --icm-orange: #f59e0b;
    --icm-orange-hover: #fbbf24;
    --icm-royal: #3b82f6;
    --icm-header-bg: rgba(22, 32, 51, 0.92);
    --icm-max: 1400px;
    --icm-max-narrow: 1200px;
    --icm-public-gutter: clamp(20px, 5vw, 96px);
}

html[data-theme="light"] {
    --icm-bg: #ffffff;
    --icm-surface: #f6f8fa;
    --icm-border: #d0d7de;
    --icm-text: #1f2328;
    --icm-muted: #656d76;
    --icm-accent: #4169e1;
    --icm-green: #ea580c;
    --icm-green-hover: #c2410c;
    --icm-orange: #ea580c;
    --icm-orange-hover: #c2410c;
    --icm-royal: #4169e1;
    --icm-header-bg: #f6f8fa;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.icm-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-size: 14px;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    overflow-x: clip;
}

html[data-theme="dark"] body.icm-public,
html:not([data-theme]) body.icm-public {
    background:
        radial-gradient(circle at top left, #1d4ed8 0%, transparent 40%),
        radial-gradient(circle at bottom right, #0ea5e9 0%, transparent 30%),
        var(--icm-bg);
    color: var(--icm-text);
}

html[data-theme="light"] body.icm-public {
    background: var(--icm-bg);
    color: var(--icm-text);
}

a { color: var(--icm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.icm-public-header {
    width: 100%;
    background: var(--icm-header-bg);
    border-bottom: 1px solid var(--icm-border);
}

.icm-public-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px var(--icm-public-gutter);
}

.icm-public-header__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.icm-public-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icm-lang-switch {
    display: inline-flex;
    padding: 2px;
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-lang-switch__btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--icm-muted);
    text-decoration: none;
    border-radius: 6px;
}

.icm-lang-switch__btn:hover {
    color: var(--icm-text);
    text-decoration: none;
}

.icm-lang-switch__btn.is-active {
    color: #fff;
    background: var(--icm-accent);
}

html[data-theme="light"] .icm-lang-switch__btn.is-active {
    background: var(--icm-royal);
}

.icm-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 16px;
    color: var(--icm-text);
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
    cursor: pointer;
}

.icm-theme-toggle:hover {
    border-color: var(--icm-accent);
}

.icm-theme-toggle__icon { line-height: 1; }

html[data-theme="dark"] .icm-theme-toggle__icon--sun,
html:not([data-theme]) .icm-theme-toggle__icon--sun { display: inline; }
html[data-theme="dark"] .icm-theme-toggle__icon--moon,
html:not([data-theme]) .icm-theme-toggle__icon--moon { display: none; }
html[data-theme="light"] .icm-theme-toggle__icon--sun { display: none; }
html[data-theme="light"] .icm-theme-toggle__icon--moon { display: inline; }

.icm-public-brand {
    font-weight: 600;
    font-size: 15px;
    color: var(--icm-text);
    text-decoration: none;
}

.icm-public-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.icm-public-nav a {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
}

.icm-public-nav a:hover {
    background: rgba(88, 166, 255, 0.12);
    text-decoration: none;
}

.icm-public-nav a.icm-nav-active {
    color: var(--icm-text);
    background: rgba(88, 166, 255, 0.18);
}

.icm-public-nav-cta {
    color: #fff !important;
    background: var(--icm-green);
}

.icm-public-nav-cta:hover {
    background: var(--icm-green-hover);
}

.icm-public-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px var(--icm-public-gutter);
    min-height: 0;
}

.icm-public-main--home {
    padding: 0;
}

.icm-public-main--wide {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px var(--icm-public-gutter) 40px;
}

.icm-public-main--narrow {
    max-width: var(--icm-max-narrow);
    margin: 0 auto;
    padding: 24px 32px;
}

.icm-public-main > .icm-creator-page,
.icm-public-main > .icm-ops-page,
.icm-public-main > .icm-formules-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.icm-public-footer {
    width: 100%;
    padding: 16px var(--icm-public-gutter);
    font-size: 12px;
    color: var(--icm-muted);
    text-align: center;
    border-top: 1px solid var(--icm-border);
    flex-shrink: 0;
}

.icm-hero { margin-bottom: 32px; }
.icm-hero h1 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 600; }

.icm-lead {
    font-size: 1.05rem;
    color: var(--icm-muted);
    max-width: 640px;
    margin: 0;
}

.icm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.icm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.icm-btn--primary,
.hp-button {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .icm-btn--primary,
html[data-theme="light"] .hp-button {
    background: linear-gradient(135deg, var(--icm-orange), #fb923c);
}

.icm-btn--primary:hover,
.hp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

html[data-theme="light"] .icm-btn--primary:hover,
html[data-theme="light"] .hp-button:hover {
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.35);
}

.icm-btn--ghost {
    color: var(--icm-accent);
    background: transparent;
    border: 1px solid var(--icm-border);
    text-decoration: none;
}

.icm-btn--ghost:hover { text-decoration: none; }

.icm-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.icm-feature-card {
    padding: 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-feature-card h2 { margin: 0 0 8px; font-size: 1rem; }
.icm-feature-card p { margin: 0; font-size: 13px; color: var(--icm-muted); }

.icm-muted { color: var(--icm-muted); font-size: 13px; }

.icm-doc-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--icm-border);
}

.icm-doc-section h2 { margin: 0 0 8px; font-size: 1.1rem; }
.icm-doc-section p { margin: 0; color: var(--icm-muted); }

.icm-doc-list {
    margin: 0;
    padding-left: 20px;
    color: var(--icm-muted);
}

.icm-doc-list li { margin-bottom: 6px; }

.icm-form-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-form-card h1 { margin: 0 0 8px; font-size: 1.35rem; }

.icm-form-brand {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--icm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.icm-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.icm-form label {
    font-size: 13px;
    font-weight: 500;
}

.icm-form input {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--icm-text);
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 6px;
}

.icm-form input:focus {
    outline: 2px solid rgba(88, 166, 255, 0.45);
    border-color: var(--icm-accent);
}

.icm-form-hint {
    margin: -4px 0 4px;
    font-size: 12px;
    color: var(--icm-muted);
}

.icm-form-footer {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--icm-muted);
    text-align: center;
}

.icm-alert {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.icm-alert--error {
    color: #ffb4b4;
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.35);
}

.icm-alert--info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--icm-text);
}

.icm-alert--success {
    color: #7ee787;
    background: rgba(46, 160, 67, 0.15);
    border: 1px solid rgba(46, 160, 67, 0.35);
}

.icm-panel-user {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--icm-muted);
}

.icm-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.icm-pillar-card {
    padding: 20px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-pillar-card--ops { border-top: 3px solid var(--icm-accent); }
.icm-pillar-card--creator { border-top: 3px solid var(--icm-green); }

.icm-pillar-card h2 { margin: 8px 0; font-size: 1.2rem; }
.icm-pillar-card p { margin: 0 0 16px; font-size: 13px; color: var(--icm-muted); }

.icm-pillar-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--icm-muted);
}

.icm-trial-banner {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(35, 134, 54, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.35);
    border-radius: 8px;
}

.icm-trial-banner h2 { margin: 0 0 8px; font-size: 1.15rem; }
.icm-trial-banner p { margin: 0 0 14px; color: var(--icm-muted); }

.icm-secondary-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--icm-border);
}

.icm-secondary-block h2 { margin: 0 0 8px; font-size: 1.1rem; }

.icm-feature-card--wide { grid-column: 1 / -1; }

.icm-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.icm-plan-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-plan-card--featured {
    border-color: var(--icm-accent);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.25);
}

.icm-plan-card__head { margin-bottom: 10px; }
.icm-plan-card h2 { margin: 6px 0 4px; font-size: 1.15rem; }
.icm-plan-card p { margin: 0 0 8px; font-size: 13px; color: var(--icm-muted); flex: 1; }

.icm-plan-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--icm-text);
}

.icm-plan-badge {
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
    background: rgba(139, 148, 158, 0.2);
    color: var(--icm-muted);
}

.icm-plan-badge--accent {
    background: rgba(88, 166, 255, 0.2);
    color: var(--icm-accent);
}

.icm-plan-greyed {
    font-size: 12px;
    font-style: italic;
    color: var(--icm-muted);
}

.icm-plan-cta { margin-top: auto; width: 100%; text-align: center; }

.icm-domain-search {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-domain-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.icm-domain-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icm-domain-search__row input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--icm-text);
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 6px;
}

.icm-domain-search__row select {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--icm-text);
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 6px;
}

.icm-domain-search .icm-form-hint {
    margin: 12px 0 0;
}

.icm-builder-create-hint {
    margin: 10px 0 0;
}

.icm-tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.icm-tld-card {
    padding: 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-tld-card--featured {
    border-color: var(--icm-green);
    grid-column: span 1;
}

.icm-tld-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.icm-tld-card p { margin: 0 0 12px; font-size: 13px; color: var(--icm-muted); }

.icm-tld-price {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.icm-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.icm-hub-link {
    padding: 10px 14px;
    font-size: 13px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 6px;
    text-decoration: none;
}

.icm-hub-link:hover {
    border-color: var(--icm-accent);
    text-decoration: none;
}

.icm-landing-note { margin-top: 8px; }

/* ——— Accueil : hero carousel services (pleine largeur) ——— */

body.icm-public-home {
    min-height: 100vh;
}

.icm-home {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hp-hero,
.icm-hero-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: min(50vh, 460px);
    overflow: hidden;
    border-radius: 0;
    background: var(--icm-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.icm-home .icm-hero-carousel {
    margin-bottom: 0;
}

html[data-theme="light"] .icm-hero-carousel {
    background: #f6f8fa;
    border-bottom-color: var(--icm-border);
}

html[data-theme="light"] .icm-hero-carousel__dot.is-active {
    background: var(--icm-royal);
    border-color: var(--icm-royal);
}

html[data-theme="light"] .icm-public-nav-cta {
    background: var(--icm-orange);
}

html[data-theme="light"] .icm-public-nav-cta:hover {
    background: var(--icm-orange-hover);
}

.icm-hero-carousel__viewport {
    flex: 1;
    width: 100%;
    overflow: hidden;
    direction: ltr;
}

.icm-hero-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.icm-service-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: min(50vh, 460px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
}

/* Panneau plein carousel : image fond edge-to-edge */
.icm-slide-panel {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: min(50vh, 460px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

html[data-theme="light"] .icm-slide-panel {
    border: none;
    box-shadow: none;
}

.icm-slide-panel__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.icm-slide-panel__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    filter: blur(1px) brightness(0.62);
    transition: transform 0.85s ease, filter 0.85s ease;
}

.icm-service-slide.is-entering .icm-slide-panel__img {
    transform: scale(1.02);
    filter: blur(3px) brightness(0.48);
}

.icm-slide-panel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
}

html[data-theme="light"] .icm-slide-panel__img {
    filter: blur(0.5px) brightness(1.06) saturate(1.12);
}

html[data-theme="light"] .icm-service-slide.is-entering .icm-slide-panel__img {
    filter: blur(1px) brightness(1.02) saturate(1.08);
}

html[data-theme="light"] .icm-slide-panel__overlay {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 48%, rgba(255, 255, 255, 0.12) 100%);
}

.icm-slide-panel__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px max(72px, var(--icm-public-gutter)) 56px;
    box-sizing: border-box;
}

html[dir="rtl"] .icm-slide-panel__body {
    justify-content: flex-end;
}

.icm-slide-panel__card {
    min-width: 0;
    flex: 0 1 min(380px, calc(100% - 144px));
    max-width: min(380px, calc(100% - 144px));
    transform: none;
}

.icm-slide-panel .mPanel {
    max-width: none;
    padding: 38px 20px 22px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .icm-slide-panel .mPanel {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(208, 215, 222, 0.9);
}

.icm-slide-panel .mPanel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.icm-slide-panel .mPanel--ops { border-top: 3px solid var(--icm-accent); }
.icm-slide-panel .mPanel--creator { border-top: 3px solid #0ea5e9; }
.icm-slide-panel .mPanel--trial { border-top: 3px solid var(--icm-warning); }

.icm-slide-panel .mPanel__title {
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.icm-slide-panel .mPanel__lead {
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.65;
}

.icm-slide-panel .mPanel__features {
    margin-bottom: 20px;
}

.icm-slide-panel .mPanel__features li {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding-top: 11px;
    padding-bottom: 11px;
    line-height: 1.55;
}

.icm-slide-panel .mPanel__features li::before {
    top: 12px;
}

.icm-slide-panel .mPanel__cta {
    width: 100%;
    margin: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1.35;
}

html[data-theme="light"] .icm-slide-panel .mPanel__title {
    color: #0f172a;
}

html[data-theme="light"] .icm-slide-panel .mPanel__lead {
    color: #475569;
}

html[data-theme="light"] .icm-slide-panel .mPanel__features li {
    color: #1e293b;
    border-bottom-color: rgba(208, 215, 222, 0.9);
}

.icm-service-slide__layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: start;
    gap: 24px 40px;
    width: 100%;
}

/* mPanel — carte service (carousel accueil) */
.hp-card,
.mPanel {
    width: 100%;
    max-width: 380px;
    padding: 26px;
    text-align: start;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hp-card:hover,
.mPanel:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(59, 130, 246, 0.12);
}

html[data-theme="light"] .hp-card,
html[data-theme="light"] .mPanel {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(208, 215, 222, 0.9);
    box-shadow: 0 12px 32px rgba(31, 35, 40, 0.12);
}

html[dir="rtl"] .mPanel,
html[dir="rtl"] .icm-service-slide__aside {
    direction: rtl;
    text-align: right;
}

.mPanel--ops { border-top: 3px solid var(--icm-accent); }
.mPanel--creator { border-top: 3px solid #0ea5e9; }
.mPanel--trial { border-top: 3px solid var(--icm-warning); }

html[data-theme="light"] .mPanel--ops { border-top-color: var(--icm-royal); }
html[data-theme="light"] .mPanel--creator { border-top-color: var(--icm-orange); }
html[data-theme="light"] .mPanel--trial { border-top-color: var(--icm-orange); }

.mPanel__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--icm-text);
    line-height: 1.2;
}

.mPanel__lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--icm-muted);
    font-weight: 500;
}

.mPanel__features {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.mPanel__features li {
    position: relative;
    padding: 6px 0;
    padding-inline-start: 26px;
    font-size: 13px;
    font-weight: 500;
    color: var(--icm-text);
    text-align: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .mPanel__features li {
    color: #1e293b;
    border-bottom-color: rgba(208, 215, 222, 0.9);
}

html[data-theme="light"] .mPanel__features li {
    border-bottom-color: rgba(208, 215, 222, 0.9);
}

.mPanel__features li:last-child {
    border-bottom: none;
}

.mPanel__features li::before {
    content: "✓";
    position: absolute;
    top: 6px;
    inset-inline-start: 0;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: var(--icm-green);
    border-radius: 50%;
}

.mPanel__cta {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
}

.icm-service-slide__aside {
    padding-inline-end: 4px;
    text-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icm-service-slide__aside-title {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--icm-text);
}

.icm-service-slide__aside-text {
    margin: 0;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.65;
    font-weight: 500;
    color: var(--icm-muted);
    max-width: 28rem;
}

/* Contenu visible même si JS/anim en retard */
.icm-service-slide.is-active .icm-slide-reveal,
.icm-service-slide:first-child .icm-slide-reveal {
    opacity: 1;
    transform: none;
}

.icm-slide-reveal {
    opacity: 0;
    transform: translateY(16px);
}

.icm-service-slide.is-entering .icm-slide-reveal--panel {
    animation: icmSlideReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.icm-service-slide.is-entering .icm-slide-reveal--card {
    animation: icmSlideReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.icm-service-slide.is-entering .icm-slide-reveal--title {
    animation: icmSlideReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.icm-service-slide.is-entering .icm-slide-reveal--text {
    animation: icmSlideReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.icm-service-slide.is-entering .icm-slide-reveal--visual {
    animation: icmSlideReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes icmSlideReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .icm-slide-reveal,
    .icm-service-slide.is-entering .icm-slide-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .icm-slide-panel__img,
    .icm-service-slide.is-entering .icm-slide-panel__img {
        transform: none;
        transition: none;
    }
}

.icm-hero-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    line-height: 1;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.icm-hero-carousel__arrow:hover {
    border-color: var(--icm-accent);
    background: rgba(59, 130, 246, 0.2);
}

.icm-hero-carousel__arrow--prev { left: 24px; }
.icm-hero-carousel__arrow--next { right: 24px; }

html[dir="rtl"] .icm-hero-carousel__arrow--prev {
    left: auto;
    right: 24px;
}

html[dir="rtl"] .icm-hero-carousel__arrow--next {
    right: auto;
    left: 24px;
}

.icm-hero-carousel__footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.icm-hero-carousel__dots {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.icm-hero-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid var(--icm-muted);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.icm-hero-carousel__dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: var(--icm-accent);
    border-color: var(--icm-accent);
}

.icm-hero-carousel__counter {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

html[data-theme="light"] .icm-hero-carousel__counter {
    color: #475569;
    text-shadow: none;
}

.icm-home-below {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--icm-bg);
}

.icm-home-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: var(--icm-max);
    margin: 0 auto;
    padding: 18px 24px 14px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.icm-home-quick__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--icm-text);
    text-decoration: none;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icm-home-quick__link:hover {
    color: var(--icm-accent);
    border-color: var(--icm-accent);
    text-decoration: none;
}

/* Legacy : masquer tout paragraphe resté dans le carousel (prod ancien accueil.php) */
.icm-slide-panel__text {
    display: none !important;
}

.icm-home-caption {
    flex: 1;
    width: 100%;
    padding: 8px 24px 48px;
    box-sizing: border-box;
}

.icm-home-caption__inner {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.icm-home-caption__panel {
    display: none;
    padding: 24px 26px;
    text-align: start;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: icmCaptionIn 0.45s ease;
}

html[data-theme="light"] .icm-home-caption__panel {
    box-shadow: 0 4px 16px rgba(31, 35, 40, 0.08);
}

.icm-home-caption__panel.is-active {
    display: block;
}

.icm-home-caption__panel--ops { border-top: 3px solid var(--icm-accent); }
.icm-home-caption__panel--creator,
.icm-home-caption__panel--creation { border-top: 3px solid #0ea5e9; }
.icm-home-caption__panel--trial { border-top: 3px solid var(--icm-warning); }

.icm-home-caption__head {
    margin-bottom: 14px;
}

.icm-home-caption__badge {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--icm-accent);
}

.icm-home-caption__panel--creator .icm-home-caption__badge,
.icm-home-caption__panel--creation .icm-home-caption__badge { color: #0ea5e9; }
.icm-home-caption__panel--trial .icm-home-caption__badge { color: var(--icm-warning); }

.icm-home-caption__title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--icm-text);
}

.icm-home-caption__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.icm-home-caption__text {
    margin: 0;
    font-size: clamp(0.95rem, 1.1vw, 1.02rem);
    font-weight: 500;
    line-height: 1.72;
    color: var(--icm-muted);
}

.icm-home-caption__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--icm-accent);
    text-decoration: none;
}

.icm-home-caption__link::after {
    content: "→";
    font-size: 14px;
    line-height: 1;
}

html[dir="rtl"] .icm-home-caption__link::after {
    content: "←";
}

.icm-home-caption__link:hover {
    color: var(--icm-primary-hover);
    text-decoration: underline;
}

html[dir="rtl"] .icm-home-caption__panel {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .icm-home-caption__link {
    align-self: flex-end;
}

@keyframes icmCaptionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .icm-home-caption__panel {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .icm-slide-panel__body {
        padding-inline: max(60px, 5vw);
    }

    .icm-slide-panel__card {
        flex-basis: min(360px, calc(100% - 120px));
        max-width: min(360px, calc(100% - 120px));
    }

    .icm-hero-carousel__arrow--prev { left: 16px; }
    .icm-hero-carousel__arrow--next { right: 16px; }

    .icm-home-quick {
        padding-inline: var(--icm-public-gutter);
    }

    .icm-home-caption {
        padding-inline: var(--icm-public-gutter);
    }
}

@media (max-width: 768px) {
    .icm-public-header__inner { padding: 12px 16px; }
    .icm-public-header__right { width: 100%; justify-content: space-between; }
    .icm-public-main:not(.icm-public-main--home) { padding: 16px; }
    .icm-public-main--home { padding: 0; }
    .icm-public-nav a { padding: 12px 16px; min-height: 44px; }

    .icm-hero-carousel,
    .icm-service-slide,
    .icm-slide-panel {
        min-height: min(58vh, 520px);
    }

    .icm-service-slide {
        padding: 0;
    }

    .icm-slide-panel__body {
        justify-content: center;
        padding: 20px 52px 48px;
    }

    html[dir="rtl"] .icm-slide-panel__body {
        justify-content: center;
    }

    .icm-slide-panel .mPanel {
        padding: 34px 16px 20px;
    }

    .icm-slide-panel__card {
        flex-basis: min(340px, calc(100% - 104px));
        max-width: min(340px, calc(100% - 104px));
    }

    .icm-home-caption {
        padding: 8px 16px 32px;
    }

    .icm-home-caption__panel {
        padding: 20px 18px;
        text-align: center;
    }

    .icm-home-caption__link {
        align-self: center;
    }

    html[dir="rtl"] .icm-home-caption__link {
        align-self: center;
    }

    .icm-hero-carousel__arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .icm-hero-carousel__arrow--prev { left: 8px; }
    .icm-hero-carousel__arrow--next { right: 8px; }

    .icm-home-quick { padding: 12px 16px; }
}

/* ——— Page Créateur de sites ——— */

.icm-creator-page {
    width: 100%;
    gap: 28px;
}

.icm-creator-page .icm-creator-ops-band {
    margin-top: auto;
}

.icm-creator-page .icm-creator-cta {
    margin-top: 0;
}

.icm-creator-hero {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 16px 32px;
    align-items: center;
    margin-bottom: 0;
    padding: 18px 24px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
    overflow: hidden;
}

.icm-creator-hero__badge {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0ea5e9;
}

.icm-creator-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--icm-text);
}

.icm-creator-hero__lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--icm-muted);
    max-width: 36rem;
}

.icm-creator-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.icm-creator-hero__visual {
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
    max-height: 200px;
}

.icm-creator-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
}

.icm-creation-page .icm-creator-hero {
    gap: 12px 20px;
    padding: 14px 18px;
}

.icm-creation-page .icm-creator-hero__title {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.icm-creation-page .icm-creator-hero__lead {
    font-size: 0.92rem;
    max-width: 28rem;
}

.icm-creation-page .icm-creator-hero__visual {
    max-height: none;
    min-height: 0;
    height: auto;
    align-self: center;
    justify-self: end;
    width: min(100%, 380px);
}

.icm-creation-hero-slider {
    position: relative;
    width: 100%;
    max-width: 380px;
    min-height: 0;
    height: auto;
    max-height: 200px;
    aspect-ratio: 16 / 10;
    background: var(--icm-bg);
}

html[data-theme="light"] .icm-creation-hero-slider {
    background: #f1f5f9;
}

.icm-creation-hero-slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.icm-creation-hero-slider__img.is-active {
    opacity: 1;
    z-index: 1;
}

.icm-creator-steps {
    margin-bottom: 0;
}

.icm-creator-steps__head {
    margin-bottom: 20px;
    text-align: start;
}

.icm-creator-steps__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--icm-text);
}

.icm-creator-steps__lead {
    margin: 0;
    color: var(--icm-muted);
    font-size: 14px;
    line-height: 1.6;
}

.icm-creator-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.icm-creator-step {
    padding: 20px 18px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
    border-top: 3px solid #0ea5e9;
}

.icm-creator-step--ops {
    border-top-color: var(--icm-accent);
}

.icm-creator-step--ops .icm-creator-step__num {
    background: var(--icm-accent);
}

.icm-creator-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #0ea5e9;
    border-radius: 50%;
}

.icm-creator-step__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--icm-text);
}

.icm-creator-step__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--icm-muted);
}

.icm-creator-ops-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding: 22px 28px;
    border-radius: 16px;
    border: 1px solid var(--icm-border);
}

.icm-creator-ops-band__badge {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--icm-accent);
}

.icm-creator-ops-band__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--icm-text);
}

.icm-creator-ops-band__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--icm-muted);
    max-width: 42rem;
}

.icm-creator-ops-band__link {
    flex-shrink: 0;
}

.icm-creator-cta {
    padding: 28px 24px;
    text-align: center;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
    border-top: 3px solid #0ea5e9;
}

.icm-creator-cta__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--icm-text);
}

.icm-creator-cta__text {
    margin: 0 auto 20px;
    max-width: 40rem;
    font-size: 14px;
    line-height: 1.7;
    color: var(--icm-muted);
}

.icm-creator-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

html[dir="rtl"] .icm-creator-steps__head,
html[dir="rtl"] .icm-creator-step {
    text-align: right;
}

html[dir="rtl"] .icm-creator-hero__actions,
html[dir="rtl"] .icm-creator-cta__actions {
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .icm-creator-hero {
        gap: 20px 24px;
        padding: 20px 22px;
    }

    .icm-creator-hero__visual:not(.icm-creation-hero-slider) {
        max-height: 180px;
    }

    .icm-creator-hero__img:not(.icm-creation-hero-slider__img) {
        max-height: 180px;
    }

    .icm-creation-page .icm-creator-hero__visual {
        width: min(100%, 340px);
    }

    .icm-creation-hero-slider {
        max-width: 340px;
        max-height: 180px;
    }

    .icm-creator-steps__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .icm-creator-hero {
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }

    html[dir="rtl"] .icm-creator-hero__actions,
    html[dir="rtl"] .icm-creator-cta__actions {
        justify-content: center;
    }

    .icm-creator-hero__visual:not(.icm-creation-hero-slider) {
        order: -1;
        max-height: 160px;
    }

    .icm-creator-hero__img:not(.icm-creation-hero-slider__img) {
        max-height: 160px;
    }

    .icm-creation-page .icm-creator-hero__visual {
        order: -1;
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .icm-creation-hero-slider {
        order: -1;
        max-width: 100%;
        max-height: 170px;
    }

    .icm-creator-steps__list {
        grid-template-columns: 1fr;
    }

    .icm-creator-ops-band {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .icm-creator-ops-band__link {
        width: 100%;
        justify-content: center;
    }
}

/* ——— Utilitaires apex (css.txt / futur panel ApexCharts) ——— */

.hp-glass {
    background: rgba(22, 32, 51, 0.55);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .hp-glass {
    background: rgba(246, 248, 250, 0.85);
}

.hp-grid {
    display: grid;
    gap: 12px;
}

.icm-service-slide__layout.hp-grid {
    gap: 24px 40px;
}

.hp-status-success {
    color: var(--icm-success);
}

.hp-apex-theme .apexcharts-tooltip {
    background: #162033 !important;
    border: 1px solid #3b82f6 !important;
    color: #fff !important;
    border-radius: 16px !important;
}

.hp-apex-theme .apexcharts-legend-text {
    color: #cbd5e1 !important;
}

.hp-apex-theme .apexcharts-xaxis-label,
.hp-apex-theme .apexcharts-yaxis-label {
    fill: #94a3b8 !important;
}

/* ——— Panel /app/ — Créateur builder ——— */

.icm-panel .icm-public-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.icm-panel-user {
    font-size: 13px;
    color: var(--icm-muted);
}

.icm-app-main {
    gap: 20px;
}

.icm-app-steps {
    padding: 18px 20px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
}

.icm-app-steps__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.icm-app-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.icm-app-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.icm-app-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.icm-app-steps__item p {
    margin: 4px 0 0;
    font-size: 13px;
}

.icm-app-actions {
    margin: 8px 0 20px;
}

.icm-builder-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.icm-builder-template-card {
    padding: 20px 18px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 16px;
    border-top: 3px solid #0ea5e9;
}

.icm-builder-template-card--locked {
    opacity: 0.72;
    border-top-color: var(--icm-muted);
}

.icm-builder-template-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.icm-builder-template-card__text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--icm-muted);
}

.icm-builder-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icm-form-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.icm-form-label input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--icm-border);
    border-radius: 10px;
    background: var(--icm-bg);
    color: var(--icm-text);
    font-size: 14px;
}

.icm-builder-sites__title {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.icm-builder-sites__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icm-builder-site-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 12px;
}

.icm-builder-site-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icm-editor-blocks-order {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.icm-editor-block-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 10px;
    font-size: 13px;
}

.icm-builder-preview-links__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icm-builder-preview-links__list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid var(--icm-border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--icm-text);
    background: var(--icm-surface);
}

.icm-builder-preview-links__list a:hover {
    border-color: var(--icm-accent);
    color: var(--icm-accent);
}

.icm-builder-publish-form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--icm-border);
}

.icm-builder-publish-hint {
    margin: 10px 0 0;
    font-size: 12px;
}

.icm-builder-locked,
.icm-btn.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}

.icm-builder-template-card__demo {
    margin: 0 0 12px;
    font-size: 13px;
}

.icm-creator-steps-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 24px;
}

.icm-creator-step-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 12px;
    border-top: 3px solid #0ea5e9;
    color: var(--icm-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.icm-creator-step-link:hover {
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

.icm-creator-step-link.is-active {
    border-top-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.icm-creator-step-link.is-done {
    border-top-color: #2563eb;
}

.icm-creator-step-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.icm-creator-step-link__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.icm-creator-step-link.is-active .icm-creator-step-link__num {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.icm-creator-panel-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.icm-builder-templates--visual {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.icm-builder-template-card--visual {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.icm-builder-template-card__visual {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.icm-builder-template-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icm-builder-template-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.icm-builder-template-card--visual .icm-builder-template-card__title {
    margin-top: 0;
}

.icm-builder-template-card--visual .icm-builder-create-form,
.icm-builder-template-card--visual form {
    margin-top: auto;
    padding-top: 12px;
}

.icm-btn--block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .icm-creator-steps-bar {
        grid-template-columns: 1fr;
    }

    .icm-creator-step-link__label {
        font-size: 14px;
    }
}

.icm-hidden {
    display: none !important;
}

.icm-builder-editor__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.icm-builder-editor__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icm-builder-editor__layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.icm-builder-editor__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.icm-builder-editor__tabs button {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--icm-border);
    border-radius: 6px;
    background: var(--icm-surface);
    color: var(--icm-text);
    cursor: pointer;
}

.icm-builder-editor__tabs button.is-active {
    border-color: var(--icm-accent);
    color: var(--icm-accent);
}

.icm-builder-editor__panel {
    padding: 16px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
    max-height: calc(100vh - 200px);
    overflow: auto;
}

.icm-builder-editor__form h2 {
    margin: 16px 0 10px;
    font-size: 15px;
}

.icm-builder-editor__form h3 {
    margin: 14px 0 8px;
    font-size: 14px;
}

.icm-builder-editor__form .icm-form-label {
    display: block;
    margin-bottom: 10px;
}

.icm-builder-editor__form .icm-form-label span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--icm-muted);
}

.icm-builder-editor__form input[type="text"],
.icm-builder-editor__form input[type="url"],
.icm-builder-editor__form input[type="email"],
.icm-builder-editor__form textarea,
.icm-builder-editor__form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--icm-text);
    background: var(--icm-bg);
    border: 1px solid var(--icm-border);
    border-radius: 6px;
}

.icm-editor-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.icm-editor-color input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

.icm-editor-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.icm-editor-nav-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.icm-editor-nav-row__actions {
    display: flex;
    gap: 2px;
}

.icm-btn--xs {
    min-width: 36px;
    min-height: 36px;
    padding: 4px 8px;
    font-size: 12px;
}

.icm-editor-nav-row__label {
    flex: 1;
    margin-bottom: 0 !important;
}

.icm-editor-repeater__item {
    position: relative;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--icm-border);
    border-radius: 8px;
}

.icm-editor-repeater__item legend {
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px;
}

.icm-editor-repeater__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    background: transparent;
    color: var(--icm-muted);
    cursor: pointer;
}

.icm-builder-editor__preview {
    position: sticky;
    top: 80px;
    border: 1px solid var(--icm-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.icm-builder-editor__preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background: var(--icm-surface);
    border-bottom: 1px solid var(--icm-border);
}

.icm-builder-editor__preview-bar select {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--icm-border);
    background: var(--icm-bg);
    color: var(--icm-text);
}

.icm-builder-editor__preview iframe {
    display: block;
    width: 100%;
    height: min(72vh, 720px);
    border: 0;
    background: #fff;
}

.icm-builder-editor__status {
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .icm-builder-editor__layout {
        grid-template-columns: 1fr;
    }

    .icm-builder-editor__preview {
        position: static;
    }

    .icm-editor-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .icm-builder-editor__panel {
        max-height: none;
    }

    .icm-builder-editor__preview iframe {
        height: 50vh;
    }
}

.icm-account-menu {
    position: relative;
}

.icm-account-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--icm-text);
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
    cursor: pointer;
}

.icm-account-menu__panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    min-width: 180px;
    padding: 8px;
    background: var(--icm-surface);
    border: 1px solid var(--icm-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.icm-account-menu__panel a {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--icm-text);
    text-decoration: none;
    border-radius: 6px;
}

.icm-account-menu__panel a:hover {
    background: var(--icm-bg);
}

.icm-account-menu__soon {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--icm-muted);
}

.icm-creation-step-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.icm-creation-step-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
    text-decoration: none;
}

.icm-creation-step-card__more {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0ea5e9;
}

.icm-creation-detail {
    max-width: 760px;
    margin: 0 auto;
}

.icm-creation-detail__badge {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0ea5e9;
}

.icm-creation-detail__body p {
    line-height: 1.7;
    color: var(--icm-muted);
}

.icm-creation-detail__list,
.icm-creation-detail__steps {
    margin: 16px 0;
    padding-left: 20px;
    line-height: 1.7;
    color: var(--icm-muted);
}

.icm-creation-detail__cta {
    margin: 24px 0 16px;
}

.icm-creation-back {
    margin-top: 8px;
}

.icm-form-register {
    margin: 12px 0 0;
    text-align: center;
}

.icm-form-register__btn {
    width: 100%;
}

/* ——— Studio éditeur (mode plein écran) ——— */

.icm-studio-body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #0b1220;
    color: #e2e8f0;
}

.icm-studio-body.icm-editor--light {
    background: #f1f5f9;
    color: #0f172a;
}

.icm-studio {
    display: flex;
    flex-direction: column;
    height: 100vh;
    --studio-bar: #111827;
    --studio-surface: #1e293b;
    --studio-border: #334155;
    --studio-muted: #94a3b8;
    --studio-text: #e2e8f0;
    --studio-canvas-bg: #0f172a;
}

.icm-editor--light .icm-studio {
    --studio-bar: #ffffff;
    --studio-surface: #ffffff;
    --studio-border: #e2e8f0;
    --studio-muted: #64748b;
    --studio-text: #0f172a;
    --studio-canvas-bg: #e2e8f0;
}

.icm-studio-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: var(--studio-bar);
    border-bottom: 1px solid var(--studio-border);
    z-index: 20;
}

.icm-studio-bar__left,
.icm-studio-bar__center,
.icm-studio-bar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.icm-studio-bar__back {
    font-size: 13px;
    color: var(--studio-muted);
    text-decoration: none;
}

.icm-studio-bar__back:hover {
    color: #38bdf8;
}

.icm-studio-bar__site {
    font-size: 14px;
    font-weight: 700;
}

.icm-studio-bar__badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.icm-studio-save {
    font-size: 12px;
    color: var(--studio-muted);
}

.icm-studio-save[data-state="saving"] {
    color: #fbbf24;
}

.icm-studio-save[data-state="saved"] {
    color: #4ade80;
}

.icm-studio-save[data-state="error"] {
    color: #f87171;
}

.icm-studio-icon-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
}

.icm-studio-device {
    display: inline-flex;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    overflow: hidden;
}

.icm-studio-device button {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
}

.icm-studio-device button.is-active {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.icm-studio-page-select {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid var(--studio-border);
    background: var(--studio-surface);
    color: inherit;
}

.icm-studio-publish {
    padding: 8px 14px;
    font-size: 13px;
}

.icm-studio-save-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.icm-studio-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    flex: 1;
    min-height: 0;
}

.icm-studio-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px;
    background: var(--studio-bar);
    border-right: 1px solid var(--studio-border);
    overflow: auto;
}

.icm-studio-progress {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.icm-studio-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--studio-muted);
}

.icm-studio-progress li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--studio-border);
    font-size: 10px;
    font-weight: 700;
}

.icm-studio-progress li.is-done {
    color: #4ade80;
}

.icm-studio-progress li.is-done span {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.icm-studio-nav__items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icm-studio-nav__btn {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
}

.icm-studio-nav__btn.is-active {
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    font-weight: 600;
}

.icm-studio-templates {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icm-studio-templates__title {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--studio-muted);
}

.icm-studio-tpl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icm-studio-tpl-row--icons {
    gap: 4px;
}

.icm-studio-tpl-btn {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--studio-border);
    background: rgba(15, 23, 42, 0.35);
    color: inherit;
    cursor: pointer;
}

.icm-studio-tpl-btn--square { border-radius: 0; }
.icm-studio-tpl-btn--soft { border-radius: 8px; }
.icm-studio-tpl-btn--pill { border-radius: 999px; }

.icm-studio-tpl-btn.is-active,
.icm-studio-tpl-icon.is-active,
.icm-studio-tpl-line.is-active {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

.icm-studio-tpl-line {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid var(--studio-border);
    background: transparent;
    cursor: pointer;
    border-radius: 0;
}

.icm-studio-tpl-line__bar {
    display: block;
    width: 100%;
    height: 0;
    border-top: 2px solid var(--studio-muted);
}

.icm-studio-tpl-line__bar--dashed {
    border-top-style: dashed;
}

.icm-studio-tpl-line__bar--thick {
    border-top-width: 4px;
}

.icm-studio-tpl-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--studio-border);
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0;
}

.icm-studio-tpl-palettes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.icm-studio-tpl-palette {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--studio-border);
    background: transparent;
    cursor: pointer;
    border-radius: 0;
}

.icm-studio-tpl-palette span {
    flex: 1;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.icm-studio-canvas {
    padding: 0;
    background: var(--studio-canvas-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.icm-studio-browser {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    background: #fff;
    transition: max-width 0.2s ease;
}

.icm-studio-browser__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #e5e7eb;
    border-bottom: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.icm-editor--dark .icm-studio-browser__chrome {
    background: #1f2937;
    border-bottom-color: #374151;
}

.icm-studio-browser__dots {
    display: flex;
    gap: 5px;
}

.icm-studio-browser__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
}

.icm-studio-browser__dots span:nth-child(1) { background: #f87171; }
.icm-studio-browser__dots span:nth-child(2) { background: #fbbf24; }
.icm-studio-browser__dots span:nth-child(3) { background: #4ade80; }

.icm-studio-browser__url {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icm-editor--dark .icm-studio-browser__url {
    background: #111827;
    border-color: #374151;
    color: #cbd5e1;
}

.icm-studio-canvas__frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: max-width 0.2s ease;
}

.icm-studio-canvas.icm-studio-canvas--mobile {
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.icm-studio-browser[data-device="mobile"] {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #cbd5e1;
}

.icm-editor--dark .icm-studio-browser[data-device="mobile"] {
    border-color: #374151;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.icm-studio-browser[data-device="mobile"] .icm-studio-canvas__frame {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    border-left: none;
    border-right: none;
}

.icm-studio-canvas__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 120px);
    border: 0;
    background: #fff;
}

.icm-studio-browser[data-device="mobile"] .icm-studio-canvas__frame iframe {
    min-height: calc(100vh - 140px);
}

.icm-studio-stylekit {
    padding: 12px 14px;
    border-bottom: 1px solid var(--studio-border);
    background: rgba(15, 23, 42, 0.25);
}

.icm-editor--light .icm-studio-stylekit {
    background: #f8fafc;
}

.icm-studio-stylekit__title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--studio-muted);
}

.icm-studio-stylekit__colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.icm-studio-stylekit .icm-editor-color input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--studio-border);
    border-radius: 0;
    cursor: pointer;
}

.icm-studio-inspector {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--studio-surface);
    border-left: 1px solid var(--studio-border);
    overflow: auto;
}

.icm-studio-welcome {
    margin: 0;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    background: rgba(14, 165, 233, 0.12);
    border-bottom: 1px solid var(--studio-border);
    color: inherit;
}

.icm-studio-welcome__dismiss {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.icm-studio-form {
    padding: 12px;
}

.icm-studio-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icm-studio-panel[hidden] {
    display: none !important;
}

.icm-preview-placement [data-icm-drop].icm-drop-active {
    cursor: copy;
}

.icm-preview-placement [data-icm-drop].icm-drop-active:hover {
    outline: 2px dashed #22c55e;
    outline-offset: 3px;
    background: rgba(34, 197, 94, 0.08);
}

.icm-preview-placement-hint {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ecfdf5;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #22c55e;
    border-radius: 999px;
    pointer-events: none;
}

.icm-studio-acc {
    border: 1px solid var(--studio-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.icm-editor--light .icm-studio-acc {
    background: #f8fafc;
}

.icm-studio-acc summary {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.icm-studio-acc summary::-webkit-details-marker {
    display: none;
}

.icm-studio-acc__body {
    padding: 0 14px 14px;
}

.icm-studio-form .icm-form-label {
    display: block;
    margin-bottom: 10px;
}

.icm-studio-form .icm-form-label span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--studio-muted);
}

.icm-studio-form input[type="text"],
.icm-studio-form input[type="url"],
.icm-studio-form input[type="email"],
.icm-studio-form textarea,
.icm-studio-form select {
    width: 100%;
    padding: 9px 11px;
    font-size: 13px;
    color: inherit;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--studio-border);
    border-radius: 8px;
}

.icm-editor--light .icm-studio-form input[type="text"],
.icm-editor--light .icm-studio-form input[type="url"],
.icm-editor--light .icm-studio-form input[type="email"],
.icm-editor--light .icm-studio-form textarea {
    background: #fff;
}

.icm-studio-form .icm-form-hint {
    font-size: 11px;
    color: var(--studio-muted);
    margin: 0 0 10px;
}

.icm-btn--sm {
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .icm-studio-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(50vh, 1fr) auto;
    }

    .icm-studio-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--studio-border);
    }

    .icm-studio-progress {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .icm-studio-nav__items {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .icm-studio-inspector {
        max-height: 42vh;
        border-left: none;
        border-top: 1px solid var(--studio-border);
    }

    .icm-studio-canvas__frame iframe {
        min-height: 50vh;
    }

    .icm-studio-save-btn {
        display: none;
    }
}

/* —— Bibliothèque gauche (templates par catégorie) —— */
.icm-studio-library {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--studio-bar);
    border-right: 1px solid var(--studio-border);
    overflow-x: hidden;
    overflow-y: auto;
}

.icm-studio-lib-tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid var(--studio-border);
}

.icm-studio-lib-tabs button {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
}

.icm-studio-lib-tabs button.is-active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.icm-studio-lib-panel {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 10px 10px 16px;
}

.icm-studio-lib-panel.is-active {
    display: block;
}

.icm-studio-lib-section {
    margin-bottom: 14px;
}

.icm-studio-lib-acc {
    border-bottom: 1px solid var(--studio-border);
}

.icm-studio-lib-acc > summary {
    margin: 0;
    padding: 10px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--studio-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.icm-studio-lib-acc > summary::-webkit-details-marker {
    display: none;
}

.icm-studio-lib-acc > summary::after {
    content: '▸';
    float: right;
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.icm-studio-lib-acc[open] > summary::after {
    transform: rotate(90deg);
}

.icm-studio-lib-acc__body {
    padding: 0 10px 12px;
}

.icm-studio-lib-section h3 {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--studio-muted);
}

.icm-studio-lib-pack {
    margin: 0 0 6px;
    font-size: 11px;
    color: var(--studio-muted);
}

.icm-studio-tpl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icm-studio-tpl-grid--buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.icm-studio-tpl-chip {
    padding: 6px 10px;
    font-size: 11px;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    color: inherit;
    cursor: pointer;
}

.icm-editor--light .icm-studio-tpl-chip {
    background: #fff;
}

.icm-studio-tpl-chip.is-active,
.icm-studio-tpl-size.is-active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.icm-studio-tpl-grid--card-tpl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.icm-studio-tpl-card-preview {
    display: block;
    width: 100%;
    padding: 10px 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-surface);
    color: var(--studio-text);
    cursor: grab;
}

.icm-editor--dark .icm-studio-tpl-card-preview--classic {
    border: 1px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
}

.icm-editor--dark .icm-studio-tpl-card-preview--bordered {
    border: 2px solid #38bdf8;
    background: #1e293b;
    color: #e2e8f0;
}

.icm-editor--dark .icm-studio-tpl-card-preview--shadow {
    border: 1px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.icm-editor--dark .icm-studio-tpl-card-preview--minimal {
    border: none;
    background: #334155;
    color: #e2e8f0;
}

.icm-editor--dark .icm-studio-tpl-card-preview--elevated {
    border: none;
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.icm-editor--dark .icm-studio-tpl-card-preview--accent {
    border: none;
    border-left: 3px solid #22c55e;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 197, 94, 0.12));
    color: #e2e8f0;
}

.icm-studio-tpl-card-preview--classic { border: 1px solid #e2e8f0; background: #fff; color: #0f172a; }
.icm-studio-tpl-card-preview--bordered { border: 2px solid #2563eb; background: #fff; color: #0f172a; }
.icm-studio-tpl-card-preview--shadow { box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); background: #fff; color: #0f172a; }
.icm-studio-tpl-card-preview--minimal { border: none; background: #f1f5f9; color: #0f172a; }
.icm-studio-tpl-card-preview--elevated { border: none; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); background: #fff; color: #0f172a; }
.icm-studio-tpl-card-preview--accent { border-left: 3px solid #22c55e; background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(34,197,94,0.06)); color: #0f172a; }

.icm-studio-tpl-card-preview.is-active {
    border-color: #38bdf8 !important;
    outline: 2px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.icm-editor--dark .icm-studio-tpl-card-preview.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

.icm-studio-preview-tab {
    white-space: nowrap;
}

.icm-studio-selection-label {
    display: block;
    margin: 0 0 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
}

.icm-studio-ctx {
    position: fixed;
    z-index: 99999;
    min-width: 210px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    background: var(--studio-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.icm-studio-ctx__item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--studio-text, #e2e8f0);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.icm-studio-ctx__item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.icm-studio-ctx__item[hidden] {
    display: none;
}

.icm-studio-ctx__sep {
    border: none;
    border-top: 1px solid var(--studio-border);
    margin: 4px 0;
}

.icm-editor--light .icm-studio-ctx__item {
    color: #0f172a;
}

.icm-studio-tpl-card-sizes {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.icm-studio-tpl-size {
    flex: 1;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
}

.icm-studio-tpl-btn--solid {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.icm-studio-tpl-btn--outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.icm-studio-tpl-btn--ghost {
    background: transparent;
    color: #2563eb;
    border: 1px dashed #94a3b8;
}

.icm-studio-tpl-btn--accent {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.icm-studio-tpl-btn--dark {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.icm-studio-tpl-line__bar--gradient {
    background: linear-gradient(90deg, transparent, #94a3b8, transparent);
    height: 2px;
}

.icm-studio-tpl-line__bar--spacer {
    height: 8px;
    background: transparent;
}

/* —— Barre haute : palettes + couleurs site —— */
.icm-studio-bar__theme {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--studio-border);
}

.icm-studio-bar__theme-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icm-studio-bar__theme-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--studio-muted);
    white-space: nowrap;
}

.icm-studio-bar__palettes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icm-studio-bar__palette {
    display: flex;
    width: 52px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--studio-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.icm-studio-bar__palette span {
    flex: 1;
    min-width: 0;
}

.icm-studio-bar__palette.is-active {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

.icm-studio-bar__site-colors {
    gap: 6px;
}

.icm-studio-bar__swatch {
    display: block;
    width: 28px;
    height: 28px;
    padding: 2px;
    border: 1px solid var(--studio-border);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.icm-studio-bar__swatch input[type="color"] {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* —— Panneau style droit —— */
.icm-studio-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.icm-studio-stylebar {
    flex-shrink: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--studio-border);
    background: rgba(15, 23, 42, 0.25);
}

.icm-editor--light .icm-studio-stylebar {
    background: #f8fafc;
}

.icm-studio-stylebar__head h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
}

.icm-studio-stylebar__hint {
    margin: 0 0 10px;
    font-size: 11px;
}

.icm-studio-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
}

.icm-editor--light .icm-studio-text-toolbar {
    background: #fff;
}

.icm-studio-tb-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.icm-studio-tb-btn.is-active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.icm-studio-tb-sep {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: var(--studio-border);
}

.icm-studio-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.icm-studio-device button[aria-pressed="true"] {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.icm-editor-block-row--flash {
    animation: icm-block-flash 1.2s ease;
}

@keyframes icm-block-flash {
    0%, 100% { background: transparent; }
    30% { background: rgba(14, 165, 233, 0.2); }
}

@media (max-width: 1100px) {
    .icm-studio-bar__theme {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
    }

    .icm-studio-library {
        max-height: 38vh;
        border-right: none;
        border-bottom: 1px solid var(--studio-border);
    }
}

/* Bibliothèque : glisser-déposer */
.icm-studio-lib-hint {
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--studio-muted);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 8px;
}

.icm-studio-dragging .icm-studio-canvas {
    outline: 2px dashed #22c55e;
    outline-offset: -2px;
}

.icm-studio-placement .icm-studio-canvas {
    outline: 2px dashed #38bdf8;
    outline-offset: -2px;
}

.icm-studio-tpl-icon[draggable="true"],
.icm-studio-tpl-btn[draggable="true"] {
    cursor: grab;
}

.icm-studio-tpl-icon:active,
.icm-studio-tpl-btn:active {
    cursor: grabbing;
}

/* Navigation éditeur (panneau droit) */
.icm-studio-inspector-nav {
    flex-shrink: 0;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--studio-border);
    background: rgba(15, 23, 42, 0.2);
}

.icm-editor--light .icm-studio-inspector-nav {
    background: #f1f5f9;
}

.icm-studio-progress--compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.icm-studio-nav__items--inspector {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.icm-studio-nav__items--inspector .icm-studio-nav__btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 8px 6px;
    font-size: 11px;
}

.icm-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.icm-studio-row-actions {
    margin: 0 0 10px;
}

/* Aperçu mobile isolé (responsive, sans coque téléphone) */
.icm-studio-phone-shell,
.icm-studio-phone-status,
.icm-studio-phone-tabbar {
    display: none !important;
}

.icm-studio-browser[data-device="mobile"] {
    max-width: 390px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

/* Menu déroulant palettes */
.icm-studio-palette-picker {
    position: relative;
}

.icm-studio-palette-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    color: inherit;
    cursor: pointer;
}

.icm-editor--light .icm-studio-palette-toggle {
    background: #fff;
}

.icm-studio-palette-toggle__caret {
    font-size: 10px;
    opacity: 0.7;
}

.icm-studio-palette-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 220px;
    max-height: 320px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--studio-border);
    border-radius: 10px;
    background: var(--studio-bar);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.icm-studio-palette-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.icm-studio-palette-option:hover,
.icm-studio-palette-option.is-active {
    background: rgba(14, 165, 233, 0.15);
}

.icm-studio-palette-option__swatches {
    display: flex;
    width: 54px;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--studio-border);
    flex-shrink: 0;
}

.icm-studio-palette-option__swatches span {
    flex: 1;
}

.icm-studio-palette-option__label {
    font-size: 12px;
    font-weight: 600;
}

.icm-editor-repeater__item.is-selected {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
    background: rgba(14, 165, 233, 0.08);
}
