/* CSS spécifique au Bulk Generator */

/* Layout principal */
.generator-container {
    display: flex;
    min-height: 100vh;
    background: var(--color-black);
}

.form-section {
    flex: 1;
    padding: 3rem;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    overflow-y: auto;
}

.preview-section {
    width: 400px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Masquer la preview sur certaines étapes */
.preview-section.hidden {
    display: none;
}

.form-section.full-width {
    width: 100%;
}

/* Zone de drag & drop pour fichiers */
.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.file-upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-zone.dragover {
    border-color: rgba(218, 255, 115, 0.8);
    background: rgba(218, 255, 115, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(218, 255, 115, 0.3);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    color: rgba(255, 255, 255, 0.6);
}

.upload-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.upload-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.upload-link {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.upload-link:hover {
    color: var(--color-secondary);
}

/* Color descriptions */
.color-section-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin: -0.5rem 0 1.5rem 0;
    font-weight: 400;
}

.color-picker label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.color-picker label strong {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.color-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Color preview hint */
.color-preview-hint {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
    line-height: 1.4;
}

/* Template card next button */
.template-card-next {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 1rem 2rem;
    background: var(--btn-yellow);
    color: var(--color-black);
    border: none;
    border-radius: var(--btn-radius);
    font-family: var(--font-medium-extend);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.template-item.selected .template-card-next {
    opacity: 1;
    pointer-events: auto;
}

.template-card-next:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.template-card-next svg {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.file-types {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.file-types span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Section template CSV */
.csv-template-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.csv-template-section h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.csv-template-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.template-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.csv-template-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.csv-template-table th,
.csv-template-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.csv-template-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-weight: 600;
}

.csv-template-table td {
    color: rgba(255, 255, 255, 0.8);
}

.csv-template-table th:first-child,
.csv-template-table th:nth-child(2),
.csv-template-table th:nth-child(3) {
    color: var(--color-primary);
}

/* Aperçu des données importées */
.data-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.data-preview-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.data-preview-actions .btn-primary {
    padding: 1.6rem 3.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.data-preview-actions .btn-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 0.2rem;
}

.data-preview h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-item strong {
    color: var(--color-white);
    font-weight: 600;
}

.preview-table-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.preview-table th,
.preview-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table td {
    color: rgba(255, 255, 255, 0.8);
}

.preview-table tr.error {
    background: rgba(220, 53, 69, 0.1);
}

.preview-table tr.error td {
    color: #dc3545;
}

/* Zone d'upload logo */
.logo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 400px;
}

.logo-upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.logo-upload-zone.dragover {
    border-color: rgba(218, 255, 115, 0.8);
    background: rgba(218, 255, 115, 0.1);
    box-shadow: 0 0 15px rgba(218, 255, 115, 0.3);
    transform: scale(1.02);
}

.logo-preview {
    position: relative;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
}

.btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #c82333;
}

/* Contrôles de prévisualisation */
.preview-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#previewSelector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--color-white);
    font-size: 0.9rem;
    min-width: 200px;
}

#previewSelector option {
    background: var(--color-black);
    color: var(--color-white);
}

/* Placeholder de prévisualisation */
.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.preview-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.preview-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* Boutons avec design Galahad */
.btn-secondary {
    background: rgba(218, 255, 115, 0.02) !important;
    border: 1px solid rgba(218, 255, 115, 0.4);
    box-shadow: 
        0 0 10px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
    color: rgba(218, 255, 115, 0.9);
    padding: 1.6rem 3.2rem;
    border-radius: var(--btn-radius);
    font-family: var(--font-medium-extend);
    font-weight: 500;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(218, 255, 115, 0.3),
        rgba(218, 255, 115, 0.1),
        rgba(218, 255, 115, 0.3),
        rgba(218, 255, 115, 0.1)
    );
    background-size: 400% 400%;
    opacity: 0;
    z-index: -2;
    border-radius: var(--btn-radius);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(218, 255, 115, 0.1),
        transparent
    );
    transition: left 0.8s cubic-bezier(0.11, 0, 0.5, 0);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: rgba(218, 255, 115, 0.8);
    background: rgba(218, 255, 115, 0.1) !important;
    box-shadow: 
        0 0 20px rgba(218, 255, 115, 0.3),
        inset 0 1px 0 rgba(218, 255, 115, 0.2);
    letter-spacing: 0.5px;
}

.btn-secondary:hover::before {
    opacity: 1;
    animation: borderGlow 4s linear infinite;
}

.btn-secondary:hover::after {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.11, 0, 0.5, 0);
}

/* Bouton success avec style Galahad vert */
.btn-success {
    background: rgba(218, 255, 115, 0.02) !important;
    border: 1px solid rgba(218, 255, 115, 0.4);
    box-shadow: 
        0 0 10px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
    color: rgba(218, 255, 115, 0.9);
    padding: 1.6rem 3.2rem;
    border-radius: var(--btn-radius);
    font-family: var(--font-medium-extend);
    font-weight: 500;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    border: none;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(218, 255, 115, 0.3),
        rgba(218, 255, 115, 0.1),
        rgba(218, 255, 115, 0.3),
        rgba(218, 255, 115, 0.1)
    );
    background-size: 400% 400%;
    opacity: 0;
    z-index: -2;
    border-radius: var(--btn-radius);
}

.btn-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(218, 255, 115, 0.1),
        transparent
    );
    transition: left 0.8s cubic-bezier(0.11, 0, 0.5, 0);
    z-index: -1;
}

.btn-success:hover {
    color: white;
    border-color: rgba(218, 255, 115, 0.8);
    background: rgba(218, 255, 115, 0.1) !important;
    box-shadow: 
        0 0 20px rgba(218, 255, 115, 0.3),
        inset 0 1px 0 rgba(218, 255, 115, 0.2);
    letter-spacing: 0.5px;
}

.btn-success:hover::before {
    opacity: 1;
    animation: borderGlow 4s linear infinite;
}

.btn-success:hover::after {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.11, 0, 0.5, 0);
}

.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success:disabled:hover {
    color: rgba(218, 255, 115, 0.9);
    border-color: rgba(218, 255, 115, 0.4);
    background: rgba(218, 255, 115, 0.02) !important;
    letter-spacing: normal;
}

/* Animation pour les bordures */
@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation entre étapes */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-navigation .btn-secondary,
.step-navigation .btn-primary,
.step-navigation .btn-success {
    min-width: 140px;
    padding: 1.6rem 3.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.step-navigation .btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

.step-navigation .btn-secondary:disabled:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    transform: none;
    letter-spacing: normal;
}

.step-navigation .btn-secondary:disabled::before,
.step-navigation .btn-secondary:disabled::after {
    display: none;
}

.step-navigation svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Actions d'étapes individuelles */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-actions .btn-secondary,
.step-actions .btn-primary {
    min-width: 140px;
    padding: 1.6rem 3.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Centrer le bouton quand il n'y a qu'un seul bouton */
.step-actions:has(button:only-child) {
    justify-content: center;
}

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages d'erreur */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #dc3545;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #28a745;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Options de personnalisation des templates - Style moderne */
.template-options {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.template-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(218, 255, 115, 0.3) 20%,
        rgba(218, 255, 115, 0.1) 50%,
        rgba(218, 255, 115, 0.3) 80%,
        transparent 100%);
}

.template-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.template-option-section {
    position: relative;
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.option-icon {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.1) 0%, 
        rgba(218, 255, 115, 0.05) 100%);
    border: 1px solid rgba(218, 255, 115, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: rgba(218, 255, 115, 0.8);
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-subtitle);
}

.option-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.option-hint {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Toggle moderne inspiré du menu latéral */
.modern-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.modern-toggle input {
    display: none;
}

.toggle-track {
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modern-toggle input:checked + .toggle-track {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.8) 0%, 
        rgba(218, 255, 115, 0.6) 100%);
    border-color: rgba(218, 255, 115, 0.6);
    box-shadow: 0 0 15px rgba(218, 255, 115, 0.2);
}

.modern-toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
    background: var(--color-white);
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Sélecteur de style - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .style-selector {
    display: flex;
    gap: 1rem;
    opacity: 1;
    transition: var(--transition-smooth);
}

body.bulk-generator .style-selector.disabled {
    opacity: 0.4;
    pointer-events: none;
}

body.bulk-generator .style-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 80px;
    color: rgba(255, 255, 255, 0.7);
}

body.bulk-generator .style-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

body.bulk-generator .style-btn.active {
    border-color: rgba(218, 255, 115, 0.6);
    background: rgba(218, 255, 115, 0.1);
    color: rgba(218, 255, 115, 0.9);
}

body.bulk-generator .style-btn img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    filter: brightness(1) invert(1); /* Garder l'icône blanche */
}

body.bulk-generator .style-btn.active img {
    opacity: 1;
    filter: brightness(1) invert(1); /* Garder l'icône blanche même quand active */
}

body.bulk-generator .emoji-icon {
    font-size: 1.8rem; /* Agrandir l'emoji pour équilibrer avec l'icône */
}

body.bulk-generator .style-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sélecteur de couleurs - BULK GENERATOR */
body.bulk-generator .color-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

body.bulk-generator .color-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Couleurs spécifiques pour chaque bouton */
body.bulk-generator .color-btn[data-color-name="black"] {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
    border-color: rgba(0, 0, 0, 0.4);
}

body.bulk-generator .color-btn[data-color-name="blue"] {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3), rgba(30, 58, 95, 0.15));
    border-color: rgba(30, 58, 95, 0.5);
}

body.bulk-generator .color-btn[data-color-name="green"] {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.3), rgba(45, 90, 39, 0.15));
    border-color: rgba(45, 90, 39, 0.5);
}

body.bulk-generator .color-btn[data-color-name="purple"] {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(107, 70, 193, 0.15));
    border-color: rgba(107, 70, 193, 0.5);
}

body.bulk-generator .color-btn[data-color-name="red"] {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.3), rgba(185, 28, 28, 0.15));
    border-color: rgba(185, 28, 28, 0.5);
}

body.bulk-generator .color-btn[data-color-name="orange"] {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(255, 140, 0, 0.15));
    border-color: rgba(255, 140, 0, 0.5);
}

/* Hover states */
body.bulk-generator .color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.bulk-generator .color-btn[data-color-name="black"]:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
    border-color: rgba(0, 0, 0, 0.6);
}

body.bulk-generator .color-btn[data-color-name="blue"]:hover {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.25));
    border-color: rgba(30, 58, 95, 0.7);
}

body.bulk-generator .color-btn[data-color-name="green"]:hover {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.5), rgba(45, 90, 39, 0.25));
    border-color: rgba(45, 90, 39, 0.7);
}

body.bulk-generator .color-btn[data-color-name="purple"]:hover {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.5), rgba(107, 70, 193, 0.25));
    border-color: rgba(107, 70, 193, 0.7);
}

body.bulk-generator .color-btn[data-color-name="red"]:hover {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.5), rgba(185, 28, 28, 0.25));
    border-color: rgba(185, 28, 28, 0.7);
}

body.bulk-generator .color-btn[data-color-name="orange"]:hover {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.5), rgba(255, 140, 0, 0.25));
    border-color: rgba(255, 140, 0, 0.7);
}

/* Active state avec bordure Galahad */
body.bulk-generator .color-btn.active {
    border-color: rgba(218, 255, 115, 0.8);
    box-shadow: 0 0 15px rgba(218, 255, 115, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

body.bulk-generator .color-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(218, 255, 115, 0.4);
    border-radius: 8px;
    pointer-events: none;
}

/* Responsive pour options */
@media (max-width: 1024px) {
    .template-options-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .template-options {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .template-options-row {
        gap: 2rem;
    }
    
    .option-header {
        gap: 1rem;
    }
    
    .style-selector {
        gap: 0.5rem;
    }
    
    .style-btn {
        min-width: 60px;
        padding: 1rem;
    }
    
    body.bulk-generator .color-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.bulk-generator .color-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Templates - Copié exactement du générateur single */
.template-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.template-category {
    margin-bottom: 2rem;
}

.category-templates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Templates - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .template-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.bulk-generator .template-item:hover {
    border-color: var(--color-purple);
    transform: translateY(-2px);
}

body.bulk-generator .template-item.selected {
    border-color: var(--btn-yellow);
    background: rgba(242, 255, 115, 0.1);
}

body.bulk-generator .template-item .template-preview {
    background: var(--color-white);
    color: var(--color-black);
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contenu du template preview s'adapte naturellement - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .template-item .template-preview > * {
    max-width: 100%;
    overflow: hidden;
}

/* Ajustements pour éviter les débordements - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .template-item .template-preview table {
    width: 100% !important;
    table-layout: fixed;
}

body.bulk-generator .template-item .template-preview div[style*="max-width"] {
    max-width: 100% !important;
}

/* Taille de police normale pour les previews - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .template-item .template-preview * {
    line-height: 1.3 !important;
}

body.bulk-generator .template-item .template-preview img {
    max-width: 80px !important;
    max-height: 80px !important;
}

/* Responsive pour templates - BULK GENERATOR UNIQUEMENT */
@media (min-width: 1600px) {
    body.bulk-generator .category-templates {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 1200px) {
    body.bulk-generator .category-templates {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body.bulk-generator .category-templates {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    body.bulk-generator .template-item .template-preview {
        min-height: 120px;
        font-size: 1rem;
        padding: 1rem;
    }
    
    body.bulk-generator .template-item .template-preview * {
        font-size: 0.9em !important;
    }
    
    body.bulk-generator .template-item .template-preview img {
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    body.bulk-generator .template-item {
        padding: 1.2rem;
    }
}

/* Style options */
.style-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.style-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
}

.style-section h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.color-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.color-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.typography-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.typography-controls .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.typography-controls label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.typography-controls select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--color-white);
    font-size: 0.9rem;
}

.typography-controls select option {
    background: #1a1a1a;
    color: var(--color-white);
}

/* Styles pour tous les selects dans la section Style - BULK GENERATOR */
body.bulk-generator .style-step select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--color-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.bulk-generator .style-step select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

body.bulk-generator .style-step select:focus {
    outline: none;
    border-color: rgba(218, 255, 115, 0.5);
    box-shadow: 0 0 0 3px rgba(218, 255, 115, 0.1);
}

body.bulk-generator .style-step select option {
    background: #1a1a1a;
    color: var(--color-white);
    padding: 0.5rem;
}

/* Labels dans la section Style */
body.bulk-generator .style-step label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form groups */
body.bulk-generator .style-step .form-group {
    margin-bottom: 1.5rem;
}

body.bulk-generator .style-step .form-group label {
    margin-bottom: 0.5rem;
}

/* Typography controls spécifiques */
body.bulk-generator .typography-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.bulk-generator .typography-control select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--color-white);
    font-size: 0.95rem;
}

body.bulk-generator .typography-control label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
}

body.bulk-generator .typography-icon {
    font-size: 1.5rem;
    text-align: center;
}

/* Layout 3 colonnes pour l'étape Style - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .step-content.style-step {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.bulk-generator .style-layout-container {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
    gap: 2rem !important;
    height: calc(100vh - 100px) !important;
    padding: 2rem !important;
}

body.bulk-generator .style-left-column {
    /* Colonne vide pour l'équilibre */
    min-height: 1px;
}

body.bulk-generator .style-center-column {
    overflow-y: auto !important;
    padding-right: 1rem !important;
}

body.bulk-generator .style-center-column h2 {
    text-align: center !important;
    margin-bottom: 2rem !important;
    color: var(--color-white) !important;
}

body.bulk-generator .style-right-column {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    position: sticky !important;
    top: 2rem !important;
    height: fit-content !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}

body.bulk-generator .style-right-column .preview-header h3 {
    color: var(--color-white) !important;
    font-size: 1.2rem !important;
    margin: 0 0 1rem 0 !important;
}

body.bulk-generator .style-right-column .preview-controls select {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 0.75rem !important;
    color: var(--color-white) !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

body.bulk-generator .style-right-column .preview-controls select option {
    background: #1a1a1a !important;
    color: var(--color-white) !important;
}

body.bulk-generator .style-right-column .signature-preview-container {
    background: var(--color-white) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    min-height: 300px !important;
}

body.bulk-generator .style-right-column .signature-preview {
    background: transparent !important;
    color: var(--color-black) !important;
    min-height: 200px !important;
}

/* Responsive pour layout 3 colonnes */
@media (max-width: 1200px) {
    body.bulk-generator .style-layout-container {
        grid-template-columns: 0.5fr 2fr 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 900px) {
    body.bulk-generator .style-layout-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    body.bulk-generator .style-right-column {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
    }
}

body.bulk-generator .generator-content-wrapper.style-mode .preview-section.style-preview .signature-preview-container {
    min-height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
}

body.bulk-generator .generator-content-wrapper.style-mode .preview-section.style-preview .preview-header {
    margin-bottom: 1rem;
}

body.bulk-generator .generator-content-wrapper.style-mode .preview-section.style-preview .preview-header h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin: 0;
}

/* Améliorer l'affichage de la signature dans la preview latérale - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .generator-content-wrapper.style-mode .signature-preview {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
    transform: scale(0.9);
    transform-origin: top left;
    width: 111%;
    margin-left: -5.5%;
}

/* Sélecteur de preview pour changer de signature - BULK GENERATOR UNIQUEMENT */
body.bulk-generator .generator-content-wrapper.style-mode .preview-controls {
    margin-bottom: 1rem;
}

body.bulk-generator .generator-content-wrapper.style-mode .preview-controls select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--color-white);
    font-size: 0.9rem;
}

body.bulk-generator .generator-content-wrapper.style-mode .preview-controls select option {
    background: #1a1a1a;
    color: var(--color-white);
}

/* ========================================
   ÉTAPE DOWNLOAD - RECONSTRUCTION COMPLÈTE
   ======================================== */

/* Header de l'étape Download */
body.bulk-generator .download-header {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

body.bulk-generator .success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(218, 255, 115, 0.2), rgba(218, 255, 115, 0.05));
    border: 2px solid rgba(218, 255, 115, 0.4);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: rgba(218, 255, 115, 0.9);
}

body.bulk-generator .download-header h2 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

body.bulk-generator .download-header .subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
}

body.bulk-generator .download-header .subtitle span {
    color: rgba(218, 255, 115, 0.9);
    font-weight: 600;
}

/* Contenu principal */
body.bulk-generator .download-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Preview */
body.bulk-generator .preview-section-download {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
}

body.bulk-generator .preview-section-download h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    font-weight: 600;
}

body.bulk-generator .preview-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem;
    min-height: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.bulk-generator .preview-box table {
    color: #333;
}

body.bulk-generator .preview-box a {
    color: inherit;
}

/* Actions de téléchargement */
body.bulk-generator .download-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

body.bulk-generator .action-card-download {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.bulk-generator .action-card-download:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

body.bulk-generator .action-card-download.primary-action {
    border-color: rgba(218, 255, 115, 0.3);
    background: rgba(218, 255, 115, 0.02);
}

body.bulk-generator .action-card-download.primary-action:hover {
    border-color: rgba(218, 255, 115, 0.5);
    background: rgba(218, 255, 115, 0.05);
}

body.bulk-generator .card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

body.bulk-generator .action-card-download h4 {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

body.bulk-generator .action-card-download p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.bulk-generator .action-card-download p span {
    color: rgba(218, 255, 115, 0.9);
    font-weight: 600;
}

/* Boutons de téléchargement */
body.bulk-generator .btn-download {
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
}

body.bulk-generator .btn-download.btn-primary {
    background: rgba(218, 255, 115, 0.15);
    color: rgba(218, 255, 115, 0.95);
    border: 1px solid rgba(218, 255, 115, 0.4);
}

body.bulk-generator .btn-download.btn-primary:hover {
    background: rgba(218, 255, 115, 0.25);
    border-color: rgba(218, 255, 115, 0.6);
    transform: translateY(-2px);
}

body.bulk-generator .btn-download.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.bulk-generator .btn-download.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navigation */
body.bulk-generator .download-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.bulk-generator .btn-nav {
    padding: 1.4rem 3rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

body.bulk-generator .btn-nav.btn-primary {
    background: rgba(218, 255, 115, 0.15);
    color: rgba(218, 255, 115, 0.95);
    border: 1px solid rgba(218, 255, 115, 0.4);
}

body.bulk-generator .btn-nav.btn-primary:hover {
    background: rgba(218, 255, 115, 0.25);
    border-color: rgba(218, 255, 115, 0.6);
    transform: translateY(-2px);
}

body.bulk-generator .btn-nav.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.bulk-generator .btn-nav.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    body.bulk-generator .download-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body.bulk-generator .download-header h2 {
        font-size: 2.5rem;
    }
    
    body.bulk-generator .download-navigation {
        flex-direction: column;
    }
    
    body.bulk-generator .btn-nav {
        width: 100%;
        justify-content: center;
    }
}

body.bulk-generator .showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.bulk-generator .showcase-header h3 {
    font-size: 1.8rem;
    color: var(--color-white);
    margin: 0;
}

body.bulk-generator .showcase-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

body.bulk-generator .preview-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    font-size: 0.95rem;
    min-width: 250px;
}

body.bulk-generator .preview-selector option {
    background: #1a1a1a;
    color: var(--color-white);
}

body.bulk-generator .btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

body.bulk-generator .btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Email mockup pour le bulk generator */
body.bulk-generator .email-mockup-result {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

body.bulk-generator .email-header-result {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
}

body.bulk-generator .email-meta-abstract {
    padding: 0.5rem 0;
}

body.bulk-generator .meta-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

body.bulk-generator .meta-label {
    width: 40px;
    height: 10px;
    background: #c8d0d8;
    border-radius: 5px;
    flex-shrink: 0;
}

body.bulk-generator .meta-value {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
}

body.bulk-generator .meta-value.short {
    width: 100px;
}

body.bulk-generator .meta-value.medium {
    width: 150px;
}

body.bulk-generator .meta-value.long {
    width: 200px;
}

body.bulk-generator .email-body-result {
    background: var(--color-white);
    padding: 2rem;
}

body.bulk-generator .email-content-abstract {
    margin-bottom: 2rem;
}

body.bulk-generator .content-line {
    height: 12px;
    background: #dee2e6;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

body.bulk-generator .content-line.extra-short {
    width: 60px;
}

body.bulk-generator .content-line.short {
    width: 120px;
}

body.bulk-generator .content-line.medium {
    width: 180px;
}

body.bulk-generator .content-line.long {
    width: 250px;
}

body.bulk-generator .signature-result {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
    min-height: 200px;
}

body.bulk-generator .signature-result .preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #999;
    text-align: center;
}

body.bulk-generator .signature-result .preview-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

body.bulk-generator .signature-result .preview-placeholder p {
    margin: 0;
    font-size: 1rem;
    color: #999;
}

/* Actions de téléchargement */
body.bulk-generator .result-actions {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

body.bulk-generator .actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

body.bulk-generator .action-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

body.bulk-generator .action-card:hover {
    background: rgba(138, 43, 226, 0.08);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-4px);
}

body.bulk-generator .action-card.highlight {
    border-color: rgba(218, 255, 115, 0.4);
    background: rgba(218, 255, 115, 0.02);
}

body.bulk-generator .action-card.highlight:hover {
    background: rgba(218, 255, 115, 0.05);
    border-color: rgba(218, 255, 115, 0.6);
}

body.bulk-generator .action-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

body.bulk-generator .action-card h4 {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

body.bulk-generator .action-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

body.bulk-generator .main-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bouton Continue to Styling en surimpression - BULK GENERATOR */
body.bulk-generator .continue-to-styling-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, rgba(218, 255, 115, 0.95), rgba(218, 255, 115, 0.85));
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 20px rgba(218, 255, 115, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    animation: slideInUp 0.3s ease;
}

body.bulk-generator .continue-to-styling-btn:hover {
    background: linear-gradient(135deg, rgba(218, 255, 115, 1), rgba(218, 255, 115, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(218, 255, 115, 0.6);
}

body.bulk-generator .continue-to-styling-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton Generate Signatures - BULK GENERATOR */
body.bulk-generator .generate-action {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.bulk-generator .btn-generate {
    width: 100%;
    padding: 1.8rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(218, 255, 115, 0.2), rgba(218, 255, 115, 0.1));
    border: 2px solid rgba(218, 255, 115, 0.5);
    color: rgba(218, 255, 115, 0.95);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(218, 255, 115, 0.2);
}

body.bulk-generator .btn-generate:hover {
    background: linear-gradient(135deg, rgba(218, 255, 115, 0.3), rgba(218, 255, 115, 0.15));
    border-color: rgba(218, 255, 115, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(218, 255, 115, 0.3);
}

body.bulk-generator .btn-generate svg {
    width: 20px;
    height: 20px;
}

/* Responsive pour la disposition Style - BULK GENERATOR UNIQUEMENT */
@media (max-width: 1200px) {
    body.bulk-generator .generator-content-wrapper.style-mode {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    body.bulk-generator .generator-content-wrapper.style-mode {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    body.bulk-generator .generator-content-wrapper.style-mode .preview-section.style-preview {
        position: relative;
        top: auto;
        max-height: none;
    }
}
