/* ==========================================================
   WP vCard Generator - Admin UI + Live Preview Styles
   Variables CSS configurables en haut de ce fichier
   ========================================================== */

/* --- Variables globales du formulaire (modifiables facilement) --- */
:root {
    /* --- 1. Variables de l'Interface Admin (Remplacement Tailwind) --- */
    --wpvg-admin-primary: #2563eb;     /* Correspond au blue-600 de Tailwind */
    --wpvg-admin-primary-hover: #1d4ed8;
    --wpvg-admin-bg: #f7f8f9;          /* Correspond au gray-50 */
    --wpvg-admin-card-bg: #ffffff;
    --wpvg-admin-border: #e5e7eb;      /* Correspond au gray-200 */
    --wpvg-admin-text: #111827;        /* Correspond au gray-900 */
    --wpvg-admin-text-light: #6b7280;  /* Correspond au gray-500 */
    
    /* --- 2. Variables de Formulaire (Issues de style.txt) --- */
    --form-label-size: 1.3rem;   
    --form-icon-size: 2rem;      
    --form-input-size: 1.3rem;   
    --form-section-size: 1.6rem; 
	--form-text-warning: #FF4D00;
    
    /* --- 3. Variables de la vCard (Valeurs par défaut) --- */
    /* Celles-ci sont écrasées dynamiquement par l'aperçu JS */
    --vcard-bg: #f3f4f6;
    --vcard-color: #3780A0;
    --vcard-card-bg: #ffffff;
    --title-size: 1.35rem;
    --title-color: #111827;
    --text-size: 0.9rem;
    --text-color: #4b5563;
    --icon-size: 1.2rem;
    --icon-color: #ffffff;
}

/* ========== Fonts ========== */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.woff2') format('woff2');
    font-weight: 700;
}

/* ========== Conteneur principal ========== */
.wpvg-container {
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--wpvg-admin-text);
}

/* Remplacement de : bg-white rounded-xl shadow-sm p-6 border border-gray-100 */
.wpvg-admin-card {
    background: var(--wpvg-admin-card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Titres de section du générateur */
.wpvg-admin-card h3 {
    font-size: var(--form-section-size) !important;
    border-bottom: 1px solid var(--wpvg-admin-border);
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: var(--wpvg-admin-text);
}

/* Sticky preview column - garantit que la colonne droite colle au viewport */
.wpvg-sticky-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 32px !important;
    align-self: flex-start !important;
    z-index: 50 !important;
}

/* Champs de formulaire */
.wpvg-container label { 
    display: block;
    font-size: var(--form-label-size) !important; 
    font-weight: 500;
    margin-bottom: 4px;
}

.wpvg-container label i {
    font-size: var(--form-icon-size) !important;
}

.wpvg-container input[type="text"], 
.wpvg-container input[type="tel"], 
.wpvg-container input[type="email"],
.wpvg-container input[type="url"], 
.wpvg-container select, 
.wpvg-container textarea {
    width: 100%;
    border: 1px solid var(--wpvg-admin-border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: var(--form-input-size) !important;
    box-sizing: border-box;
	line-height: 20px;
}
.wpvg-container input:focus {
    border-color: var(--wpvg-admin-primary);
    outline: none;
}


/* Boutons principaux */
.wpvg-btn-primary {
    background-color: var(--wpvg-admin-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
	line-height: 20px;
    background: #2563eb !important;
    border-color: #1e4fd6 !important;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.25);
}

.wpvg-btn-primary:hover {
    background-color: var(--wpvg-admin-primary-hover);
}


.wpvg-container h3 {
    font-size: var(--title-size, 1.5rem) !important;
}

/* ========== Maquette Téléphone ========== */
.wpvg-phone-mockup {
    width: 320px;
    height: 640px;
    border: 12px solid #1f2937;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    background-color: var(--vcard-bg);
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.1);
}

.wpvg-phone-notch {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    background-color: #1f2937;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.wpvg-phone-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background-color: var(--vcard-bg);
    border: 0.1rem solid var(--vcard-color);
}

/* Masquer la scrollbar */
.wpvg-phone-content::-webkit-scrollbar { display: none; }
.wpvg-phone-content { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== Live Preview vCard Styles ========== */
.vcard-preview-header {
    height: 170px;
    background-color: var(--vcard-color);
    position: relative;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
	border-bottom: 0.1rem solid var(--vcard-color, #3780A0); /* add perso - header border 5px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.vcard-preview-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 0.1rem solid var(--vcard-color, #3780A0);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--vcard-bg);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vcard-preview-body {
    padding: 65px 20px 30px;
    text-align: center;
}

.vcard-preview-name {
    font-size: var(--title-size);
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--title-color);
	font-family: var(--vcard-font) !important;
}

.vcard-preview-title {
    font-size: var(--text-size, 0.9rem);
    color: var(--title-color, #6b7280);
    margin-bottom: 0.2rem;
}

.vcard-preview-company {
    font-size: var(--text-size, 0.95rem);
    font-weight: 600;
    color: var(--vcard-color, #3780A0);
    margin-bottom: 0.5rem;
}

.vcard-preview-bio {
    font-size: var(--text-size, 0.9rem);
    color: var(--text-color, #4b5563);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    background: var(--vcard-card-bg, #ffffff);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-align: left;
}

/* Rich Text Quill dans preview */
.quill-content ul { list-style-type: disc; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.quill-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.quill-content li { margin-bottom: 0.25rem; }
.quill-content p { margin-bottom: 0.5rem; font-size: var(--text-size, 0.9rem); color: var(--text-color, #111827); }
.quill-content a { color: var(--vcard-color, #3780A0); text-decoration: underline; } /* ← liens visibles */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* Masquer les traits du toolbar Quill dans les blocs featured */
.vcard-featured-block .ql-toolbar { display: none; }
.vcard-featured-block .ql-container { border: none; }

/* Fix bordures Quill - raccordement toolbar/editor */
.ql-toolbar.ql-snow {
    border: 1px solid var(--wpvg-admin-border);
    border-radius: 6px 6px 0 0;
    background: var(--wpvg-admin-bg);
}
.ql-container.ql-snow {
    border: 1px solid var(--wpvg-admin-border);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
}
.ql-editor { min-height: 80px; }
.ql-gap { 
	display: grid;
	gap: 10px;
}
.ql-padding { 
	margin: 7px 0;
}

.wpvg-quill-box.wpvg-limit-reached,
.wpvg-quill-wrapper .ql-container.wpvg-limit-reached {
    border-color: var(--form-text-warning) !important; /* orange doux */
}

.wpvg-limit-text {
    font-size: 12px;
    color: var(--form-text-warning) !important;
    margin-top: 4px;
}

.wpvg-limit-reached {
    border-color: var(--form-text-warning) !important;
}

.wpvg-limit-text {
    font-size: 12px;
    color: var(--form-text-warning);
    margin-top: 4px;
}


.vcard-preview-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vcard-preview-btn {
    background-color: var(--vcard-color, #3780A0);
    color: #fff;
    font-size: var(--text-size, 0.9rem);
    text-decoration: none;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    align-items: center;
    justify-content: center;

    /* Centrage automatique */
    display: flex;
    width: fit-content;
    margin: 1rem auto;
    text-align: center;
    padding: 0.7rem 1.3rem;
    border-radius: 0.9rem;
    background-color: var(--vcard-color);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.vcard-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========== Liens / Coordonnées ========== */
.vcard-preview-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2.5rem;
    text-align: left;
}

.vcard-link-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.vcard-link-wrapper .vcard-preview-link-item { flex: 1; }

.vcard-action-btn {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vcard-card-bg, #ffffff); /* ← blanc = couleur des champs */
    color: var(--vcard-color, #3780A0);
    border-radius: 14px;
    text-decoration: none;
    font-size: var(--icon-size, 1.1rem);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.vcard-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.vcard-preview-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background-color: var(--vcard-card-bg, #ffffff);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color, #374151);
    text-decoration: none;
    font-size: var(--text-size, 0.9rem);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vcard-preview-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--vcard-color, #3780A0);
    color: var(--icon-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--icon-size, 1.2rem);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Agrandir le conteneur (SPAN) */
.wpvg-preview-svg.coord-icon {
  width: calc(var(--icon-size, 1.2rem) * 1.3) !important;
  height: calc(var(--icon-size, 1.2rem) * 1.3) !important;
}

/* Le SVG suit la taille du span */
.wpvg-preview-svg.coord-icon svg {
  width: 100% !important;
  height: 100% !important;
}


.label {
    font-size: var(--text-size, 0.9rem);
    color: var(--title-color, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    font-weight: 600;
}

.label2 {
    font-size: 1rem;
    color: var(--title-color, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.value {
    word-break: break-word;
    font-size: var(--text-size, 0.9rem);
    color: var(--text-color, #111827);
    font-weight: 500;
}

/* ========== Réseaux Sociaux ========== */
.vcard-preview-social {
    font-size: var(--icon-size, 1.2rem);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 24px;
}

.section-title-label {
    font-size: calc(var(--title-size) * 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
	margin-bottom: 5px;
    color: var(--title-color, #9ca3af);
    font-weight: 700;
    text-align: center;
	padding-bottom: 1rem;
    font-family: var(--vcard-font) !important;
}

.vcard-preview-social-link {
    font-size: var(--icon-size, 1.2rem);
    width: 44px;
    height: 44px;
    background: var(--vcard-card-bg, #ffffff);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

/* Forcer les SVG à rester dans leur pastille */
.vcard-preview-social-link svg {
    font-size: calc(var(--title-size) * 1);
    display: block;
    fill: currentColor;
}
.vcard-preview-social-link i {
    font-size: var(--icon-size, 1.15rem);
    line-height: 1;
}

.vcard-preview-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Tooltip sur hover pour les pastilles sociales */
.vcard-preview-social-link::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.6rem;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 100;
}
.vcard-preview-social-link:hover::after {
    opacity: 1;
}

/* ========== Featured Blocks ========== */
.vcard-featured-block {
    background: var(--vcard-card-bg, #ffffff);
    border: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
    text-align: left;
}
.vcard-featured-block h3 {
    margin: 0 0 12px 0;
    font-size: var(--title-size, 1.05rem);
    color: var(--title-color, #111827);
}
.featured-media, .featured-product-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
}

.featured-text { font-size: var(--text-size, 0.9rem); color: var(--text-color, #4b5563); }
.iframe-container { position: relative; width: 100%; /* padding-bottom: 56.25%; */ border-radius: 8px; overflow: hidden; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.embed-wrapper { width: 100%; overflow: hidden; display: flex; justify-content: center; }
.embed-wrapper iframe, .embed-wrapper object, .embed-wrapper embed { max-width: 98%; display: block; border: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent); border-radius: 8px;}
.product-price-wrapper { margin: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: var(--title-color, #9ca3af) !important; opacity: 0.7; font-size: calc(var(--title-size) * 0.85); }
.product-price, .price-promo { font-size: var(--title-size); font-weight: 700; color: var(--vcard-color); }
.price-promo { color: #ef4444 !important; }
.featured-btn { width: 100%; justify-content: center; }

/* ========== Action Buttons dans les coordonnées ========== */
.vcard-action-btn svg {
    width: var(--icon-size, 1.1rem);
    height: var(--icon-size, 1.1rem);
}

/* ========== Modal QR / Partage ========== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-content { background: #fff; padding: 28px; border-radius: 24px; max-width: 300px; width: 100%; text-align: center; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--vcard-bg); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--wpvg-admin-text-light); }
.vcard-pdf-preview { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; margin: 1.5rem 0; transition: transform 0.2s; position: relative; }
.vcard-pdf-preview:hover { transform: scale(1.02); }
.pdf-thumb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 15px;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
}
.pdf-thumb-wrapper i { font-size: 3rem; color: #ef4444; }
.pdf-thumb-wrapper span { font-size: 0.9rem; font-weight: 600; color: #334155; }
.vcard-pdf-info { display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(239, 68, 68, 0.1); color: #ef4444; font-size: 0.85rem; font-weight: 600; }
#qrcode { display: flex; justify-content: center; margin: 14px 0; padding: 12px; background: #fff; border: 1px solid var(--wpvg-admin-border); border-radius: 12px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-btn { background: var(--vcard-bg); color: #374151; border: none; padding: 10px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background 0.2s; box-sizing: border-box; }
.share-btn:hover { background: var(--wpvg-admin-border); }

/* ========== Upload Zone ========== */
.wpvg-upload-area {
    border: 2px dashed var(--wpvg-admin-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.wpvg-upload-area:hover {
    border-color: #3b82f6;
    background-color: var(--wpvg-admin-bg);
}

.wpvg-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ========== Impression QR Code ========== */
@media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { 
        height: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        overflow: hidden !important; 
        background: #fff !important; 
    }
    /* Masquer ABSOLUMENT tout sauf le modal */
    body > *:not(#vcard-app) { display: none !important; }
    #vcard-app > *:not(#qr-modal-admin) { display: none !important; }
    
    #qr-modal-admin {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: white !important;
        z-index: 999999 !important;
    }
    .modal-content {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 2cm !important;
        margin: 0 !important;
    }
    .print-only-header { display: block !important; visibility: visible !important; }
    #qrcode-admin {
        margin: 60px auto !important;
        transform: scale(1.4) !important;
        transform-origin: center top !important;
    }
    /* Masquer les éléments interactifs */
    .modal-close, .share-grid, .print-hidden, button, .vcard-preview-btn { display: none !important; }
}

@media (max-width: 600px) {
  .section-title-label {
	font-size: calc(var(--title-size) * 0.75);
	padding-bottom: 1rem;
	}
}
.wpvg-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) { .wpvg-main-grid { grid-template-columns: 2fr 1fr; } }

/* --- Sections grises (Remplace bg-gray-50 p-4 rounded-xl...) --- */
.wpvg-admin-section {
    background-color: var(--wpvg-admin-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--vcard-bg);
    margin-bottom: 1.5rem;
}

/* --- Structure de la mise en page (Remplacement de la grille Tailwind) --- */
.wpvg-main-layout {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne par défaut (mobile) */
    gap: 32px; /* Équivalent à gap-8 de Tailwind */
    align-items: start;
}

/* À partir de 1024px (Largeur d'ordinateur), on passe en deux colonnes */
@media (min-width: 1024px) {
    .wpvg-main-layout {
        grid-template-columns: 2fr 1fr; /* 2 parts pour le formulaire, 1 part pour la vCard */
    }
}

/* Assurez-vous que la colonne de droite reste bien collée au défilement */
.wpvg-preview-column {
    overflow: visible !important;
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 100px !important; /* passé de 32 px à 100px pour le sticky header */
	align-self: flex-start !important;
	z-index: 50 !important;
}

.wpvg-admin-main-title {
    font-size: 1.5rem; /* Équivalent de text-2xl */
    font-weight: 700;    /* Équivalent de font-bold */
    color: #1f2937;    /* Équivalent de text-gray-800 */
    margin-bottom: 1.5rem; /* Équivalent de mb-6 - Rétablit l'espacement dessous */
    display: block;
}

.wpvg-section-title {
    /* Utilisation de votre variable interne */
    font-size: var(--form-section-size) !important; 
    font-weight: 600;    /* Équivalent de font-semibold */
    color: #1f2937;    /* Équivalent de text-gray-800 */
    margin-top: 0.5rem;
    margin-bottom: 1rem; /* Équivalent de mb-4 - Crée l'espace avec le contenu */
    padding-bottom: 0rem; /* Équivalent de pb-2 */
    border-bottom: 1px solid var(--wpvg-admin-border); /* Équivalent de border-b */
    display: flex;
    align-items: center;
}

/* Style optionnel pour les icônes FontAwesome dans ces titres */
.wpvg-section-title i {
    font-size: var(--form-icon-size) !important;
	margin-right: 0.5rem;
    color: #3780A0;       /* Le bleu de vos icônes d'administration */
}

/* --- Titre au-dessus de l'aperçu mobile --- */
.wpvg-preview-label {
    text-align: center;         /* Équivalent de text-center */
    font-weight: 700;           /* Équivalent de font-bold */
    color: var(--wpvg-admin-text-light);             /* Équivalent de text-gray-500 */
    margin-bottom: 1rem;        /* Équivalent de mb-4 */
    text-transform: uppercase;  /* Équivalent de uppercase */
    letter-spacing: 0.05em;     /* Équivalent de tracking-wider */
    font-size: 0.875rem;        /* Équivalent de text-sm */
    display: block;             /* Garantit que le centrage et la marge s'appliquent */
}

/* Boutons standards du plugin */
.wpvg-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
/* Hover pour feedback visuel */
.wpvg-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.wpvg-btn-secondary {
    background-color: var(--vcard-bg);
    color: #374151;
	margin-bottom: 0px !important;
	/* width: fit-content; */
    background: white !important;
    border-color: #d1d5db !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.wpvg-btn-secondary:hover { background-color: var(--wpvg-admin-border); }

/* Conteneur de prévisualisation d'image */
.wpvg-media-preview {
    position: relative;
    width: 100%;
    height: 96px; /* h-24 */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--wpvg-admin-border);
}

.wpvg-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpvg-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Grilles de formulaires (Remplace grid grid-cols-1 md:grid-cols-2 gap-4) */
.wpvg-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .wpvg-form-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .wpvg-form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Bloc de contenu mis en avant dans l'admin */
.wpvg-featured-admin-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 40px; /* Espace pour la poignée de drag & drop */
    margin-bottom: 24px;
}
/* --- Mise en page des champs (Grilles) --- */
.wpvg-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .wpvg-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .wpvg-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Éléments de formulaire --- */
.wpvg-field-wrapper {
    margin-bottom: 1rem; /* Remplace mb-4 ou mb-2 */
}

.wpvg-label {
    display: block;
    font-size: var(--form-label-size) !important; /* Utilise votre variable */
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.25rem; /* mb-1 */
	margin-left: 0.5rem;
}

.wpvg-input {
    width: 100%;
    border: 1px solid var(--wpvg-admin-border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: var(--form-input-size) !important;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpvg-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wpvg-label-2 {
    display: flex !important;
    justify-content: center;
    align-items: center;
	font-weight: 500;
    color: #374151; /* gray-700 */
	margin-left: 0px !important;
}

/* Ligne de sélection de couleur (Admin) */
.wpvg-color-row {
    display: inherit !important;
    justify-content: center;
    align-items: center;
}

/* Style pour les champs de couleur */
.wpvg-input-color {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    border-radius: 8px !important; /* L'arrondi souhaité */
    border: 1px solid var(--wpvg-admin-border) !important;
    padding: 0;
    overflow: hidden; /* Important pour masquer ce qui dépasse des angles */
    cursor: pointer;
    background: none;
}

/* Chrome, Safari, Edge, Opera */
.wpvg-input-color::-webkit-color-swatch-wrapper {
    padding: 0;
}
.wpvg-input-color::-webkit-color-swatch {
    border: none;
    border-radius: 8px; /* Doit correspondre à l'arrondi de l'input */
}

/* Firefox */
.wpvg-input-color::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}
/* Input texte pour code hexa */
.wpvg-input-hex {
    width: 96px; /* w-24 */
    border: 1px solid var(--wpvg-admin-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.875rem;
    text-transform: uppercase;
}


/* Pastille de réseau social (Bouton d'ajout) */
.wpvg-social-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wpvg-social-add-btn:hover {
    transform: scale(1.1);
}

/* Élément de la liste active (v-for) */
.wpvg-social-active-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Conteneur de bloc mis en avant (Admin) */
.wpvg-featured-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 40px; /* Espace pour la poignée de drag */
    margin-bottom: 24px;
}

/* Titre interne au bloc (H4) */
.wpvg-featured-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
	border-bottom: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent);
    padding-bottom: 4px;
	font-family: var(--vcard-font) !important;
}


/* Grille standard pour les champs de saisie */
.wpvg-admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; /* gap-4 */
    margin-top: 12px;
}

@media (min-width: 768px) {
    .wpvg-admin-grid-2 {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}



.wpvg-add-item-btn {
    background: #ffffff;
    border: 1px solid var(--wpvg-admin-border);
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpvg-add-item-btn i {
	font-size: var(--form-icon-size) !important;
    fill: currentColor; /* L'icône prend la couleur du texte du bouton */
}

.wpvg-add-item-btn:hover {
    background-color: var(--wpvg-admin-bg);
}

/* --- Utilitaires de texte et espacement (Remplaçants Tailwind) --- */
.wpvg-mt-1 { margin-top: 0.25rem !important; }
.wpvg-mt-6 { margin-top: 1.5rem !important; }
.wpvg-mb-2 { margin-bottom: 1rem !important; }
.wpvg-mb-6 { margin-top: 1.5rem !important; }
.wpvg-text-xs { font-size: 0.75rem !important; }
.wpvg-text-sm { font-size: 0.875rem !important; }
.wpvg-text-m { font-size: 1.5rem !important; }
.wpvg-font-normal { font-weight: 400 !important; }
.wpvg-font-medium { font-weight: 500 !important; }

/* --- Couleurs --- */
.wpvg-text-blue { color: #3b82f6 !important; }
.wpvg-text-gray-400 { color: #9ca3af !important; }
.wpvg-text-gray-700 { color: #374151 !important; }
.wpvg-text-orange { color: var(--form-text-warning) !important; }

/* --- Composants spécifiques --- */
.wpvg-col-span-full { grid-column: 1 / -1; } /* Remplace md:col-span-2 */

.wpvg-checkbox {
    width: auto !important; /* Annule le width: 100% global */
    height: 1.25rem;
    width: 1.25rem !important;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
}

/* --- Utilitaires de structure --- */
.wpvg-p-4 { padding: 1rem !important; }
.wpvg-w-full { width: 100% !important; }
.wpvg-relative { position: relative !important; }
.wpvg-border1 { border: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent); border-radius: 8px; }

/* Espacement vertical entre sections (Remplace space-y-8) */
.wpvg-sections-stack > * + * {
    margin-top: 2rem !important;
}

/* Grille à 3 colonnes pour l'admin */
.wpvg-field-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .wpvg-field-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.wpvg-field-grid-3 .wpvg-field-wrapper {
    min-height: 90px;
}

/* Label de formulaire standardisé */
.wpvg-label {
    display: block;
    font-size: var(--form-label-size) !important; 
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Label standardisé */
.wpvg-label-sub {
    display: flex;
    font-size: var(--form-label-size) !important;
    font-weight: 500;
    color: #374151; /* Équivalent text-gray-700 */
    align-items: center;
    justify-content: center;
}

/* Espaceur intelligent */
.wpvg-spacer-desktop {
    display: none;
}
@media (min-width: 768px) {
    .wpvg-spacer-desktop { display: block; }
}

/* --- Zones d'Upload et Previews --- */
.wpvg-upload-area {
    border: 2px dashed var(--wpvg-admin-border); /* border-gray-300 */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #9ca3af; /* gray-400 */
}

.wpvg-upload-banner { height: 96px; border-radius: 8px; width: 100%; }
.wpvg-upload-avatar { width: 96px; height: 96px; border-radius: 50%; }
.wpvg-upload-favicon { width: 64px; height: 64px; border-radius: 8px; }

.wpvg-upload-area:hover {
    border-color: #3b82f6;
    background-color: var(--wpvg-admin-bg);
    color: #3b82f6;
}

.wpvg-upload-area i { 
    width: var(--icon-size, 1.2rem);
    height: var(--icon-size, 1.2rem);
	margin-bottom: 4px; 
}
.wpvg-upload-area p { 
	font-size: calc(var(--title-size) * 0.85);
	color: var(--wpvg-admin-text-light); 
	margin: 0; 
}

.wpvg-avatar-admin {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wpvg-admin-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wpvg-favicon-admin {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--wpvg-admin-border);
}

/* --- Bouton de suppression universel --- */
.wpvg-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.wpvg-remove-btn:hover { background-color: #dc2626; }
.wpvg-remove-avatar { top: -6px; right: -8px; }
.wpvg-images-width { position: absolute; }

/* --- Utilitaires --- */
/* .wpvg-flex-center-gap { display: flex; align-items: center; gap: 1rem; } */
.wpvg-flex-center-gap { align-items: center; gap: 1rem; display: grid; }

/* --- Conteneur de l'éditeur Bio --- */
.wpvg-editor-container {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    border: 1px solid var(--wpvg-admin-border); /* border-gray-300 */
    overflow: hidden;
}

/* --- Couleurs et États de Validation --- */
.wpvg-text-red { color: #ef4444 !important; }
.wpvg-border-red { border-color: #ef4444 !important; }

/* Focus spécial en cas d'erreur */
.wpvg-input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Style des icônes dans les labels de coordonnées */
.wpvg-label i {
    color: #9ca3af; /* Gris doux (gray-400) */
    width: 20px;    /* Largeur fixe pour aligner les textes */
    /* margin-right: 8px; */
}

/* --- Structure --- */
.wpvg-col-span-full { grid-column: 1 / -1; } /* Remplace md:col-span-2 */

/* --- Couleurs des Messageries (Admin Icons) --- */
.wpvg-icon-whatsapp { color: #22c55e !important; }
.wpvg-icon-messenger { color: #3b82f6 !important; }
.wpvg-icon-telegram { color: #60a5fa !important; }
.wpvg-icon-teams, .wpvg-icon-viber { color: #9333ea !important; }
.wpvg-icon-line, .wpvg-icon-wechat { color: #00c300 !important; }
.wpvg-icon-zalo { color: #60a5fa !important; }
.wpvg-icon-qq { color: #3b82f6 !important; }
.wpvg-icon-discord { color: #6366f1 !important; }
.wpvg-icon-slack { color: #16a34a !important; }
.wpvg-icon-ringover { color: #f97316 !important; }
.wpvg-icon-kakao { color: #FAE100 !important; }
.wpvg-icon-signal { color: #2563eb !important; }

/* --- Utilitaires de texte pour l'intro --- */
.wpvg-admin-description {
	font-size: calc(var(--title-size) * 0.85);
    color: var(--wpvg-admin-text-light);     /* text-gray-500 */
    margin-bottom: 1rem; /* mb-4 */
    display: block;
}

/* Zone de sélection des icônes disponibles */
.wpvg-social-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 350px; /* max-h-48 */
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--wpvg-admin-border);
    background-color: #fff;
    border-radius: 8px;
}

.wpvg-social-btn-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wpvg-social-btn-add:hover { transform: scale(1.1); }

/* --- Liste des réseaux activés --- */
.wpvg-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpvg-social-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wpvg-social-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.wpvg-social-svg-icon {
	font-size: var(--form-icon-size) !important;
    fill: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- État Vide --- */
.wpvg-empty-state {
    text-align: center;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px dashed var(--wpvg-admin-border);
    color: var(--wpvg-admin-text-light);
	font-size: calc(var(--title-size) * 0.85);
	margin-top: 1.5rem;
}

/* --- Bouton Supprimer --- */
.wpvg-trash-btn {
    color: #ef4444;
    padding: 8px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.wpvg-trash-btn i {
    font-size: calc(var(--form-icon-size) * 0.85);
} 

.wpvg-trash-btn:hover {
    color: #b91c1c;
    background-color: #fef2f2;
}

/* --- Couleurs thématiques pour les icônes de contenu --- */
.wpvg-text-yellow { color: #f59e0b !important; }
.wpvg-text-red { color: #ef4444 !important; }
.wpvg-text-purple { color: #a855f7 !important; }
.wpvg-text-pink { color: #ec4899 !important; }
.wpvg-text-blue { color: #3b82f6 !important; }

/* --- Conteneur des boutons d'ajout --- */
.wpvg-add-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem; /* mb-6 */
}

/* Espacement entre les cartes de contenu (Remplace space-y-6) */
.wpvg-featured-stack > * + * {
    margin-top: 1.5rem !important;
}


.wpvg-btn-remove-card {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.wpvg-btn-remove-card i {
    font-size: calc(var(--form-icon-size) * 0.85);
} 
.wpvg-btn-remove-card:hover { 
    background-color: #fef2f2; 
    color: #b91c1c; 
}

/* --- Bloc Média Interne --- */
.wpvg-media-block {
    display: block !important;
    width: 100%;
    min-height: 50px; /* Garantit une visibilité minimale */
    padding-right: 1.5rem;
}
.wpvg-media-block svg {
    width: var(--form-icon-size, 1.2rem) !important;
    height: var(--form-icon-size, 1.2rem) !important;
}
/* Assurez-vous que les inputs à l'intérieur sont bien visibles */
.wpvg-media-block .wpvg-input {
    margin-bottom: 0.75rem;
    display: block;
}

/* Titre spécifique du bloc Média */
.wpvg-media-title {
    font-weight: 700;
    font-size: var(--form-label-size);
    color: var(--wpvg-admin-primary); /* blue-600 */
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--wpvg-admin-border);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
}
.wpvg-media-title i { margin-right: 0.5rem; }

/* Boîte d'options spécifique aux fichiers PDF */
.wpvg-pdf-options-box {
    margin-top: 1rem;
	margin-bottom: 1rem;
    padding: 12px;
    background-color: #eff6ff; /* blue-50 */
    border-radius: 8px;
    border: 1px solid #bfdbfe; /* blue-200 */
}

.wpvg-pdf-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wpvg-admin-primary-hover); /* blue-700 */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Miniatures (Thumbnails) */
.wpvg-thumb-preview {
    width: 80px;  /* w-20 */
    height: 112px; /* h-28 */
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--wpvg-admin-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wpvg-thumb-empty {
    width: 80px;
    height: 112px;
    background-color: var(--vcard-bg);
    border: 2px dashed var(--wpvg-admin-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
}

.wpvg-thumb-empty i { font-size: 1.25rem; margin-bottom: 4px; }
.wpvg-thumb-empty span { font-size: 8px; padding: 0 4px; }

/* Textes d'aide et labels secondaires */
.wpvg-label-xs {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.wpvg-helper-text {
	font-size: calc(var(--title-size) * 0.85);
    color: var(--wpvg-admin-text-light);
    font-style: italic;
    margin-top: 4px;
}

/* --- Cadre de prévisualisation du média chargé --- */
.wpvg-featured-media-frame {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--wpvg-admin-border);
    overflow: hidden;
    width: 100%;
}

.wpvg-featured-media-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Badge de succès (Miniature générée) */
.wpvg-badge-green {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #22c55e;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Boîte d'état PDF (Quand l'image n'est pas encore traitée) */
.wpvg-pdf-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #fef2f2; /* red-50 */
    border: 1px solid #fecaca; /* red-200 */
    border-radius: 8px;
    padding: 16px;
}

.wpvg-pdf-status-card i {
    font-size: 2.25rem; /* text-4xl */
    color: #ef4444;
}

.wpvg-pdf-status-title {
    font-size: 0.75rem;
    color: #b91c1c;
    font-weight: 700;
    text-transform: uppercase;
}

/* Bouton de suppression de texte */
.wpvg-btn-text-danger {
	font-size: calc(var(--title-size) * 0.85);
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    padding: 0;
    text-decoration: none;
}

.wpvg-btn-text-danger:hover {
    text-decoration: underline;
}

/* --- Titres spécifiques des blocs de contenu --- */
.wpvg-featured-title {
    font-weight: 700;
    font-size: var(--form-label-size); /* text-base */
    margin-bottom: 1rem; /* mb-2 */
    border-bottom: 1px solid var(--wpvg-admin-border); /* border-b */
    padding-bottom: 1rem; /* pb-1 */
    display: flex;
    align-items: center;
}

.wpvg-featured-title i { margin-right: 0.5rem; }

/* Couleurs par type de bloc */
.wpvg-featured-title-yt { color: #ef4444 !important; }    /* YouTube - Red 600 */
.wpvg-featured-title-text { color: #1f2937 !important; }  /* Texte - Gray 800 */
.wpvg-featured-title-audio { color: #db2777 !important; } /* Audio - Pink 600 */

/* --- Lecteur Audio --- */
.wpvg-audio-player {
    width: 100%;
    height: 40px; /* h-10 */
    margin-top: 0.5rem;
}
/* --- Player Audio Modernisé --- */
audio {
    width: 100%;
    border-radius: 8px;
    background: #f8f8f8; /* important */
    overflow: hidden;     /* important */
}

/* Style du panneau de contrôle */
audio::-webkit-media-controls-panel {
    background: #f8f8f8;
    border-radius: 8px;
}

/* Icônes modernisées */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider {
    filter: invert(40%);
}

/* --- Titres spécifiques des blocs --- */
.wpvg-featured-title-video { color: #9333ea !important; }   /* Purple 600 */
.wpvg-featured-title-product { color: #059669 !important; } /* Emerald 600 */

/* --- Prévisualisations Médias --- */
.wpvg-video-preview {
    width: 100%;
    max-height: 160px; /* max-h-40 */
    border-radius: 6px;
    background-color: #000;
}

.wpvg-product-img-admin {
    height: 80px; /* h-20 */
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--wpvg-admin-border);
}

/* --- Utilitaires de Grille et Largeur --- */
.wpvg-flex-gap-2 {
    display: flex;
    gap: 8px;
	align-items: center;
	justify-content: center;
}

.wpvg-w-1-2 { width: 100% !important; }
.wpvg-w-1-3 { width: 33.33% !important; }
.wpvg-w-2-3 { width: 66.66% !important; }

.wpvg-items-start { align-items: flex-start; }

/* --- Couleurs thématiques spécifiques --- */
.wpvg-featured-title-cta { color: #a38215 !important; }    /* Purple 600 */
.wpvg-featured-title-iframe { color: var(--form-text-warning) !important; } /* Orange 600 */


.wpvg-items-start { align-items: flex-start; }

.wpvg-w-1-3 { width: 33.33% !important; }
.wpvg-w-2-3 { width: 66.66% !important; }

/* --- Utilitaires de texte (Rappels) --- */
.wpvg-text-red { color: #ef4444 !important; }
.wpvg-text-xs { font-size: calc(var(--title-size) * 0.85) !important;
 }
.wpvg-mt-1 { margin-top: 0.25rem !important; }
.wpvg-mt-2 { margin-top: 1rem; margin-bottom: 1rem !important; }

/* Cache l'élément et le retire totalement du calcul de l'espace */
/* Force la disparition totale des éléments avec la classe .hidden */
.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Optionnel : Assurez-vous que les colonnes d'action ont une hauteur cohérente */
.wpvg-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .wpvg-actions-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center; /* Aligne les boutons sur leur propre hauteur */
    }
}

/* Cache l'overlay du QR Code de manière agressive quand il n'est pas actif */
.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Renforcement de la classe hidden pour les inputs de fichiers */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Nouvelle classe pour uniformiser les SVGs de l'aperçu */
.wpvg-preview-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size);
    height: var(--icon-size);
    fill: currentColor; /* L'icône prendra la couleur du texte du bouton */
}

.wpvg-preview-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Remplace : w-12 h-1.5 bg-gray-700 rounded-full mx-auto mt-2 */
.wpvg-phone-speaker {
    width: 48px;
    height: 6px;
    background-color: #374151;
    border-radius: 999px;
    margin: 8px auto 0;
}

/* Remplace : w-full h-full rounded-full object-cover */
.vcard-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Classe utilitaire pour l'icône fallback utilisateur */
.wpvg-preview-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpvg-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 8px; /* Espace entre l'icône et le texte */
    fill: currentColor; /* L'icône prend la couleur du texte du bouton */
    vertical-align: middle;
}

.wpvg-btn-icon svg {
    width: 100%;
    height: 100%;
}

.wpvg-section-title i svg,
.wpvg-add-item-btn i svg,
.wpvg-label i svg {
    vertical-align: middle;
    display: block;
}
.wpvg-label i {
    display: inline-flex;
    align-items: center;
    margin-right: .4rem;
    vertical-align: middle;
}
.wpvg-label i svg,
.wpvg-remove-btn i svg,
.wpvg-upload-area i svg {
    display: block;
    vertical-align: middle;
}
.wpvg-remove-btn i svg {
    width: var(--icon-size, 1.2rem) !important;
    height: var(--icon-size, 1.2rem) !important;
	min-width: 100% !important;
	min-height: 100% !important;
}
.wpvg-featured-card .wpvg-drag-handle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: grab;
    user-select: none;
    color: #9ca3af;
    transition: color 0.2s;
}
.wpvg-featured-drag-handle:active {
    cursor: grabbing;
}

.wpvg-featured-drag-handle svg {
    width: 14px;
    height: 14px;
    display: block;
    opacity: .7;
}

.wpvg-social-item .wpvg-drag-handle {
    cursor: grab;
}
.wpvg-social-item .wpvg-drag-handle:active {
    cursor: grabbing;
}
.wpvg-featured-card .wpvg-drag-handle {
    cursor: grab;
}
.wpvg-featured-card .wpvg-drag-handle:active {
    cursor: grabbing;
}

/* Désactivation générique */
.wpvg-btn:disabled {
    cursor: default !important;
    pointer-events: none !important;
    opacity: 0.6;
}

/* Désactivation visuelle uniquement pour les boutons secondaires */
.wpvg-btn-secondary:disabled,
.wpvg-btn-disabled.wpvg-btn-secondary {
    background-color: #b3b3b3 !important;
    border-color: #999 !important;
    color: #fff !important;
}

.wpvg-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empêcher le hover quand désactivé */
.wpvg-btn-disabled:hover,
.wpvg-btn:disabled:hover {
    background-color: #cccccc !important;
}

/* .wpvg-zip-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
} */

.wpvg-mode-section {
	background-color: var(--wpvg-admin-bg);
	padding: 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--vcard-bg);
	margin-bottom: 1.5rem;
}

/* SWITCH MODERNE (type iOS) */
.wpvg-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.wpvg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wpvg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.wpvg-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

/* État ON */
.wpvg-switch input:checked + .wpvg-slider {
    background-color: #4CAF50;
}

.wpvg-switch input:checked + .wpvg-slider:before {
    transform: translateX(24px);
}

.wpvg-checkbox {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
	outline: 1px solid #f97316 !important; 
}


/* Réduction du Live Preview sur mobile */
@media (max-width: 400px) {
    .wpvg-phone-mockup {
        transform: scale(1) !important;
		box-shadow: 0 !important;
        transform-origin: top center;
        width: 100%;
        margin: 0 auto;
    }
}

.wpvg-flex { display: flex; }
.wpvg-flex-col { flex-direction: column; }
.wpvg-gap-4 { gap: 1rem; }

/* Espacement global entre les éléments */
.wpvg-stack > * + * {
    margin-top: 1rem;
}

.wpvg-spin {
    animation: wpvg-spin 1s linear infinite;
}

@keyframes wpvg-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wpvg-spin svg {
    animation: wpvg-spin 1s linear infinite;
    transform-origin: center center;
    transform-box: fill-box;
}

.wpvg-btn-success {
    background: #16a34a !important; /* vert */
    border-color: #15803d !important;
    color: white !important;
}

.wpvg-success-box {
    padding: 15px;
    background: #e8fbe8;
    border-left: 4px solid #0a7a0a;
    border-radius: 4px;
}

.wpvg-success-modal {
    margin-top: 20px;
    padding: 20px;
    background: #e8fbe8;
    border: 2px solid #0a7a0a;
    border-radius: 8px;
    text-align: center;
}

.wpvg-success-icon {
    font-size: 32px;
    color: #0a7a0a;
    display: block;
    margin-bottom: 10px;
}

.wpvg-info-box {
    padding: 15px;
    background: #e8f1ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
}

/* ------------------------------------------------------ */
/* 🎨 PALETTES */
/* ------------------------------------------------------ */

.wpvg-palette-card {
    cursor: pointer;
    border: 2px solid var(--wpvg-admin-border);
    border-radius: 8px;
    background: #fff;
    padding: 12px 0 10px;
    text-align: center;
    transition: 0.2s ease;
}

.wpvg-palette-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wpvg-palette-active {
    border-color: var(--wpvg-admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Pastilles */
.wpvg-palette-dots {
    position: relative;
    width: 82px;
    height: 38px;
    margin: 0 auto 8px auto;
}

.wpvg-dot {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--wpvg-admin-text);
}

.wpvg-dot:nth-child(1) { left: 0; }
.wpvg-dot:nth-child(2) { left: 22px; }
.wpvg-dot:nth-child(3) { left: 44px; }

.wpvg-palette-name {
    margin-top: 6px;
    width: 82px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille responsive */
.wpvg-grid-4 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .wpvg-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wpvg-sep-line {
    margin-bottom: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--wpvg-admin-border);
}

/* ------------------------------------------------------ */
/* 🎨 COULEURS (HEX + PICKR) */
/* ------------------------------------------------------ */

.wpvg-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Champ HEX → 1/3 */
.wpvg-input-hex {
    width: 33% !important;
    min-width: 80px;
}

/* Bouton Pickr → 2/3 */
.wpvg-color-btn {
    width: 67% !important;
    height: 40px !important;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0;
    cursor: pointer;
    background: #fff;
}

/* Bouton interne Pickr */
.pcr-button {
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px !important;
	padding: 2em !important;
	border-radius: 0.375rem !important;
	border: 1px solid var(--wpvg-admin-text) !important;
}

/* ------------------------------------------------------ */
/* 🔠 TAILLES (boutons + / -) */
/* ------------------------------------------------------ */

.wpvg-size-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpvg-size-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
	font-family: sans-serif;
}

.wpvg-input-size {
    width: 70px;
    text-align: center;
}

@media (max-width: 400px) {

    .wpvg-featured-card {
        padding-left: 26px !important;
        padding-top: 16px !important;
        padding-right: 15px !important;
        margin-bottom: 14px !important;
    }

    .wpvg-featured-card .wpvg-drag-handle {
        left: 1px !important;
        width: 22px !important;
        height: 22px !important;
        opacity: 0.8;
    }

    .wpvg-media-block {
        padding-right: .1rem !important;
    }

    .wpvg-mt-2 {
        margin-top: .1rem !important;
        margin-bottom: .1rem !important;
    }

    /* ⭐ Élément clé : élargir la zone Rich Text */
    .wpvg-featured-card .wpvg-richtext-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Pour être sûr que les champs suivent */
    .wpvg-featured-card textarea,
    .wpvg-featured-card input[type="text"] {
        width: 100% !important;
    }
}

/* 📱 Mobile uniquement */
@media (max-width: 1040px) {

  /* On masque le layout 70/30 si besoin, ou on laisse WordPress gérer,
     mais on force le panel en mode "drawer" mobile */
  .wpvg-preview-panel {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 90vh;
      background: #ffffff;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
      transform: translateY(100%);
      transition: transform .3s ease;
      z-index: 9998;
      overflow-y: auto;
  }

  .wpvg-preview-panel.open {
      transform: translateY(0);
  }

  /* Bouton flottant visible UNIQUEMENT en mobile */
  .wpvg-preview-btn {
      position: fixed;
      bottom: 16px;
      right: 16px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #ffffff;
      border: 1px solid #ff4d00;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 9999;
      transition: all .25s ease;
  }

  .wpvg-preview-btn .wpvg-icon {
      width: 22px;
      height: 36px;
      background-color: #3780A0;
      border-radius: 4px; /* icône neutre pour l’instant */
      transition: transform .25s ease, background-color .25s ease;
  }

  .wpvg-preview-btn.open {
      background: #ff4d00;
      border-color: #3780A0;
      box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  }

  .wpvg-preview-btn.open .wpvg-icon {
      transform: rotate(45deg);
      background-color: #ffffff;
  }
  .wpvg-sticky-col {
	  padding: 7px;
  }
}

/* 🖥️ Bureau : on cache le bouton, on garde ton 70/30 */
@media (min-width: 1040px) {
  .wpvg-preview-btn {
      display: none;
  }
}

.gdpr-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--vcard-color);
    cursor: pointer;
	border: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent); 
}

.gdpr-video-thumb {
    width: 100%;
    padding-bottom: 56.25%; /* ratio 16/9 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    cursor: pointer;
}


.gdpr-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px black;
}

.gdpr-video-notice {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: .3rem;
    font-size: .75rem;
    background: rgba(255,255,255,.8);
    text-align: center;
}

.gdpr-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Wrapper général */
.gdpr-map {
    position: relative;
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
	border: 0.1rem solid color-mix(in srgb, var(--vcard-color) 20%, transparent);
}

/* Overlay RGPD */
.gdpr-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Bouton */
.gdpr-map-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #4CAF50;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.gdpr-map-btn:hover {
    background: #43a047;
}

/* 🔐 Consentement tracking */
.wpvg-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.wpvg-consent-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wpvg-consent-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.wpvg-consent-buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#wpvg-consent-accept {
    background: #10b981;
    color: white;
}

#wpvg-consent-decline {
    background: #ef4444;
    color: white;
}
