/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* 🎨 Mega Menu - Images plus grandes
-----------------------------------------------------------------*/

.menu-single-page {
    background-color: #0F4F79;
}

#top-bar {
    background-color: #0F4F79;
}

/* Agrandir les feature boxes dans le mega menu */
.mega-menu-content .feature-box {
    --cnvs-featured-box-icon: 6rem; /* Taille de base augmentée de 4rem à 6rem */
    --cnvs-featured-box-icon-size: 2.5rem; /* Taille des icônes augmentée */
}

/* Permettre aux images d'avoir une taille personnalisée */
.mega-menu-content .fbox-icon img {
    width: auto !important;
    height: auto !important;
    max-width: 100px; /* Taille maximum autorisée */
    max-height: 80px;
    object-fit: contain; /* Préserver les proportions */
    border-radius: 8px !important; /* Coins arrondis au lieu de circulaire */
    background-color: transparent !important; /* Pas de fond coloré */
}

/* Ajuster la largeur du conteneur d'icône pour s'adapter au contenu */
.mega-menu-content .fbox-icon {
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Styles spécifiques pour certaines images si nécessaire */
.mega-menu-content .fbox-icon img[src*="voip"] {
    max-width: 120px; /* VoIP image un peu plus large */
}

.mega-menu-content .fbox-icon img[src*="infogerance"] {
    max-width: 110px; /* Infogérance image */
}

/* Améliorer l'espacement dans le mega menu */
.mega-menu-content .feature-box .fbox-content {
    padding-left: 1rem;
}

/* Responsive : réduire sur mobile */
@media (max-width: 768px) {
    .mega-menu-content .fbox-icon img {
        max-width: 60px;
        max-height: 50px;
    }
}

/* 🖼️ Slider Hero - Image principale plus grande
-----------------------------------------------------------------*/

/* Agrandir l'image du slider principal */
#slider .col-md-5 img {
    width: 120% !important; /* Agrandir l'image de 20% */
    max-width: none !important; /* Supprimer la limite de largeur */
    height: auto;
    transform: scale(1.1) translateX(-20px); /* Effet de zoom + décalage vers la gauche */
    transform-origin: center center;
}

/* Permettre le débordement pour l'image plus grande */
#slider .col-md-5 {
    overflow: visible;
    position: relative;
}

/* Ajuster la hauteur du slider pour accueillir l'image plus grande */
.slider-element {
    min-height: 720px !important; /* Hauteur ajustée */
}

/* Ajuster l'espacement sur grand écran */
@media (min-width: 1200px) {
    #slider .col-md-5 img {
        width: 125% !important;
        transform: scale(1.15) translateX(-125px);
    }
    
    .slider-element {
        min-height: 750px !important;
    }
}

/* Ajuster sur écran moyen */
@media (max-width: 1199px) and (min-width: 992px) {
    #slider .col-md-5 img {
        width: 115% !important;
        transform: scale(1.08) translateX(-15px);
    }
}

/* Responsive : maintenir une taille raisonnable sur tablette */
@media (max-width: 991px) {
    #slider .col-md-5 img {
        width: 100% !important;
        transform: scale(1) !important;
    }
    
    .slider-element {
        min-height: 600px !important;
    }
}

/* Mobile : taille normale */
@media (max-width: 768px) {
    .slider-element {
        min-height: 500px !important;
    }
}

/* 🎯 Section Services - Images plus grandes
-----------------------------------------------------------------*/

/* Agrandir les images de la section services principale (pas le mega-menu) */
#content .feature-box .fbox-icon img {
    width: auto !important;
    height: auto !important;
    max-width: 120px !important; /* Plus grand que le mega-menu */
    max-height: 100px !important;
    object-fit: contain;
    border-radius: 8px !important;
    background-color: transparent !important;
}

/* Ajuster le conteneur d'icône pour les images plus grandes */
#content .feature-box .fbox-icon {
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 120px; /* Hauteur minimum pour uniformité */
}

/* Agrandir encore plus sur grands écrans */
@media (min-width: 1200px) {
    #content .feature-box .fbox-icon img {
        max-width: 140px !important;
        max-height: 120px !important;
    }
    
    #content .feature-box .fbox-icon {
        min-height: 140px;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #content .feature-box .fbox-icon img {
        max-width: 80px !important;
        max-height: 70px !important;
    }
    
    #content .feature-box .fbox-icon {
        min-height: 90px;
    }
}

/* 🎨 Cartes Services - Bordures fines et espacement
-----------------------------------------------------------------*/

/* Bordures plus fines et claires pour toutes les cartes */
#content .feature-box.border {
    border: 1px solid #e9ecef !important; /* Bordure fine et claire */
    margin: 10px; /* Espacement de 10px autour de chaque carte */
}

/* Bordure spéciale pour la carte mise en avant (Infogérance) */
#content .feature-box.border-primary {
    border: 1px solid #b3d7ff !important; /* Bordure bleue plus claire */
}

/* Ajuster la largeur des colonnes pour compenser les marges */
@media (min-width: 992px) {
    #content .col-lg-3 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Responsive : réduire l'espacement sur mobile */
@media (max-width: 768px) {
    #content .feature-box.border {
        margin: 5px; /* Espacement réduit sur mobile */
    }
}

/* 🎨 Clients - Images plus grandes
-----------------------------------------------------------------*/

/* Agrandir les images des clients */
.clients {
    width: 100% !important;
    height: auto !important;
    max-width: 130px !important;
    max-height: 100px !important;
    border-radius: 10px !important;
}

/* ========================================
   🎯 AMÉLIORATION MEGA-MENU - SOLUTION CSS PURE
   ======================================== */

/* Augmenter le délai de fermeture via les variables Canvas */
#header {
    --cnvs-primary-menu-submenu-display-speed: 1.2s !important;
}

/* Créer une zone de tolérance invisible autour du mega-menu avec CSS pur */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    z-index: -1;
    pointer-events: auto;
    background: transparent;
}

/* Améliorer la transition pour éviter les tremblements */
.is-expanded-menu .primary-menu:not(.on-click) .menu-item:hover > .mega-menu-content {
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Stabiliser le mega-menu quand il est ouvert */
.mega-menu:hover .mega-menu-content {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================================
   COOKIE CONSENT BANNER STYLES
   ================================ */

.cookie-consent-banner {
    animation: slideUp 0.4s ease-out;
    border-top: 3px solid #0d6efd;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner .btn {
    transition: all 0.2s ease;
}

.cookie-consent-banner .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles pour le modal des préférences */
#cookie-preferences-modal .card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

#cookie-preferences-modal .card:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#cookie-preferences-modal .form-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

#cookie-preferences-modal .form-switch .form-check-input:disabled {
    background-color: #198754;
    border-color: #198754;
    opacity: 0.8;
}

/* Notification de succès */
#cookie-success-alert {
    min-width: 300px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-banner .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .cookie-consent-banner .col-lg-4 {
        text-align: center !important;
    }
    
    .cookie-consent-banner .d-flex {
        justify-content: center !important;
    }
}

/* Lien pour rouvrir les préférences */
[data-cookie-preferences] {
    cursor: pointer;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-cookie-preferences]:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Fallback pour le modal sans Bootstrap */
#cookie-preferences-modal.show {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.5);
}

#cookie-preferences-modal.show .modal-dialog {
    margin: 1.75rem auto;
}

/* Badge d'état des cookies */
.cookie-status-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-status-badge:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* ================================
   🔧 ADMINISTRATION - BARRE DE NAVIGATION
   ================================ */

.admin-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 2px solid #5a6fd8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 60px;
}

.admin-navbar .navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 12px !important;
}

.admin-navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

body.admin-body {
    padding-top: 60px;
}

.admin-navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.admin-navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ================================
   🎛️ ADMINISTRATION - SIDEBAR & LAYOUT
   ================================ */

.admin-layout {
    padding-top: 0;
    height: calc(100vh - 60px);
}

.admin-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 1000;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    width: 11%; /* Réduit de 16.66% à 11% */
    min-width: 180px; /* Largeur minimum */
}

.admin-sidebar .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 10px 15px; /* Réduit le padding */
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Taille de police réduite */
}

.admin-sidebar .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
    border-left: 3px solid #667eea;
}

.admin-sidebar .nav-link.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    font-weight: 600;
}

.admin-sidebar .nav-link i {
    margin-right: 6px; /* Réduit l'espacement */
    width: 14px; /* Réduit la largeur des icônes */
    text-align: center;
    font-size: 0.85rem; /* Taille des icônes réduite */
}

.admin-main-content {
    margin-left: 11%; /* Ajusté à la nouvelle largeur */
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* Responsive sidebar */
@media (max-width: 767.98px) {
    .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        width: 100%;
        min-width: auto;
    }
    
    .admin-main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-layout {
        height: auto;
    }
}

/* Sidebar compacte pour écrans moyens */
@media (max-width: 1199px) and (min-width: 768px) {
    .admin-sidebar {
        width: 12%;
        min-width: 160px;
    }
    
    .admin-main-content {
        margin-left: 12%;
    }
    
    .admin-sidebar .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Dropdown utilisateur dans la sidebar */
.admin-sidebar .dropdown-toggle {
    color: #6c757d;
    padding: 10px 15px; /* Réduit le padding */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Taille réduite */
}

.admin-sidebar .dropdown-toggle:hover {
    color: #495057;
    background-color: #f8f9fa;
}

/* Titre de la sidebar */
.admin-sidebar h5 {
    font-size: 0.9rem; /* Taille réduite */
    margin-bottom: 15px; /* Espacement réduit */
    padding: 0 15px; /* Padding réduit */
}

/* Ajustements pour le contenu principal */
.admin-main-content h1 {
    margin-bottom: 30px;
    color: #495057;
}

.admin-main-content .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.admin-main-content .card-header {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
}

/* ================================
   📊 ADMINISTRATION - CARTES STATISTIQUES
   ================================ */

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* React-Draft-Wysiwyg Editor Styles
-----------------------------------------------------------------*/
.draft-editor-wrapper {
    position: relative;
}

.draft-editor-container {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    overflow: hidden;
}

/* Personnalisation de la barre d'outils */
.demo-toolbar {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-bottom: none !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    padding: 0.75rem !important;
}

/* Personnalisation de l'éditeur */
.demo-editor {
    min-height: 400px !important;
    padding: 1rem !important;
    background-color: #fff !important;
    border: 1px solid #f1f1f1 !important;
    border-top: none !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

/* Styles pour le contenu de l'éditeur */
.demo-editor .public-DraftEditor-content {
    min-height: 350px;
}

.demo-editor .DraftEditor-root {
    height: auto;
}

.demo-editor .DraftEditor-editorContainer {
    height: auto;
}

/* Focus de l'éditeur */
.demo-wrapper:focus-within .demo-editor {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Styles pour les boutons de la barre d'outils */
.rdw-option-wrapper {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    margin: 0 2px !important;
    padding: 6px !important;
    transition: all 0.15s ease-in-out !important;
}

.rdw-option-wrapper:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
}

.rdw-option-active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* Dropdown des styles */
.rdw-dropdown-wrapper {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    margin: 0 2px !important;
}

.rdw-dropdown-selectedtext {
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
}

/* Améliorer la lisibilité */
.rdw-dropdown-optionwrapper {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rdw-dropdownoption-default {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
}

.rdw-dropdownoption-highlighted {
    background-color: #f8f9fa !important;
}

/* WysiwygEditor Specific Styles */
.remirror-editor-wrapper .remirror-wysiwyg {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
}

.remirror-editor-wrapper .remirror-wysiwyg .remirror-toolbar {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 0.5rem;
}

.remirror-editor-wrapper .remirror-wysiwyg .ProseMirror {
    padding: 1rem;
    min-height: 400px;
    font-size: 1rem;
    line-height: 1.5;
}

.remirror-editor-wrapper .remirror-editor {
    min-height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.remirror-editor-wrapper .remirror-editor:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.remirror-editor-wrapper .remirror-toolbar {
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.remirror-editor-wrapper .remirror-toolbar button {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.remirror-editor-wrapper .remirror-toolbar button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.remirror-editor-wrapper .remirror-toolbar button.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.remirror-editor-wrapper .remirror-toolbar select {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
}

.remirror-editor-wrapper .remirror-toolbar .separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 0.25rem;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-text {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Styles pour la barre d'outils personnalisée */
.remirror-editor-wrapper .remirror-toolbar .toolbar-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-select {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    height: 36px;
    min-width: 120px;
    cursor: pointer;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Améliorer l'espacement dans la barre d'outils */
.remirror-editor-wrapper .remirror-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    padding: 0.75rem;
}

/* Style pour les boutons actifs */
.remirror-editor-wrapper .remirror-toolbar .toolbar-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}

/* Groupement visuel des boutons */
.remirror-editor-wrapper .remirror-toolbar .separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
}

/* Améliorer la lisibilité des boutons désactivés */
.remirror-editor-wrapper .remirror-toolbar .toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles pour les icônes dans les boutons */
.remirror-editor-wrapper .remirror-toolbar .toolbar-btn i {
    font-size: 0.875rem;
}

/* Style pour le bouton de suppression */
.remirror-editor-wrapper .remirror-toolbar .toolbar-btn.text-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-btn.text-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Améliorer l'espacement du texte de la barre d'outils */
.remirror-editor-wrapper .remirror-toolbar .toolbar-text {
    flex: 1;
    text-align: center;
}

.remirror-editor-wrapper .remirror-toolbar .toolbar-text .me-2 {
    margin-right: 0.5rem;
}

/* Remirror Content Styles */
.remirror-editor .ProseMirror,
.remirror-editor-wrapper .ProseMirror {
    outline: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    min-height: 300px;
    padding: 1rem;
}

/* Styles pour le contenu de l'éditeur */
.remirror-editor-wrapper .ProseMirror p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.remirror-editor-wrapper .ProseMirror p:last-child {
    margin-bottom: 0;
}

.remirror-editor-wrapper .ProseMirror h1,
.remirror-editor-wrapper .ProseMirror h2,
.remirror-editor-wrapper .ProseMirror h3,
.remirror-editor-wrapper .ProseMirror h4,
.remirror-editor-wrapper .ProseMirror h5,
.remirror-editor-wrapper .ProseMirror h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.remirror-editor-wrapper .ProseMirror h1 { font-size: 2rem; }
.remirror-editor-wrapper .ProseMirror h2 { font-size: 1.75rem; }
.remirror-editor-wrapper .ProseMirror h3 { font-size: 1.5rem; }
.remirror-editor-wrapper .ProseMirror h4 { font-size: 1.25rem; }
.remirror-editor-wrapper .ProseMirror h5 { font-size: 1.125rem; }
.remirror-editor-wrapper .ProseMirror h6 { font-size: 1rem; }

.remirror-editor-wrapper .ProseMirror strong {
    font-weight: 700;
}

.remirror-editor-wrapper .ProseMirror em {
    font-style: italic;
}

.remirror-editor-wrapper .ProseMirror code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
    color: #e83e8c;
}

.remirror-editor-wrapper .ProseMirror a {
    color: #0d6efd;
    text-decoration: underline;
}

.remirror-editor-wrapper .ProseMirror a:hover {
    color: #0a58ca;
}

/* Focus dans l'éditeur */
.remirror-editor-wrapper .ProseMirror:focus {
    outline: none;
}

/* Placeholder text */
.remirror-editor-wrapper .ProseMirror p.is-empty:first-child::before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
    height: 0;
    float: left;
}

.remirror-editor .ProseMirror h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.remirror-editor .ProseMirror h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    margin-top: 1.25rem;
}

.remirror-editor .ProseMirror h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.remirror-editor .ProseMirror h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.remirror-editor .ProseMirror h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.remirror-editor .ProseMirror h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.remirror-editor .ProseMirror p {
    margin-bottom: 1rem;
}

.remirror-editor .ProseMirror ul,
.remirror-editor .ProseMirror ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.remirror-editor .ProseMirror li {
    margin-bottom: 0.25rem;
}

.remirror-editor .ProseMirror a {
    color: #0d6efd;
    text-decoration: underline;
}

.remirror-editor .ProseMirror code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
}

.remirror-editor .ProseMirror blockquote {
    border-left: 4px solid #dee2e6;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #6c757d;
    font-style: italic;
}