#region Layout global – éviter le rognage horizontal
html, body {
    overflow-x: auto !important;
}

#editorSection .card,
#editorSection .card-body,
#templateEditorContainer {
    overflow: visible !important;
}

/* Étendre les conteneurs Bootstrap autour de l'éditeur */
#editorSection,
#editorSection .row,
#editorSection .col-12 {
    overflow: visible !important;
}

#editorSection .card-body {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* S'assurer que la zone éditeur peut dépasser si nécessaire */
#templateEditorContainer {
    width: 100% !important;
}
#endregion
/* Éditeur d'e-mails professionnel - Style Brevo */

/* Container principal de l'éditeur */
.email-editor-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Header de l'éditeur */
.email-editor-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.editor-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.editor-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Boutons de l'éditeur */
.editor-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.editor-btn.primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.editor-btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.editor-btn.success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.editor-btn.success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}

/* Zone de travail de l'éditeur */
.email-editor-workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar gauche - Blocs */
.editor-blocks-panel {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    padding: 20px;
}

.blocks-section {
    margin-bottom: 25px;
}

.blocks-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.block-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.block-item:active {
    transform: translateY(0);
    background: #dee2e6;
}

.block-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.block-icon {
    width: 20px;
    height: 20px;
    color: #6c757d;
}

.block-text {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

/* Zone d'édition principale */
.editor-canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.editor-canvas-wrapper {
    flex: 1;
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-canvas {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 400px;
    position: relative;
    margin: 0;
}

/* Contrôleur de hauteur */
.canvas-height-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.height-control-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
}

.height-control-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.height-control-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.height-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Sidebar droite - Propriétés */
.editor-properties-panel {
    width: 320px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    overflow-y: auto;
    padding: 20px;
}

.properties-section {
    margin-bottom: 25px;
}

.properties-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-group {
    margin-bottom: 15px;
}

.property-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 5px;
    display: block;
}

.property-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.property-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Boutons d'action rapide */
.editor-quick-actions {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.quick-action-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Modal de l'éditeur */
.editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.editor-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 95%;
    height: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.editor-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.editor-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.editor-modal-close:hover {
    background: #c82333;
}

.editor-modal-body {
    flex: 1;
    overflow: hidden;
}

/* Variables dynamiques */
.variable-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bbdefb;
    cursor: pointer;
    display: inline-block;
    margin: 2px;
}

.variable-tag:hover {
    background: #bbdefb;
}

/* Responsive */
@media (max-width: 1200px) {
    .editor-blocks-panel,
    .editor-properties-panel {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .email-editor-workspace {
        flex-direction: column;
    }
    
    .editor-blocks-panel,
    .editor-properties-panel {
        width: 100%;
        height: 200px;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .editor-canvas-wrapper {
        padding: 10px;
    }
    
    .editor-quick-actions {
        display: none;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.editor-modal {
    animation: slideIn 0.3s ease;
}

/* Styles pour GrapesJS */
.gjs-editor {
    height: 100% !important;
}

.gjs-cv-canvas {
    background: #f8f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gjs-cv-canvas .gjs-frame {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gjs-cv-canvas .gjs-frame iframe {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Corriger le décalage du body et faire occuper tout l'espace */
.gjs-cv-canvas .gjs-frame iframe body {
    margin: 0 !important;
    padding: 20px !important;
    background: #fff !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

/* Forcer le canvas à occuper tout l'espace disponible */
.gjs-cv-canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
}

/* Masquer la barre noire en haut de GrapesJS */
.gjs-cv-canvas .gjs-cv-canvas__frames {
    border: none !important;
}

.gjs-cv-canvas .gjs-frame {
    border: none !important;
    box-shadow: none !important;
}

/* Masquer les éléments de contrôle GrapesJS */
.gjs-cv-canvas .gjs-cv-canvas__frames::before {
    display: none !important;
}

/* Masquer la barre d'outils GrapesJS */
.gjs-pn-panel.gjs-pn-commands {
    display: none !important;
}

/* Masquer la barre d'outils principale */
.gjs-pn-panel.gjs-pn-options {
    display: none !important;
}

/* Masquer la barre de navigation */
.gjs-pn-panel.gjs-pn-views {
    display: none !important;
}

/* Masquer toutes les barres d'outils GrapesJS */
.gjs-pn-panel {
    display: none !important;
}

/* Masquer la barre de statut */
.gjs-pn-panel.gjs-pn-status {
    display: none !important;
}

/* Masquer les boutons de contrôle du canvas */
.gjs-cv-canvas__frames .gjs-frame {
    border-top: none !important;
}

/* Masquer les éléments de débogage GrapesJS */
.gjs-cv-canvas__frames::after {
    display: none !important;
}

/* Masquer les overlays GrapesJS */
.gjs-cv-canvas__frames .gjs-frame::before {
    display: none !important;
}

/* Forcer l'iframe à occuper tout l'espace */
.gjs-cv-canvas .gjs-frame {
    width: 100% !important;
    height: 100% !important;
}

.gjs-cv-canvas .gjs-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Forcer le contenu à occuper toute la largeur */
.gjs-cv-canvas .gjs-frame iframe html {
    width: 100% !important;
    height: 100% !important;
}

/* Ajuster le conteneur principal de l'éditeur */
.email-editor-container {
    height: 80vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.email-editor-workspace {
    flex: 1 !important;
    display: flex !important;
    height: 100% !important;
}

.editor-canvas-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.editor-canvas-wrapper {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#integratedEmailEditorCanvas {
    flex: 1 !important;
    height: 500px !important; /* Hauteur fixe par défaut */
    min-height: 300px !important;
}

/* Styles pour les contrôles de hauteur */
.canvas-height-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.height-label {
    font-size: 14px !important;
    color: #495057 !important;
    margin: 0 !important;
}

.height-control-btn {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #dee2e6 !important;
    background: white !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.height-control-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
}

.height-control-btn.active {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.height-control-btn i {
    font-size: 12px !important;
}

/* Styles pour le contenu du template par défaut */
.gjs-cv-canvas .gjs-frame iframe body > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Forcer tous les éléments du template à occuper toute la largeur */
.gjs-cv-canvas .gjs-frame iframe body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ====== MISE EN PAGE STABLE GRAPESJS (3 COLONNES) ====== */
.email-editor-workspace {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    min-width: 0 !important;
    overflow-x: auto !important; /* autoriser le scroll horizontal global si trop étroit */
}

/* Panneau blocs (gauche) */
#blocksPanel.editor-panel {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 320px !important;
    overflow: auto !important;
}

/* Panneau propriétés (droite) */
#integratedElementProperties.editor-panel {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    max-width: 360px !important;
    overflow: auto !important;
}

/* Colonne centrale (canvas) prend l'espace restant */
.editor-canvas-container {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Pas de largeur minimale */
    overflow: visible !important; /* pas de scroll interne */
}

/* Le conteneur global peut scroller si l'écran est trop petit */
.email-editor-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Espace de travail flexible */
.email-editor-workspace {
    min-width: 0 !important; /* Flexible, pas de largeur minimale fixe */
}

/* Éviter le rognage horizontal du frame et autoriser le scroll si besoin */
.editor-canvas-wrapper,
#integratedEmailEditorCanvas {
    overflow: visible !important; /* pas de scroll interne */
}

.gjs-cv-canvas,
.gjs-cv-canvas .gjs-frame,
.gjs-cv-canvas .gjs-frame iframe {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* pas de barres dans l'iframe */
}

/* Centrer confortablement le contenu dans le canvas */
#integratedEmailEditorCanvas > div {
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* S'assurer que la zone canvas prend tout l'espace disponible */
#integratedEmailEditorCanvas {
    min-width: 100% !important;
    width: 100% !important;
}

/* Hauteur auto: le canvas s'adapte au contenu, pas de barre grise */
#integratedEmailEditorCanvas {
    height: auto !important;
    min-height: 0 !important;
}

/* Nettoyage de la barre grise en haut du canvas */
.gjs-cv-canvas {
    background: transparent !important;
    border: none !important;
}
.gjs-cv-canvas .gjs-cv-canvas__frames {
    border: none !important;
    background: transparent !important;
}
.gjs-cv-canvas .gjs-frame {
    border: none !important;
    box-shadow: none !important;
}

.gjs-blocks-cs {
    background: #fff !important;
    padding: 10px !important;
}

.gjs-block {
    width: calc(50% - 10px) !important;
    min-height: 60px !important;
    margin: 5px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gjs-block:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.gjs-block__media {
    width: 100% !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.gjs-block-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #495057 !important;
    text-align: center !important;
    padding: 5px !important;
}

.gjs-pn-panel {
    border-color: #e9ecef !important;
}

.gjs-pn-btn {
    color: #495057 !important;
}

.gjs-pn-btn:hover {
    background: #f8f9fa !important;
}

/* Canvas GrapesJS */
.gjs-frame {
    border: none !important;
}

/* Toolbar GrapesJS */
.gjs-toolbar {
    background: #007bff !important;
    border-radius: 4px !important;
}

.gjs-toolbar-item {
    color: #fff !important;
}

/* Layer manager */
.gjs-layer {
    padding: 8px !important;
}

/* Style manager */
.gjs-sm-sector {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
}

.gjs-sm-sector-title {
    background: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
    padding: 10px !important;
}

.gjs-sm-property {
    padding: 8px 10px !important;
}

/* Labels des propriétés de style */
.gjs-sm-property .gjs-sm-label {
    font-size: 12px !important;
    color: #495057 !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

/* Champs input des propriétés */
.gjs-sm-property .gjs-field-integer,
.gjs-sm-property .gjs-field-select,
.gjs-sm-property .gjs-field-radio {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
}

.gjs-sm-property .gjs-field-integer input {
    width: 60px !important;
    padding: 4px 8px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    text-align: center !important;
}

/* Sélecteur d'unité (px, %, etc.) */
.gjs-sm-property .gjs-field-units {
    margin-left: 5px !important;
}

.gjs-sm-property .gjs-field-unit {
    padding: 4px 8px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.gjs-sm-property .gjs-field-unit:hover {
    background: #e9ecef !important;
}

/* Boutons radio pour alignement */
.gjs-sm-property .gjs-field-radio .gjs-radio-item {
    padding: 6px 10px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    cursor: pointer !important;
}

.gjs-sm-property .gjs-field-radio .gjs-radio-item:hover,
.gjs-sm-property .gjs-field-radio .gjs-radio-item.gjs-radio-item-checked {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
}

/* Select dropdown */
.gjs-sm-property select {
    width: 100% !important;
    padding: 6px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    background: #fff !important;
}

/* Trait manager */
.gjs-trt-trait {
    padding: 8px 10px !important;
}

.gjs-field {
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
}

/* ====== STYLES POUR LE RICH TEXT EDITOR (RTE) ====== */

/* Barre d'outils RTE qui apparaît au double-clic sur un texte */
.gjs-rte-toolbar {
    position: absolute !important;
    background: #333 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    z-index: 10001 !important;
    display: flex !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

/* Boutons de la barre RTE */
.gjs-rte-action {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.gjs-rte-action:hover {
    background: rgba(255,255,255,0.1) !important;
}

.gjs-rte-action.gjs-rte-active {
    background: #007bff !important;
    color: #fff !important;
}

/* Style quand on édite un texte */
.gjs-editing {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
    min-height: 20px !important;
}

/* Curseur d'édition visible */
[contenteditable="true"] {
    cursor: text !important;
    outline: none !important;
}

[contenteditable="true"]:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
}

/* Sélection de texte dans l'éditeur */
.gjs-frame-wrapper [contenteditable="true"]::selection {
    background: #007bff !important;
    color: #fff !important;
}

/* S'assurer que le RTE toolbar est toujours visible */
.gjs-rte-toolbar-fixed {
    position: fixed !important;
    top: auto !important;
    bottom: auto !important;
}

/* Style pour les éléments sélectionnés */
.gjs-selected {
    outline: 2px solid #3b97e3 !important;
    outline-offset: -2px !important;
}

/* Composant texte en mode hover */
.gjs-hovered {
    outline: 1px dashed #3b97e3 !important;
}

/* Input pour les liens dans RTE */
.gjs-rte-toolbar input[type="text"] {
    background: #444 !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    min-width: 200px !important;
}

.gjs-rte-toolbar input[type="text"]:focus {
    outline: none !important;
    border-color: #007bff !important;
}

/* Badge pour les composants texte */
.gjs-badge {
    background: #007bff !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Indicateur de type de composant */
.gjs-comp-selected .gjs-badge {
    display: block !important;
}

/* ====== STYLES POUR LE PANNEAU DE VARIABLES ====== */

/* Catégorie de variables */
.variable-category {
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

/* Titre de catégorie (cliquable) */
.variable-category-title {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    user-select: none;
}

.variable-category-title:hover {
    background: #e9ecef;
}

.variable-category-title i:first-child {
    color: #667eea;
}

/* Liste des variables */
.variable-list {
    padding: 8px;
    background: white;
}

/* Item de variable */
.variable-item {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.variable-item:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    transform: translateX(3px);
}

.variable-item:active {
    transform: translateX(0);
    background: #bbdefb;
}

.variable-item code {
    background: transparent;
    color: #1976d2;
    font-size: 11px;
    font-weight: 500;
    word-break: break-all;
}

.variable-item:last-child {
    margin-bottom: 0;
}

/* Animation pour le toast */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Toast de confirmation de variable */
.variable-toast {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.variable-toast code {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Ajuster la largeur du panneau blocs pour accueillir les variables */
.editor-blocks-panel {
    width: 300px !important;
    min-width: 300px !important;
}

/* Responsive pour le panneau de variables */
@media (max-width: 1400px) {
    .editor-blocks-panel {
        width: 260px !important;
        min-width: 260px !important;
    }

    .variable-item code {
        font-size: 10px;
    }
}

/* Style pour les variables dans le canvas */
.gjs-cv-canvas .gjs-frame iframe body [data-variable] {
    background-color: #e3f2fd !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}
