/**
 * 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;
}

/* ==========================================================================
   COMMUNICATION - BACKEND STYLES (v2.4)
   ========================================================================== */

.wpvc-comm-wrap {
    margin: 20px 20px 20px 0;
}

.wpvc-comm-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Sidebar gauche Communication */
.wpvc-comm-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Zone canvas Communication */
.wpvc-comm-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Sidebar droite Communication */
.wpvc-comm-properties {
    width: 280px;
    flex-shrink: 0;
}

/* Toolbar Communication */
.wpvc-comm-canvas-toolbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    align-items: center;
}

.wpvc-comm-canvas-info {
    margin-left: auto;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Onglets des slides (carrousel) */
.wpvc-comm-slides-tabs {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f5f5f5;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.wpvc-comm-slide-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.wpvc-comm-slide-tab:hover {
    background: #f0f0f0;
}

.wpvc-comm-slide-tab.active {
    background: #7c7fc6;
    color: #fff;
    border-color: #7c7fc6;
}

/* Onglets variantes de badges */
.wpvc-comm-badge-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.wpvc-badge-tab,
.wpvc-socialmedia-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.wpvc-badge-tab .dashicons,
.wpvc-socialmedia-tab .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #666;
}

.wpvc-badge-tab small,
.wpvc-socialmedia-tab small {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.wpvc-badge-tab:hover,
.wpvc-socialmedia-tab:hover {
    background: #f5f5ff;
    border-color: #9a9dd6;
}

.wpvc-badge-tab.active,
.wpvc-socialmedia-tab.active {
    background: linear-gradient(135deg, #7c7fc6 0%, #9a9dd6 100%);
    color: #fff;
    border-color: #7c7fc6;
    box-shadow: 0 2px 8px rgba(124, 127, 198, 0.3);
}

.wpvc-badge-tab.active .dashicons,
.wpvc-socialmedia-tab.active .dashicons {
    color: #fff;
}

.wpvc-badge-tab.active small,
.wpvc-socialmedia-tab.active small {
    color: rgba(255, 255, 255, 0.85);
}

/* Canvas wrapper Communication */
.wpvc-comm-canvas-wrapper {
    padding: 30px;
    background: #e5e5e5;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
    overflow: auto;
}

.wpvc-comm-canvas-wrapper .canvas-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RICH TEXT EDITOR (Contenu du Post)
   ========================================================================== */

.wpvc-richtext-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.wpvc-richtext-btn,
.wpvc-prop-richtext-btn {
    padding: 5px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.wpvc-richtext-btn:hover,
.wpvc-prop-richtext-btn:hover {
    background: #e5e5e5;
    border-color: #bbb;
}

.wpvc-richtext-btn.active,
.wpvc-prop-richtext-btn.active {
    background: #7c7fc6;
    color: #fff;
    border-color: #7c7fc6;
}

.wpvc-richtext-btn .dashicons,
.wpvc-prop-richtext-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wpvc-richtext-editor {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpvc-richtext-editor:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wpvc-richtext-editor:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    font-style: italic;
    pointer-events: none;
}

/* Éditeur richtext dans le panneau propriétés (plus compact) */
.wpvc-prop-richtext-editor {
    min-height: 50px;
    max-height: 150px;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px;
}

/* Variables list */
.wpvc-variables-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpvc-add-variable {
    font-size: 12px !important;
    padding: 6px 10px !important;
}

/* Status message */
.wpvc-comm-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.wpvc-comm-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpvc-comm-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpvc-comm-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Background preview */
.wpvc-bg-preview {
    margin-top: 10px;
    max-width: 100%;
}

.wpvc-bg-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Position inputs */
.wpvc-position-inputs {
    display: flex;
    gap: 10px;
}

.wpvc-position-inputs > div {
    flex: 1;
}

.wpvc-position-inputs label {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.wpvc-input-small {
    width: 100%;
}

/* Help text */
.wpvc-help-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Toggle buttons actifs */
.wpvc-toggle-button.active {
    background: #7c7fc6 !important;
    color: #fff !important;
    border-color: #6b6eb5 !important;
}

/* ==========================================================================
   COMMUNICATION - FRONTEND STYLES (v2.4)
   ========================================================================== */

.wpvc-comm-frontend-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.wpvc-comm-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* v2.7: Formulaire du club supprimé — centralisé dans Ze Config */

/* Sections par format */
.wpvc-comm-section {
    margin-bottom: 40px;
}

.wpvc-comm-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7c7fc6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpvc-comm-section-title .dashicons {
    color: #7c7fc6;
}

/* ==========================================================================
   BADGES DE CERTIFICATION - Frontend
   ========================================================================== */

/* Message pas d'accès */
.wpvc-comm-badges-no-access,
.wpvc-comm-badges-not-available {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.wpvc-comm-badges-no-access-content,
.wpvc-comm-badges-not-available-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wpvc-comm-badges-no-access .dashicons-lock {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #6c757d;
}

.wpvc-comm-badges-not-available .dashicons-info {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #7c7fc6;
}

.wpvc-comm-badges-no-access p,
.wpvc-comm-badges-not-available p {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
    max-width: 400px;
}

/* Phase 7.3: Level tabs for certification gating */
/* Affichage automatique du niveau de certification (lu depuis le POI) */
.wpvc-comm-current-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #7A3EFF;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.wpvc-comm-current-level-label {
    opacity: 0.85;
}

.wpvc-comm-current-level-value {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grille des badges */
.wpvc-comm-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .wpvc-comm-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wpvc-comm-badges-grid {
        grid-template-columns: 1fr;
    }
}

/* Carte de badge */
.wpvc-comm-badge-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.wpvc-comm-badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.wpvc-comm-badge-available {
    border-color: #7c7fc6;
}

.wpvc-comm-badge-available:hover {
    border-color: #5a5db0;
}

.wpvc-comm-badge-empty {
    opacity: 0.6;
    border-style: dashed;
}

/* Header de badge */
.wpvc-comm-badge-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #7c7fc6 0%, #9a9dd6 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpvc-comm-badge-label {
    font-weight: 600;
    font-size: 14px;
}

.wpvc-comm-badge-size {
    font-size: 12px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Preview de badge */
.wpvc-comm-badge-preview {
    padding: 15px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px; /* Hauteur fixe pour toutes les previews */
}

.wpvc-comm-badge-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpvc-comm-badge-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 13px;
}

.wpvc-comm-badge-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Actions de badge - Style minimaliste comme bouton "Voir" */
.wpvc-comm-badge-actions {
    padding: 10px 15px;
    text-align: center;
}

.wpvc-comm-badge-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 12px;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.wpvc-comm-badge-actions .button:hover {
    background: #f5f5f5 !important;
    border-color: #7c7fc6 !important;
    color: #7c7fc6 !important;
}

.wpvc-comm-badge-actions .button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ===== Kit Social Media — previews plus grandes ===== */
.wpvc-comm-socialmedia-section .wpvc-comm-badge-preview {
    height: 260px;
    padding: 12px;
}

.wpvc-comm-socialmedia-section .wpvc-comm-badge-canvas,
.wpvc-comm-socialmedia-section .wpvc-comm-socialmedia-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .wpvc-comm-socialmedia-section .wpvc-comm-badge-preview {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .wpvc-comm-socialmedia-section .wpvc-comm-badge-preview {
        height: 260px;
    }
}

/* Grille des tuiles */
.wpvc-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Tuiles */
.wpvc-comm-tile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wpvc-comm-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.wpvc-comm-tile-available {
    border-color: #7c7fc6;
}

.wpvc-comm-tile-empty {
    opacity: 0.6;
}

.wpvc-comm-tile-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #7c7fc6 0%, #9a9dd6 100%);
    color: #fff;
}

.wpvc-comm-tile-month {
    font-weight: 600;
    font-size: 14px;
}

.wpvc-comm-tile-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 10px;
}

.wpvc-comm-tile-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.wpvc-comm-tile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
}

.wpvc-comm-tile-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.wpvc-comm-tile-placeholder span:last-child {
    font-size: 12px;
}

/* Actions des tuiles */
.wpvc-comm-tile-actions {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.wpvc-comm-tile-actions .button {
    width: 100%;
    padding: 8px 12px !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    background: #fff !important;
    border: 1px solid #d0d0d0 !important;
    box-shadow: none !important;
    border-radius: 4px;
    color: #555;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wpvc-comm-tile-actions .button:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
    color: #333;
}

.wpvc-comm-tile-actions .button:active {
    background: #e8e8e8 !important;
    transform: translateY(1px);
}

.wpvc-comm-tile-actions .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wpvc-comm-tile-actions .wpvc-btn-text {
    text-align: center;
}

/* Toast notification */
.wpvc-comm-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 14px;
    animation: slideInRight 0.3s ease-out;
}

.wpvc-comm-toast.success {
    background: #28a745;
}

.wpvc-comm-toast.error {
    background: #dc3545;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Instructions */
.wpvc-comm-instructions-content {
    padding: 15px;
    line-height: 1.6;
}

/* Login required message */
.wpvc-comm-login-required {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   MODAL VIEW - Split Layout (Frontend Communication)
   ========================================================================== */

.wpvc-modal-large {
    z-index: 999999;
}

.wpvc-modal-large .wpvc-modal-content {
    max-width: 1200px;
    width: 95%;
    margin: 3vh auto;
    max-height: 94vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wpvc-modal-split {
    padding: 0;
}

.wpvc-modal-split .wpvc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    color: #fff;
    font-size: 28px;
}

.wpvc-modal-split .wpvc-modal-close:hover {
    color: #ddd;
}

.wpvc-modal-split .wpvc-modal-title {
    background: linear-gradient(135deg, #7c7fc6 0%, #9a9dd6 100%);
    color: #fff;
    padding: 18px 50px 18px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wpvc-modal-split .wpvc-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Colonne gauche - Image */
.wpvc-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    padding: 25px;
    border-right: 1px solid #e0e0e0;
}

.wpvc-modal-preview-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    min-height: 350px;
    max-height: 600px;
    overflow: hidden;
}

.wpvc-modal-preview-container canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Navigation carousel */
.wpvc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
}

.wpvc-carousel-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.wpvc-carousel-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #333;
}

.wpvc-carousel-prev {
    left: 10px;
}

.wpvc-carousel-next {
    right: 10px;
}

/* Indicateurs de slides (dots) */
.wpvc-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.wpvc-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpvc-carousel-dot:hover {
    background: #999;
}

.wpvc-carousel-dot.active {
    background: #7c7fc6;
    transform: scale(1.2);
}

/* Slide counter */
.wpvc-carousel-counter {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.wpvc-modal-download-actions {
    margin-top: 15px;
    text-align: center;
}

.wpvc-modal-download-btn,
.wpvc-modal-download-btn.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

.wpvc-modal-download-btn:hover,
.wpvc-modal-download-btn.button:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
    color: #333 !important;
}

.wpvc-modal-download-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* Colonne droite - Instructions + Post */
.wpvc-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    overflow-y: auto;
    max-height: 70vh;
}

.wpvc-modal-section {
    margin-bottom: 20px;
}

.wpvc-modal-section:last-child {
    margin-bottom: 0;
}

.wpvc-modal-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 2px solid #7c7fc6;
}

.wpvc-modal-section h4 .dashicons {
    color: #7c7fc6;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wpvc-modal-section h4 .wpvc-modal-copy-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.wpvc-modal-section h4 .wpvc-modal-copy-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.wpvc-modal-section h4 .wpvc-modal-copy-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: inherit;
}

.wpvc-modal-text-content {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.wpvc-modal-post-box {
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .wpvc-modal-large .wpvc-modal-content {
        margin: 2vh auto;
        max-height: 96vh;
        width: 98%;
    }

    .wpvc-modal-split .wpvc-modal-body {
        flex-direction: column;
    }

    .wpvc-modal-left {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }

    .wpvc-modal-preview-container {
        min-height: 200px;
        max-height: 300px;
    }

    .wpvc-modal-right {
        padding: 20px;
        max-height: none;
    }

    .wpvc-modal-post-box {
        max-height: 150px;
    }
}

/* Responsive Communication */
@media (max-width: 1200px) {
    .wpvc-comm-container {
        flex-wrap: wrap;
    }

    .wpvc-comm-sidebar,
    .wpvc-comm-properties {
        width: 100%;
    }

    .wpvc-comm-canvas-area {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wpvc-comm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpvc-comm-club-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wpvc-comm-grid {
        grid-template-columns: 1fr;
    }

    .wpvc-comm-tile-actions {
        flex-wrap: wrap;
    }
}
