.sc-frontend-tabs {
    margin-bottom: 0px;
    border-bottom: 1px solid var(--sc-border-color, #ddd);
}

.sc-tabs-nav {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.sc-tab-btn {
    background: #f6f7f7;
    border: 1px solid var(--sc-border-color, #ddd);
    border-bottom: none;
    color: #646970;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
    margin-right: 4px;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
}

.sc-tab-btn:hover {
    background: #f0f6fc;
    color: var(--sc-primary-color, #2271b1);
    border-color: var(--sc-primary-color, #2271b1);
}

.sc-tab-btn.active {
    background: #fff;
    color: #1d2327;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    z-index: 2;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.sc-tab-btn:focus,
.sc-tab-btn:focus-visible,
.sc-tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.sc-tab-content {
    display: none;
    min-height: 0 !important;
    height: auto !important;
    padding: 0; /* Supprimé le padding de base */
    animation: sc-fade-in 0.3s ease;
}

.sc-tab-content.active {
    display: block !important;
}

@keyframes sc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sc-tab-information {
    background: #fff;
    border-radius: 0 0 6px 6px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px; /* Garde uniquement le padding-bottom pour le sticky cart */
    max-width: 100%;
    box-sizing: border-box;
}

.sc-information-content {
    padding: 0; /* Supprimé le padding de base - utilise uniquement le padding admin */
    font-family: inherit;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#sc-tab-information.active {
    display: block !important;
    visibility: visible !important;
}

.sc-information-content h1,
.sc-information-content h2,
.sc-information-content h3,
.sc-information-content h4,
.sc-information-content h5,
.sc-information-content h6 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-weight: 600;
    line-height: 1.3;
}

.sc-information-content h1 { font-size: 28px; }
.sc-information-content h2 { font-size: 24px; }
.sc-information-content h3 { font-size: 20px; }
.sc-information-content h4 { font-size: 18px; }
.sc-information-content h5 { font-size: 16px; }
.sc-information-content h6 { font-size: 14px; }

.sc-information-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.sc-information-content ul,
.sc-information-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.sc-information-content li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.sc-information-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f6f7f7;
    border-left: 4px solid var(--sc-primary-color, #1E3A5F);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.sc-information-content a {
    color: var(--sc-primary-color, #1E3A5F);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sc-information-content a:hover {
    color: #1e8449;
    text-decoration: underline;
}

.sc-information-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    display: block;
}

/* Styles d'alignement - Maintenant gérés par quodr-editor.css */

/* Alignement spécifique - Maintenant géré par quodr-editor.css */

.sc-information-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    table-layout: fixed;
    max-width: 100%;
    overflow-x: hidden;
    display: table;
    box-sizing: border-box;
}

.sc-information-content th,
.sc-information-content td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    max-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    vertical-align: top;
}

.sc-information-content th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.sc-information-content code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 90%;
    color: #d73527;
}

.sc-information-content pre {
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: hidden;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 15px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.sc-information-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.sc-information-content iframe,
.sc-information-content embed,
.sc-information-content object,
.sc-information-content video {
    max-width: 100%;
    height: auto;
}

.sc-information-content p,
.sc-information-content div,
.sc-information-content span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sc-information-content ul,
.sc-information-content ol {
    max-width: 100%;
    overflow: hidden;
}


.sc-information-content:before {
    content: "";
    display: block;
    position: relative;
}

.sc-frontend-container.loading .sc-tab-btn {
    pointer-events: none;
    opacity: 0.6;
}


.sc-tabs-nav:hover .sc-tab-btn:not(.active):not(:hover) {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .sc-tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .sc-information-content {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .sc-tabs-nav {
        flex-direction: column;
        gap: 2px;
    }
    
    .sc-tab-btn {
        border-radius: 4px;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .sc-tab-btn.active {
        margin-bottom: 0;
    }
    
    .sc-frontend-tabs {
        margin-bottom: 15px;
    }
    
    .sc-information-content {
        padding: 10px 0;
        font-size: 14px;
    }
}

.sc-config-panel .sc-frontend-tabs {
    margin-left: 0;
    margin-right: 0;
}

#sc-tab-configure .sc-config-content {
    /* Hérite des styles existants */
}

.sc-config-panel:has(.sc-frontend-tabs) .sc-config-content {
    padding-top: 15px;
}

@media (prefers-color-scheme: dark) {
    .sc-tab-btn {
        background: #2c2c2c;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .sc-tab-btn:hover {
        background: #3a3a3a;
        color: #fff;
    }
    
    .sc-tab-btn.active {
        background: #1a1a1a;
        color: #fff;
        border-bottom-color: #1a1a1a;
    }
    
    .sc-information-content {
        color: #e0e0e0;
    }
    
    .sc-information-content h1,
    .sc-information-content h2,
    .sc-information-content h3,
    .sc-information-content h4,
    .sc-information-content h5,
    .sc-information-content h6 {
        color: #fff;
    }
    
    .sc-information-content blockquote {
        background: #2a2a2a;
        color: #ccc;
    }
}

.bde-frontend .sc-frontend-tabs,
.breakdance .sc-frontend-tabs {
    margin-left: 0;
    margin-right: 0;
}

.elementor-widget-container .sc-frontend-tabs {
    margin-left: 0;
    margin-right: 0;
}

.wp-block .sc-frontend-tabs {
    margin-left: 0;
    margin-right: 0;
}

.sc-frontend-tabs * {
    box-sizing: border-box;
}

.sc-tab-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}