/* =====================================================
   CorporateVO — Charte graphique front-end
   ===================================================== */

.cvo-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

/* ---- Sections ---- */
.cvo-section {
    margin-bottom: 80px;
}
.cvo-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Grilles ---- */
.cvo-grid {
    display: grid;
    gap: 40px;
}
.cvo-grid-identity {
    grid-template-columns: 1fr 2fr;
}
.cvo-grid-typo {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .cvo-grid-identity,
    .cvo-grid-typo {
        grid-template-columns: 1fr;
    }
}

/* ---- Carte générateur logo ---- */
.cvo-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cvo-card-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.08em;
    color: #111;
    margin: 0 0 20px;
}
.cvo-field {
    margin-bottom: 18px;
}
.cvo-label {
    display: block;
    font-size: 12px;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 6px;
}
.cvo-input-number {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: #f9f9f9;
    box-sizing: border-box;
    outline: none;
}
.cvo-input-number:focus {
    border-color: #999;
}
.cvo-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    margin-bottom: 4px;
}
.cvo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
}
#cvo-slider-val {
    font-size: 12px;
    color: #888;
}

/* ---- Toggle groupe ---- */
.cvo-toggle-group {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.cvo-toggle {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #777;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.cvo-toggle.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ---- Boutons téléchargement ---- */
.cvo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background .15s, color .15s;
}
.cvo-btn-primary {
    background: #111;
    color: #fff;
}
.cvo-btn-primary:hover {
    background: #333;
    color: #fff;
}
.cvo-btn-secondary {
    background: #f0f0f0;
    color: #111;
}
.cvo-btn-secondary:hover {
    background: #e0e0e0;
    color: #111;
}

/* ---- Affichage logo ---- */
.cvo-logo-display {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 32px;
    transition: background-color 0.3s ease;
}
.cvo-logo-empty {
    font-size: 48px;
    font-weight: 600;
    color: #111;
}

/* ---- Clearspace ---- */
.cvo-logo-clearspace {
    margin-top: 16px;
}
.cvo-grid-bg {
    background-image:
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
}
.cvo-clearspace-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cvo-clearspace-inner {
    position: relative;
    display: inline-block;
}
.cvo-clearspace-border {
    position: absolute;
    inset: -24px;
    border: 1px dashed #aaa;
    pointer-events: none;
}
.cvo-clearspace-label {
    position: absolute;
    font-size: 10px;
    color: #888;
    left: 50%;
    transform: translateX(-50%);
}
.cvo-cs-top { top: -18px; }
.cvo-cs-bottom { bottom: -18px; }
.cvo-note {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 520px;
}

/* ---- Palette Premium ---- */
.cvo-palette-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 768px) {
    .cvo-palette-premium {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Roue chromatique */
.cvo-color-wheel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cvo-wheel-svg {
    width: 380px;
    height: 380px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

/* Export palette - positionné au centre de la roue */
.cvo-export-palette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Bouton d'export au centre - style minimal */
.cvo-export-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cvo-export-trigger:hover {
    color: #111;
    transform: scale(1.1);
}

.cvo-export-trigger:focus {
    outline: 2px solid rgba(0,0,0,0.06);
    outline-offset: 2px;
}

.cvo-export-trigger .cvo-chevron {
    transition: transform 0.2s ease;
}

.cvo-export-trigger[aria-expanded="true"] .cvo-chevron {
    transform: rotate(180deg);
}

/* Valeurs des couleurs */
.cvo-color-values {
    padding-top: 8px;
}

.cvo-values-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cvo-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .cvo-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cvo-values-grid {
        grid-template-columns: 1fr;
    }
}

.cvo-value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cvo-value-pastille {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvo-pastille-num {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cvo-value-details {
    flex: 1;
}

.cvo-value-name {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


.cvo-value-refs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cvo-value-refs span {
    font-size: 11px;
    color: #666;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    letter-spacing: -0.02em;
}

.cvo-ref-hex {
    font-weight: 600;
    color: #111;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cvo-ref-rgb,
.cvo-ref-cmyk,
.cvo-ref-pantone {
    font-size: 10px;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Export Palette Menu ---- */
.cvo-export-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    min-width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cvo-export-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cvo-export-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    padding: 6px 12px 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cvo-export-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cvo-export-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    font-family: inherit;
}

.cvo-export-option:hover {
    background: #f8f8f8;
}

.cvo-export-option:focus {
    outline: 2px solid rgba(0,0,0,0.06);
    outline-offset: -2px;
    background: #f8f8f8;
}

.cvo-export-option svg {
    flex-shrink: 0;
    color: #999;
    stroke-width: 1.8;
}

.cvo-export-option:hover svg {
    color: #666;
}

.cvo-export-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cvo-export-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.cvo-export-desc {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
}

.cvo-export-secondary .cvo-export-name {
    font-weight: 500;
    color: #555;
}

.cvo-export-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* ---- Typographie ---- */
.cvo-typo-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cvo-alphabet {
    font-size: 40px;
    line-height: 1.2;
    color: #111;
    margin-bottom: 20px;
    word-break: break-all;
}
.cvo-typo-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cvo-typo-name {
    font-size: 13px;
    margin: 0 0 2px;
}
.cvo-typo-origin,
.cvo-typo-style {
    font-size: 11px;
    color: #888;
    margin: 0;
}
.cvo-dl-icon {
    color: #bbb;
    text-decoration: none;
    transition: color .15s;
}
.cvo-dl-icon:hover {
    color: #111;
}

/* ---- Footer ---- */
.cvo-footer {
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    gap: 8px;
}
.cvo-footer-link {
    color: #888;
    text-decoration: none;
}
.cvo-footer-link:hover {
    color: #111;
}

/* ---- Moodboard Grille 4 colonnes ---- */
.cvo-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 4px;
}

.cvo-masonry-item {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.cvo-masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.cvo-masonry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cvo-masonry-item:hover::before {
    opacity: 1;
}

.cvo-masonry-item::after {
    content: '\2795';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #111;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cvo-masonry-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cvo-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvo-masonry-item:hover img {
    transform: scale(1.03);
}

/* ---- Lightbox Premium ---- */
.cvo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cvo-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cvo-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvo-lightbox.active .cvo-lightbox-content {
    transform: scale(1);
}

.cvo-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Bouton fermer */
.cvo-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cvo-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Navigation */
.cvo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.cvo-lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.cvo-lightbox-prev { left: 20px; }
.cvo-lightbox-next { right: 20px; }

/* Compteur */
.cvo-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ---- Titre version active ---- */
.cvo-version-title-display {
    margin-bottom: 20px;
}

.cvo-active-version-name {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ---- Versions miniatures ---- */
.cvo-versions-thumbnails {
    margin-top: 32px;
}

.cvo-thumbnails-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cvo-thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cvo-thumbnail-label {
    font-size: 11px;
    color: #666;
    text-align: center;
    max-width: 150px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cvo-thumbnail-item {
    min-width: 150px;
    height: 100px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    background: #fff;
}


.cvo-thumbnail-item img {
    max-width: 150px;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.cvo-thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cvo-thumbnail-item:hover img {
    transform: scale(1.08);
}

.cvo-thumbnail-item.active {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Sélecteur de version en boutons */
.cvo-version-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cvo-version-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cvo-version-btn:hover {
    background: #eee;
    border-color: #ccc;
}

.cvo-version-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =====================================================
   Gate email — overlay flouté + modale
   ===================================================== */
.cvo-wrap.cvo-gated {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.cvo-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(250, 250, 250, 0.55);
}

.cvo-gate-modal {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    padding: 40px 36px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: cvo-gate-in 0.35s ease;
}

@keyframes cvo-gate-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cvo-gate-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.cvo-gate-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.cvo-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cvo-gate-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}
.cvo-gate-input:focus {
    border-color: #111;
}

.cvo-gate-submit {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cvo-gate-submit:hover {
    background: #333;
}
.cvo-gate-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cvo-gate-feedback {
    font-size: 13px;
    margin: 16px 0 0;
    min-height: 18px;
}
.cvo-gate-feedback.cvo-gate-success {
    color: #1a7f37;
}
.cvo-gate-feedback.cvo-gate-error {
    color: #cf222e;
}

/* ---- Mockup Produits ---- */
.cvo-mockup-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

#cvo-mockup-svg {
    display: block;
    width: 100%;
    height: auto;
}

.cvo-logo-overlay {
    filter: contrast(1.1);
}

/* ---- Planche de branding ---- */
.cvo-branding-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: visible;
    line-height: 0;
    padding-top: 30px;
}

#cvo-branding-canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Effet hover premium ---- */
.cvo-branding-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.cvo-branding-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvo-branding-overlay-inner {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvo-branding-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    margin-bottom: 16px;
    color: #111;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cvo-branding-icon svg {
    width: 28px;
    height: 28px;
}

.cvo-branding-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cvo-branding-container:hover .cvo-branding-overlay {
    opacity: 1;
}

.cvo-branding-container:hover .cvo-branding-overlay-inner {
    transform: translateY(0);
}

.cvo-branding-container:hover .cvo-branding-icon {
    transform: scale(1.05);
}

.cvo-branding-container:hover #cvo-branding-canvas {
    transform: scale(1.02);
}

#cvo-branding-canvas {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Loupe Zoom ---- */
.cvo-branding-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 0 20px rgba(0,0,0,0.1);
    display: none;
    pointer-events: none;
    z-index: 100;
    background-repeat: no-repeat;
    cursor: none;
}

.cvo-branding-lens::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 10px;
    background: rgba(255,0,0,0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cvo-branding-lens::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: rgba(255,0,0,0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cvo-branding-container:hover .cvo-branding-overlay {
    opacity: 1;
}

/* Deux icônes côte à côte */
.cvo-branding-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cvo-branding-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cvo-branding-icon:hover {
    transform: scale(1.1);
}

/* ---- Lightbox ---- */
.cvo-branding-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cvo-branding-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cvo-branding-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: cvo-lightbox-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvo-branding-lightbox-content img {
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

@keyframes cvo-lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cvo-branding-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.cvo-branding-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cvo-branding-lightbox {
        padding: 20px;
    }
    .cvo-branding-lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .cvo-branding-icons {
        gap: 12px;
    }
}
