/**
 * Styles pour WP Visual Customizer
 */

/* Custom Fonts - Voir assets/css/fonts.css */

/* ==========================================================================
   BACKEND STYLES
   ========================================================================== */

.wpvc-admin-wrap {
    margin: 20px 20px 20px 0;
}

.wpvc-admin-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Sidebar gauche */
.wpvc-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Zone canvas centrale */
.wpvc-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Sidebar droite - Propriétés */
.wpvc-properties {
    width: 300px;
    flex-shrink: 0;
}

/* Panels */
.wpvc-panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wpvc-panel h2,
.wpvc-panel h3,
.wpvc-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

/* Panels accordéon dans le backend */
.wpvc-panel-accordion {
    padding: 0;
    overflow: hidden;
}

.wpvc-panel-accordion .wpvc-panel-header {
    margin: 0;
    border: none;
    padding: 0;
}

.wpvc-panel-toggle {
    width: 100%;
    padding: 16px 20px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    text-align: left;
    transition: all 0.2s;
}

.wpvc-panel-toggle:hover {
    background: #6b6eb5;
}

.wpvc-panel-toggle .dashicons:first-child {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #fff;
}

.wpvc-panel-icon {
    margin-left: auto;
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.wpvc-panel-open .wpvc-panel-toggle .wpvc-panel-icon {
    transform: rotate(180deg);
}

.wpvc-panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
    background: #f5f5ff;
}

.wpvc-panel-open .wpvc-panel-content {
    max-height: 2000px;
    padding: 20px;
    transition: max-height 0.5s ease-in;
}

/* Form groups */
.wpvc-form-group {
    margin-bottom: 15px;
}

.wpvc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.wpvc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.wpvc-input,
.wpvc-select,
.wpvc-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.wpvc-input:focus,
.wpvc-select:focus,
.wpvc-textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.wpvc-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.wpvc-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpvc-add-button {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpvc-add-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Gallery preview */
.wpvc-gallery-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 70px;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 4px;
}

.wpvc-gallery-preview:empty::before {
    content: 'Aucune image sélectionnée';
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Canvas area */
.wpvc-canvas-toolbar {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.wpvc-canvas-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    min-height: 400px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpvc-canvas-wrapper canvas {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ccc;
}

.wpvc-shortcode-display {
    margin-top: 15px;
    padding: 15px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpvc-shortcode-display strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.wpvc-shortcode-display code {
    display: inline-block;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63638;
}

/* Properties panel */
.wpvc-no-selection {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.wpvc-element-properties {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wpvc-permissions-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
}

.wpvc-permissions-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 13px;
}

.wpvc-checkbox {
    margin-right: 8px;
}

.wpvc-button-group-inline {
    display: flex;
    gap: 5px;
}

.wpvc-toggle-button {
    padding: 6px 10px !important;
    min-width: 40px;
    background: #f0f0f1 !important;
    border: 1px solid #ddd !important;
    transition: all 0.2s !important;
}

.wpvc-toggle-button:hover {
    background: #e5e5e5 !important;
}

.wpvc-toggle-button.active {
    background: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
}

.wpvc-toggle-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   FRONTEND STYLES - Design épuré
   ========================================================================== */

.wpvc-frontend-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: 100vh;
}

.wpvc-frontend-toolbar {
    background: transparent;
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.wpvc-front-download,
.wpvc-front-change-bg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.wpvc-front-download:hover,
.wpvc-front-change-bg:hover {
    background: #6b6eb5;
    color: #fff;
}

.wpvc-front-download .dashicons,
.wpvc-front-change-bg .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wpvc-frontend-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 0 30px 30px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.wpvc-frontend-canvas-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpvc-frontend-canvas-wrapper canvas {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.wpvc-frontend-sidebar {
    width: 450px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    min-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpvc-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    font-size: 14px;
    background: transparent;
}

.wpvc-sidebar-content {
    padding: 0;
    background: #f5f5ff;
    border-radius: 0 0 8px 8px;
}

.wpvc-sidebar-actions {
    padding: 0;
    margin-top: 20px;
}

.wpvc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #7c7fc6;
    padding: 16px 20px;
    margin: 0;
    border-radius: 8px 8px 0 0;
}

.wpvc-sidebar-title {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.wpvc-sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0.8;
}

.wpvc-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.wpvc-sidebar-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.wpvc-sidebar-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.wpvc-sidebar-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
}

.wpvc-sidebar-option label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.wpvc-sidebar-option button {
    width: 100%;
    padding: 11px 18px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpvc-sidebar-option button:hover {
    background: #6b6eb5;
}

.wpvc-sidebar-option button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wpvc-sidebar-option input[type="text"],
.wpvc-sidebar-option textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.wpvc-sidebar-option input[type="text"]:focus,
.wpvc-sidebar-option textarea:focus {
    border-color: #7c7fc6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 127, 198, 0.1);
}

.wpvc-sidebar-option textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.wpvc-sidebar-option .wpvc-color-picker-wrapper {
    display: flex;
    gap: 10px;
}

.wpvc-sidebar-option .wpvc-color-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wpvc-sidebar-option .wpvc-color-input:hover {
    border-color: #7c7fc6;
}

.wpvc-sidebar-option .wpvc-color-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #fff;
}

/* ==========================================================================
   MODALES
   ========================================================================== */

.wpvc-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.wpvc-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wpvc-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.wpvc-modal-close:hover,
.wpvc-modal-close:focus {
    color: #000;
}

.wpvc-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.wpvc-color-picker-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wpvc-color-input {
    width: 80px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.wpvc-color-text {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.wpvc-file-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Gallery grid */
.wpvc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.wpvc-gallery-item {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.wpvc-gallery-item:hover {
    border-color: #7c7fc6;
    transform: scale(1.05);
}

.wpvc-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Buttons dans les modales */
.wpvc-modal-content .button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.wpvc-modal-content .button-primary {
    background: #7c7fc6;
    color: #fff;
}

.wpvc-modal-content .button-primary:hover {
    background: #6b6eb5;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 1400px) {
    .wpvc-admin-container {
        flex-wrap: wrap;
    }

    .wpvc-sidebar,
    .wpvc-properties {
        width: 100%;
    }

    .wpvc-canvas-area {
        width: 100%;
    }
}

@media screen and (max-width: 782px) {
    .wpvc-admin-container {
        flex-direction: column;
    }

    .wpvc-button-group {
        flex-direction: column;
    }

    .wpvc-button-group .button {
        width: 100%;
    }

    .wpvc-canvas-wrapper {
        padding: 15px;
    }

    .wpvc-frontend-content {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .wpvc-frontend-sidebar {
        width: 100%;
    }

    .wpvc-frontend-toolbar {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .wpvc-frontend-canvas-wrapper {
        padding: 20px;
    }

    .wpvc-sidebar-download-group {
        flex-direction: column;
        gap: 8px;
    }

    .wpvc-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }

    .wpvc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .wpvc-gallery-item img {
        height: 80px;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.wpvc-hidden {
    display: none !important;
}

.wpvc-text-center {
    text-align: center;
}

.wpvc-mt-10 {
    margin-top: 10px;
}

.wpvc-mb-10 {
    margin-bottom: 10px;
}

/* Forcer le mode clair - pas de dark mode */
.wpvc-frontend-container,
.wpvc-frontend-canvas-wrapper,
.wpvc-sidebar-empty,
.wpvc-sidebar-option,
.wpvc-modal-content,
.wpvc-frontend-content,
.wpvc-frontend-sidebar,
.wpvc-sidebar-content,
.wpvc-sidebar-title,
body {
    color-scheme: light !important;
}

.wpvc-frontend-container * {
    color-scheme: light !important;
}

/* Fix textarea débordant */
.wpvc-sidebar-option textarea,
.wpvc-sidebar-option input[type="text"] {
    box-sizing: border-box !important;
}

/* Gallery grid dans sidebar */
.wpvc-sidebar-gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
}

.wpvc-sidebar-gallery-item {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
    padding: 8px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpvc-sidebar-gallery-item:hover {
    border-color: #7c7fc6;
}

.wpvc-sidebar-gallery-item.active {
    border-color: #7c7fc6;
}

.wpvc-sidebar-gallery-item img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Boutons de téléchargement dans sidebar - en ligne */
.wpvc-sidebar-download-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.wpvc-download-btn {
    flex: 1;
    padding: 12px 18px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wpvc-download-btn:hover {
    background: #6b6eb5;
    color: #fff;
}

.wpvc-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Color picker couleur de fond dans sidebar actions */
.wpvc-bg-color-option {
    margin-bottom: 15px;
}

.wpvc-bg-color-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wpvc-bg-color-option label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #7c7fc6;
}

/* S'assurer que les éléments dans .wpvc-sidebar-actions héritent des bons styles */
.wpvc-sidebar-actions .wpvc-sidebar-option {
    padding: 0;
    background: transparent;
}

.wpvc-sidebar-actions .wpvc-color-picker-wrapper {
    display: flex;
    gap: 10px;
}

.wpvc-sidebar-actions .wpvc-color-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wpvc-sidebar-actions .wpvc-color-input:hover {
    border-color: #7c7fc6;
}

.wpvc-sidebar-actions .wpvc-color-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.wpvc-sidebar-actions .wpvc-color-text:focus {
    border-color: #7c7fc6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 127, 198, 0.1);
}

/* Accordéon d'instructions */
.wpvc-instructions-accordion {
    margin-top: 0;
    margin-bottom: 20px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.wpvc-accordion-toggle {
    width: 100%;
    padding: 16px 20px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.wpvc-accordion-toggle:hover {
    background: #6b6eb5;
}

.wpvc-accordion-toggle .dashicons-info {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.wpvc-accordion-title {
    flex: 1;
    text-align: left;
}

.wpvc-accordion-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.wpvc-accordion-toggle.active .wpvc-accordion-icon {
    transform: rotate(180deg);
}

.wpvc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f5f5ff;
    border-radius: 0 0 8px 8px;
}

.wpvc-accordion-content.show {
    max-height: 800px;
    transition: max-height 0.5s ease-in;
}

.wpvc-instructions-inner {
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.wpvc-instructions-inner h1,
.wpvc-instructions-inner h2,
.wpvc-instructions-inner h3,
.wpvc-instructions-inner h4,
.wpvc-instructions-inner h5,
.wpvc-instructions-inner h6 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #7c7fc6;
    font-weight: 600;
}

.wpvc-instructions-inner h1 { font-size: 22px; }
.wpvc-instructions-inner h2 { font-size: 20px; }
.wpvc-instructions-inner h3 { font-size: 18px; }
.wpvc-instructions-inner h4 { font-size: 16px; }
.wpvc-instructions-inner h5 { font-size: 14px; }
.wpvc-instructions-inner h6 { font-size: 13px; }

.wpvc-instructions-inner p {
    margin: 0 0 12px 0;
}

.wpvc-instructions-inner ul,
.wpvc-instructions-inner ol {
    margin: 0 0 12px 20px;
    padding-left: 0;
}

.wpvc-instructions-inner li {
    margin-bottom: 6px;
}

.wpvc-instructions-inner a {
    color: #7c7fc6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.wpvc-instructions-inner a:hover {
    color: #6b6eb5;
    text-decoration: underline;
}

.wpvc-instructions-inner strong,
.wpvc-instructions-inner b {
    font-weight: 600;
    color: #333;
}

.wpvc-instructions-inner em,
.wpvc-instructions-inner i {
    font-style: italic;
}

.wpvc-instructions-inner code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63638;
}

.wpvc-instructions-inner blockquote {
    border-left: 4px solid #7c7fc6;
    margin: 0 0 12px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* ============================================
   MULTI-PAGES SYSTEM (v2.2)
   ============================================ */

/* Conteneur des onglets de pages */
.wpvc-pages-tabs-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Liste des onglets */
.wpvc-pages-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
}

/* Onglet individuel */
.wpvc-page-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 30px 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #555;
    user-select: none;
}

.wpvc-page-tab:hover {
    background: #f0f0f0;
    border-color: #999;
}

.wpvc-page-tab.active {
    background: #7c7fc6;
    color: #fff;
    border-color: #7c7fc6;
    font-weight: 600;
}

/* Nom de la page (éditable) */
.wpvc-page-tab-name {
    cursor: text;
}

/* Bouton de suppression dans l'onglet */
.wpvc-page-tab-delete {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 3px;
    padding: 0;
    transition: all 0.2s ease;
}

.wpvc-page-tab-delete:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #d63638;
}

.wpvc-page-tab.active .wpvc-page-tab-delete {
    color: rgba(255, 255, 255, 0.7);
}

.wpvc-page-tab.active .wpvc-page-tab-delete:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Bouton d'ajout de page */
.wpvc-add-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #7c7fc6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wpvc-add-page-btn:hover {
    background: #6b6fb5;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(124, 127, 198, 0.3);
}

.wpvc-add-page-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Input de renommage de page (quand on double-clique) */
.wpvc-page-rename-input {
    border: 1px solid #7c7fc6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
    min-width: 80px;
}

/* Responsive : sur petits écrans */
@media (max-width: 768px) {
    .wpvc-pages-tabs-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpvc-pages-tabs {
        justify-content: center;
    }
    
    .wpvc-add-page-btn {
        justify-content: center;
    }
}

/* ============================================
   FRONTEND MULTI-PAGES NAVIGATION
   ============================================ */

/* Navigation entre les pages (frontend) */
.wpvc-pages-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpvc-page-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.wpvc-page-nav-btn:hover:not(:disabled) {
    background: #7c7fc6;
    color: #fff;
    border-color: #7c7fc6;
    transform: scale(1.1);
}

.wpvc-page-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wpvc-page-nav-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wpvc-page-indicator {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    min-width: 100px;
    text-align: center;
}

.wpvc-current-page-name {
    color: #7c7fc6;
    font-weight: 600;
}
