/* CSS spécifique au générateur principal */
.generator-main {
    margin-top: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background: var(--color-black);
}

.generator-header {
    text-align: center;
    margin-bottom: 4rem;
}

.generator-header h1 {
    font-family: var(--font-title);
    font-weight: var(--weight-title);
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.generator-header p {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Sidebar moderne */
.generator-sidebar {
    width: 320px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

/* Lignes décoratives filaires */
.generator-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        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%);
}

.generator-sidebar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%);
    transform: translateY(-50%);
}

.sidebar-header {
    margin-bottom: 4rem;
    flex-shrink: 0;
}

.logo-compact {
    margin-bottom: 6rem;
}

.logo-link-compact {
    display: block;
    transition: var(--transition-smooth);
}

.logo-link-compact:hover {
    transform: scale(1.05);
}

.logo-img-compact {
    height: 2.5rem;
    width: auto;
}

.sidebar-title {
    font-family: var(--font-title);
    font-weight: var(--weight-title);
    font-size: 3.2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Sélecteur iOS-style */
.ios-step-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem 0;
    min-height: 0;
}

.step-slider {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
    
    /* Effet de grille filaire subtile */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.step-option {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 4rem;
    border: 1px solid transparent;
    user-select: none;
}

.step-option:last-child {
    margin-bottom: 0;
}

.step-option:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
}

.step-option.active {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.08) 0%, 
        rgba(218, 255, 115, 0.03) 100%);
    border: 1px solid rgba(218, 255, 115, 0.2);
    box-shadow: 
        0 0 20px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
}

.step-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(218, 255, 115, 0.8) 50%,
        transparent 100%);
    transform: translateY(-50%);
    border-radius: 1px;
}

.step-option.completed {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.05) 0%, 
        rgba(218, 255, 115, 0.02) 100%);
    border: 1px solid rgba(218, 255, 115, 0.15);
}

.step-option.completed .step-icon {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.08) 0%, 
        rgba(218, 255, 115, 0.04) 100%);
    border-color: rgba(218, 255, 115, 0.2);
    color: rgba(218, 255, 115, 0.7);
}

.step-option.completed .step-name {
    color: rgba(218, 255, 115, 0.8);
}

.step-option.completed .step-desc {
    color: rgba(218, 255, 115, 0.6);
}

.step-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    
    /* Effet de grille filaire dans l'icône */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 8px 8px;
}

.step-option.active .step-icon {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.1) 0%, 
        rgba(218, 255, 115, 0.05) 100%);
    border-color: rgba(218, 255, 115, 0.3);
    color: rgba(218, 255, 115, 0.9);
    box-shadow: 
        0 0 15px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
    
    /* Grille plus visible pour l'état actif */
    background-image: 
        linear-gradient(rgba(218, 255, 115, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(218, 255, 115, 0.08) 1px, transparent 1px);
    background-size: 8px 8px;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.step-name {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.4rem;
    color: var(--color-white);
}

.step-desc {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.step-option.active .step-name {
    color: rgba(218, 255, 115, 1);
}

.step-option.active .step-desc {
    color: rgba(218, 255, 115, 0.8);
}


/* Contenu principal */
.generator-content-wrapper {
    flex: 1;
    padding: 4rem 3rem;
    overflow-y: auto;
}

.step-description {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Accordéons */
.accordion-section {
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-header.active {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.05) 0%, 
        rgba(218, 255, 115, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
}

.accordion-header.active .accordion-icon {
    border-color: rgba(218, 255, 115, 0.3);
    color: rgba(218, 255, 115, 0.9);
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.1) 0%, 
        rgba(218, 255, 115, 0.05) 100%);
}

.accordion-title span {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.6rem;
    color: var(--color-white);
}

.accordion-status {
    margin-left: auto;
    margin-right: 1rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.accordion-header.active .status-indicator {
    background: rgba(218, 255, 115, 0.8);
    box-shadow: 0 0 10px rgba(218, 255, 115, 0.3);
}

.accordion-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.accordion-header.active .accordion-arrow {
    color: rgba(218, 255, 115, 0.8);
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.accordion-content.active {
    max-height: 1000px;
    opacity: 1;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

/* Navigation des étapes */
.steps-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
    min-width: 120px;
}

.step-item.active {
    border-color: var(--color-purple);
    background: rgba(138, 43, 226, 0.1);
}

.step-item.completed {
    border-color: var(--btn-yellow);
    background: rgba(242, 255, 115, 0.1);
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.step-item.active .step-number {
    background: var(--color-purple);
    color: var(--color-white);
}

.step-item.completed .step-number {
    background: var(--btn-yellow);
    color: var(--color-black);
}

.step-label {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: rgba(255, 255, 255, 0.8);
}

.step-item.active .step-label {
    color: var(--color-white);
}

/* Contenu du générateur - Configuration par défaut */
.generator-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}



/* S'assurer que la navigation est visible */
.step-navigation {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-navigation .btn {
    display: inline-flex !important;
}


/* Générateur simple - Grille spécifique pour l'étape Style */
.generator-main.style-step .generator-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* Masquer l'ancienne preview-section complètement */
.preview-section {
    display: none !important;
}

/* Ajuster la grille quand la preview est masquée */
.generator-main.template-step .generator-content {
    grid-template-columns: 1fr;
}

/* Contrôles de couleurs */
.solid-colors,
.gradient-colors {
    display: none;
    margin-top: 1rem;
}

.solid-colors.active,
.gradient-colors.active {
    display: block;
}

/* Interface minimaliste pour typographie */
.typography-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.typography-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.typography-icon {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 0.3rem;
}

.typography-control input,
.typography-control select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 1.2rem;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.typography-control select:hover,
.typography-control input:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.typography-control select:focus,
.typography-control input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.typography-control select option {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem;
}

.typography-control label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-family: var(--font-body);
}

/* CTA controls compacts */
.cta-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-controls .form-group {
    margin-bottom: 0;
}

.cta-controls input {
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* Prévisualisation signature uniquement */
.signature-only-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.signature-only-preview .signature-preview {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    min-height: 200px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #000000;
    overflow: visible;
    white-space: nowrap;
}

.signature-only-preview .signature-preview * {
    color: inherit !important;
}

/* Actions sous la prévisualisation */
.preview-actions-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.preview-actions-bottom .btn {
    width: 100%;
    justify-content: center;
}

/* Masquer la navigation sur l'étape Style */
.generator-main.style-step .step-navigation {
    display: none;
}

/* Masquer la navigation sur l'étape Style uniquement */
#step-4 .step-navigation {
    display: none;
}


/* Section formulaire */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: start;
    border-radius: 20px;
    padding: 3rem;
}

.step-content {
    display: none;
}

#step-1.active {
    display: block;
}

#step-2.active {
    display: block;
}

#step-3.active {
    display: block;
}

#step-4.active {
    display: block;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-content h2 {
    font-family: var(--font-title);
    font-weight: var(--weight-title);
    font-size: 3.6rem;
    margin-bottom: 3rem;
    color: var(--color-white);
}

.step-content h3 {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem 0;
    color: var(--color-white);
}

/* Formulaires */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

/* Réseaux sociaux */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Styles spécifiques pour les selects */
.form-group select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.6rem;
    padding-right: 4rem;
}

.form-group select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background-color: rgba(30, 30, 30, 0.95);
    color: var(--color-white);
    padding: 1rem;
    border: none;
}

.form-group select option:hover,
.form-group select option:checked {
    background-color: rgba(138, 43, 226, 0.8);
    color: var(--color-white);
}

/* Upload d'images */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.upload-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.upload-group h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
    flex-shrink: 0;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--color-purple);
    background: rgba(138, 43, 226, 0.1);
}

.upload-area.dragover {
    border-color: var(--btn-yellow);
    background: rgba(242, 255, 115, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.upload-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.upload-hint {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    display: block;
}

/* 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-card.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;
}

/* Prévisualisation des images uploadées */
.upload-preview {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
}

.upload-preview img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--color-white);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.upload-preview .remove-image {
    position: absolute;
    top: -8px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(255, 0, 0, 0.8);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.upload-preview .remove-image:hover {
    background: rgba(255, 0, 0, 1);
    transform: translateX(50%) scale(1.1);
}

/* Masquer la zone d'upload quand une image est présente */
.upload-group:has(.upload-preview img) .upload-area {
    display: none;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.upload-group.has-image .upload-area {
    display: none;
}

/* Message de compression */
.compression-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
}

.compression-spinner {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

.compression-message p {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.compression-message small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-family: var(--font-body);
}

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

.upload-placeholder p {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
}

.upload-placeholder small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    line-height: 1.2;
}

.image-preview {
    margin-top: 1.5rem;
    text-align: center;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-preview .remove-image {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 0, 0.2);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 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: 2rem;
    margin-bottom: 2rem;
    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) 50%,
        transparent 100%);
}

.template-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

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

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

.option-icon {
    width: 44px;
    height: 44px;
    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.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    
    /* Effet de grille filaire dans l'icône */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 8px 8px;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.6rem;
    color: var(--color-white);
    margin: 0 0 1.5rem 0;
}

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

/* 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: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    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.3);
    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-text {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    color: var(--color-white);
    font-size: 1.4rem;
}

/* Sélecteurs de style modernes */
.style-selector {
    display: flex;
    gap: 0.8rem;
    opacity: 1;
    transition: all 0.3s ease;
}

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

.style-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: var(--weight-body);
    min-width: 90px;
    justify-content: center;
}

.style-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transform: translateY(-1px);
}

.style-btn.active {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.08) 0%, 
        rgba(218, 255, 115, 0.03) 100%);
    border: 1px solid rgba(218, 255, 115, 0.2);
    color: rgba(218, 255, 115, 0.9);
    box-shadow: 
        0 0 20px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
}

.style-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.7;
}

/* Sélecteur de couleurs pour les templates */
.color-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.color-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: var(--weight-body);
    min-width: 90px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.color-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color, #000000);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.color-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transform: translateY(-2px);
}

.color-btn:hover::before {
    transform: translateX(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.color-btn.active {
    background: linear-gradient(135deg, 
        rgba(218, 255, 115, 0.08) 0%, 
        rgba(218, 255, 115, 0.03) 100%);
    border: 2px solid rgba(218, 255, 115, 0.3);
    color: rgba(218, 255, 115, 0.9);
    box-shadow: 
        0 0 20px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(218, 255, 115, 0.1);
}

.color-btn.active::before {
    border-color: rgba(218, 255, 115, 0.4);
    box-shadow: 0 0 10px rgba(218, 255, 115, 0.2);
}

.color-name {
    font-size: 1.1rem;
    margin-left: 24px;
}

/* Couleurs spécifiques pour chaque bouton */
.color-btn[data-primary-color="#000000"] {
    --color: #000000;
}

.color-btn[data-primary-color="#1e3a5f"] {
    --color: #1e3a5f;
}

.color-btn[data-primary-color="#2d5a27"] {
    --color: #2d5a27;
}

.color-btn[data-primary-color="#6B46C1"] {
    --color: #6B46C1;
}

.color-btn[data-primary-color="#B91C1C"] {
    --color: #B91C1C;
}

.color-btn[data-primary-color="#FF8C00"] {
    --color: #FF8C00;
}

.style-btn.active img {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(60deg);
    opacity: 1;
}

.emoji-icon {
    font-size: 16px;
    line-height: 1;
}

.shape-demo {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shape-demo.circle {
    border-radius: 50%;
}

.shape-demo.rounded {
    border-radius: 4px;
}

.shape-demo img {
    width: 12px;
    height: 12px;
    filter: invert(1);
    opacity: 0.7;
}

.style-btn.active .shape-demo {
    background: rgba(218, 255, 115, 0.2);
}

.style-btn.active .shape-demo img {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(60deg);
    opacity: 1;
}

/* Templates organisés par catégories */
.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

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

.category-title {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
}

.category-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8A2BE2, #f2ff73);
}

.category-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Grands écrans - 4 colonnes pour les templates */
@media (min-width: 1600px) {
    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

@media (min-width: 2560px) {
    .templates-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5rem;
    }
}

.template-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

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

.template-preview {
    background: var(--color-white);
    color: var(--color-black);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    min-height: 120px;
    overflow: hidden;
    position: relative;
    
    /* S'adapter au contenu naturel des signatures */
    display: block;
    width: 100%;
}

/* Contenu du template preview s'adapte naturellement */
.template-preview > * {
    max-width: 100%;
    overflow: hidden;
}

/* Ajustements pour éviter les débordements */
.template-preview table {
    width: 100% !important;
    table-layout: fixed;
}

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

/* Taille de police normale pour les previews */
.template-preview * {
    line-height: 1.3 !important;
}

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


/* Options de style - Ancienne version */
.style-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Nouvelle interface style Canva pour l'étape 4 */
.style-step-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Barre d'outils horizontale style Canva */
.canva-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(20px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.canva-toolbar::-webkit-scrollbar {
    display: none;
}

/* Groupes d'outils */
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Séparateurs */
.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 12px;
    flex-shrink: 0;
}

/* Boutons de la barre d'outils */
.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.toolbar-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
}

/* Sélecteurs de la barre d'outils */
.toolbar-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.toolbar-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

/* Styles spécifiques pour les options des sélecteurs */
.toolbar-select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 8px 12px;
    border: none;
}

.toolbar-select option:hover {
    background: var(--color-primary);
}

.toolbar-select option:checked {
    background: var(--color-primary);
    color: #ffffff;
}

/* Sélecteurs plus petits pour certains contrôles */
.weight-select,
.spacing-select,
.height-select {
    min-width: 90px;
    font-size: 13px;
}

/* Flèche personnalisée pour les sélecteurs */
.toolbar-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

/* Input de taille de police */
.toolbar-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    padding: 6px 8px;
    font-size: 14px;
    width: 50px;
    text-align: center;
    transition: all 0.2s ease;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Masquer les flèches natives des inputs number */
.toolbar-input::-webkit-outer-spin-button,
.toolbar-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.toolbar-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.toolbar-input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.toolbar-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

/* Sélecteur de couleur dans la toolbar */
.color-picker-toolbar {
    display: flex;
    align-items: center;
    position: relative;
}

.toolbar-color-input {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-color-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.color-preview {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #333333;
}

/* Indicateurs de taille */
.size-indicator {
    font-weight: bold;
    font-size: 16px;
}

.toolbar-btn.size-btn .size-indicator {
    font-family: 'Inter', sans-serif;
}

.toolbar-btn.size-btn#smallTextBtn .size-indicator {
    font-size: 12px;
}

.toolbar-btn.size-btn#normalTextBtn .size-indicator {
    font-size: 16px;
}

/* Options avancées */
.advanced-options-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.advanced-section {
    margin-bottom: 20px;
}

.advanced-section:last-child {
    margin-bottom: 0;
}

.advanced-section h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-options-advanced {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.color-picker-advanced {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.color-picker-advanced label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.color-picker-advanced input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker-advanced input[type="color"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* CTA Controls avancés */
.cta-controls-advanced {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-input,
.cta-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.2s ease;
}

.cta-input:hover,
.cta-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-input:focus,
.cta-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

/* Container de preview */
.signature-preview-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.preview-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header-inline h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.signature-preview-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    min-height: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.signature-preview {
    font-family: Arial, sans-serif;
    color: #333333;
    line-height: 1.4;
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
    text-align: center;
}

.style-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Sélecteur de mode couleur */
.color-mode-selector {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.color-mode-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.color-mode-selector label:hover {
    color: var(--color-white);
}

.color-mode-selector input[type="radio"] {
    accent-color: var(--color-purple);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.color-options.gradient-colors {
    display: none;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.color-options.gradient-colors.active {
    display: block;
}

/* Presets de dégradés */
.gradient-presets h4,
.custom-gradient h4 {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.gradient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gradient-preset {
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.gradient-preset:hover {
    transform: translateY(-2px);
}

.gradient-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.gradient-preset:hover .gradient-preview {
    border-color: var(--color-purple);
}

.gradient-preset.selected .gradient-preview {
    border-color: var(--color-purple);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.gradient-preset span {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contrôles de dégradé personnalisé */
.gradient-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

/* Sélecteurs de couleur avec design Galahad */
.color-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.color-picker label {
    color: var(--color-white);
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.color-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    
    /* Effet de grille filaire */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 12px 12px;
}

.color-input-wrapper:hover {
    border-color: rgba(218, 255, 115, 0.3);
    background: rgba(218, 255, 115, 0.05);
    box-shadow: 0 0 15px rgba(218, 255, 115, 0.1);
}

.color-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(218, 255, 115, 0.2) 50%,
        transparent 100%);
}

.color-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-picker input[type="color"]:hover {
    border-color: var(--btn-yellow);
    box-shadow: 0 0 15px rgba(242, 255, 115, 0.3);
    transform: scale(1.05);
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 50%;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.color-hex-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.color-hex-display:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--btn-yellow);
    color: var(--btn-yellow);
}

.font-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cta-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

/* Section prévisualisation */
.preview-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    align-self: start;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Onglets pour mobile */
.preview-tabs {
    display: none;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.preview-tab.active {
    color: var(--color-white);
    border-bottom-color: var(--color-purple);
}

.preview-tab:hover {
    color: var(--color-white);
}

/* Simulation d'email */
.email-mockup {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

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

/* Email abstrait - métadonnées */
.email-meta-abstract {
    padding: 0.5rem 0;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.meta-label {
    width: 50px;
    height: 12px;
    background: #c8d0d8;
    border-radius: 6px;
    flex-shrink: 0;
}

.meta-value {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    animation: shimmer 2s infinite;
}

.meta-value.short {
    width: 120px;
}

.meta-value.medium {
    width: 180px;
}

.meta-value.long {
    width: 250px;
}

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

/* Contenu email abstrait */
.email-content-abstract {
    margin-bottom: 2rem;
}

.content-line {
    height: 14px;
    background: #dee2e6;
    border-radius: 7px;
    margin-bottom: 1rem;
    animation: shimmer 2s infinite;
}

.content-line.extra-short {
    width: 80px;
}

.content-line.short {
    width: 140px;
}

.content-line.medium {
    width: 220px;
}

.content-line.long {
    width: 300px;
}

.content-line:last-child {
    margin-bottom: 0;
}

/* Animation shimmer pour l'effet de skeleton */
@keyframes shimmer {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-header h2 {
    font-family: var(--font-title);
    font-weight: var(--weight-title);
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    margin: 0;
}


.signature-preview {
    background: var(--color-white);
    color: var(--color-black);
    padding: 2rem;
    border-radius: 12px;
    min-height: 200px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

/* Styles pour la preview - laissons les templates gérer leurs couleurs */

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Modal de génération */
.signature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

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

.modal-header h2 {
    color: var(--color-white);
    font-size: 2.4rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    color: var(--color-purple);
    font-size: 1.8rem;
    font-weight: var(--font-weight-semibold);
    margin: 2rem 0 1rem 0;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.signature-result {
    background: var(--color-white);
    color: var(--color-black);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.signature-code {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--color-white);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 2rem;
}

.signature-code:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--btn-yellow);
}

.instructions h4 {
    color: var(--btn-yellow);
    font-size: 1.6rem;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 1rem 0;
}

.instructions ol {
    color: rgba(255, 255, 255, 0.9);
    padding-left: 2rem;
}

.instructions li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Tablette - breakpoint intermédiaire */
@media (max-width: 1024px) {
    .generator-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-section {
        padding: 2.5rem;
    }
    
    /* Responsive pour la barre d'outils Canva */
    .canva-toolbar {
        padding: 10px 12px;
        gap: 0;
    }
    
    .toolbar-group {
        gap: 2px;
    }
    
    .toolbar-divider {
        margin: 0 8px;
    }
    
    .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .toolbar-select {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .weight-select,
    .spacing-select,
    .height-select {
        min-width: 80px;
        font-size: 12px;
    }
    
    .toolbar-input {
        width: 45px;
        padding: 5px 6px;
        font-size: 13px;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .generator-main {
        flex-direction: column;
    }
    
    .generator-sidebar {
        width: 100%;
        margin-bottom: 2rem;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .generator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-section {
        padding: 2rem;
    }
    
    .sidebar-title {
        font-size: 1.8rem;
    }
    
    .step-slider {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .step-option {
        flex: 0 0 auto;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .progress-indicator {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .generator-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    /* Responsive mobile pour la barre d'outils Canva */
    .canva-toolbar {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .toolbar-group {
        gap: 2px;
    }
    
    .toolbar-divider {
        display: none; /* Masquer les séparateurs sur mobile */
    }
    
    .toolbar-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .toolbar-select {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .weight-select,
    .spacing-select,
    .height-select {
        min-width: 70px;
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .toolbar-input {
        width: 40px;
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .signature-preview-container {
        padding: 16px;
    }
    
    .signature-preview-wrapper {
        padding: 16px;
        min-height: 150px;
    }
    
    .advanced-options-panel {
        padding: 16px;
    }
    
    .cta-controls-advanced {
        flex-direction: column;
    }
    
    .cta-input,
    .cta-select {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .step-content h2 {
        font-size: 2.8rem;
    }
    
    /* Onglets mobiles */
    .preview-tabs {
        display: flex;
    }
    
    .generator-main {
        flex-direction: column;
        position: relative;
    }
    
    .preview-section {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .preview-section.active {
        transform: translateX(0);
    }
    
    .form-section {
        transition: transform 0.3s ease;
    }
    
    .form-section.preview-mode {
        transform: translateX(-100%);
    }
    
    .email-mockup {
        padding: 1.5rem;
    }
    
    .step-content h2 {
        font-size: 2rem;
    }
    
    /* Responsive pour l'étape Style */
    .style-options {
        gap: 1.5rem;
    }
    
    .color-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Responsive pour les dégradés */
    .gradient-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gradient-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .color-mode-selector {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Responsive pour template-options */
    .template-options-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .template-option-section {
        margin-bottom: 1rem;
    }
}

/* Pop-in d'avertissement mobile */
.mobile-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mobile-warning-overlay.show {
    display: flex;
}

.mobile-warning-content {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.95) 0%, 
        rgba(138, 43, 226, 0.95) 100%);
    border: 1px solid rgba(218, 255, 115, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(218, 255, 115, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-warning-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.mobile-warning-content h3 {
    font-family: var(--font-title);
    font-weight: var(--weight-title);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: rgba(218, 255, 115, 0.9);
}

.mobile-warning-content p {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-warning-content p:last-of-type {
    margin-bottom: 2rem;
}

.mobile-warning-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-warning-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1.4rem;
    padding: 1.2rem 2rem;
}

/* Affichage conditionnel selon la taille d'écran */
@media (min-width: 1024px) {
    .mobile-warning-overlay {
        display: none !important;
    }
}

/* Styles pour l'étape de téléchargement du bulk generator */
.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.result-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.generation-stats {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card.primary {
    border-color: rgba(138, 43, 226, 0.5);
    background: rgba(138, 43, 226, 0.1);
}

.stat-card.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.stat-card.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.stat-card.info {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.signature-showcase {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.showcase-header h3 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

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

.preview-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: white;
    font-size: 1.4rem;
    min-width: 250px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.email-mockup-result {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.email-meta-abstract {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-label {
    width: 60px;
    height: 12px;
    background: #dee2e6;
    border-radius: 6px;
}

.meta-value {
    height: 12px;
    background: #adb5bd;
    border-radius: 6px;
}

.meta-value.long { width: 300px; }
.meta-value.medium { width: 200px; }
.meta-value.short { width: 120px; }

.email-body-result {
    padding: 2rem;
}

.email-content-abstract {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.content-line {
    height: 14px;
    background: #e9ecef;
    border-radius: 7px;
}

.content-line.short { width: 60%; }
.content-line.long { width: 90%; }
.content-line.medium { width: 75%; }
.content-line.extra-short { width: 40%; }

.signature-result {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.result-actions {
    margin-top: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.action-card.highlight {
    border-color: rgba(218, 255, 115, 0.5);
    background: rgba(218, 255, 115, 0.1);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.action-card h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.main-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-actions .btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

@media (max-width: 1023px) {
    .form-group select {
        background-size: 1.4rem;
        padding-right: 3.5rem;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .showcase-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preview-selector {
        min-width: 200px;
    }
    
    .upload-area {
        min-height: 180px;
        padding: 2rem;
    }
    
    .upload-preview img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .generator-sidebar {
        padding: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .step-option {
        min-width: 180px;
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
    }
    
    .step-name {
        font-size: 1.3rem;
    }
    
    .step-desc {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .step-content h2 {
        font-size: 2.4rem;
    }
    
    .upload-preview img {
        max-width: 80px;
        max-height: 80px;
    }
    
    /* Responsive très petit écran pour l'aperçu abstrait */
    .meta-value.long {
        width: 160px;
    }
    
    .meta-value.medium {
        width: 120px;
    }
    
    .meta-value.short {
        width: 90px;
    }
    
    .content-line.long {
        width: 200px;
    }
    
    .content-line.medium {
        width: 150px;
    }
    
    .content-line.short {
        width: 100px;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* ===== STYLES SPÉCIFIQUES AU GÉNÉRATEUR EN MASSE ===== */

/* Zone d'upload CSV */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    cursor: pointer;
    margin: 2rem 0;
}

.upload-zone:hover {
    border-color: var(--color-purple);
    background: rgba(138, 43, 226, 0.05);
}

.upload-zone.dragover {
    border-color: var(--btn-yellow);
    background: rgba(218, 255, 115, 0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.upload-zone h3 {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-info span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Upload réussi */
.upload-success {
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1rem 0;
}

.file-stats span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Actions CSV */
.csv-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

/* Exigences CSV */
.csv-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.csv-requirements h4 {
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

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

.requirement-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.requirement-item.required {
    border-left-color: #ff6b6b;
}

.requirement-item.optional {
    border-left-color: #51cf66;
}

.req-label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.req-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Validation des données */
.validation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
}

.stat-card.valid {
    border-color: #51cf66;
}

.stat-card.invalid {
    border-color: #ff6b6b;
}

.stat-card.total {
    border-color: #339af0;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

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

/* Barre de progression */
.progress-section {
    margin: 3rem 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--btn-yellow));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--color-white);
    font-size: 1.4rem;
}

/* Responsive pour generator */
@media (max-width: 768px) {
    .validation-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .csv-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
}

/* ===== SÉLECTION DE TEMPLATE BULK ===== */

.employee-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.employee-card h4 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.employee-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.live-preview-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.signature-preview-wrapper {
    overflow: visible;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 1rem;
    max-width: 100%;
}

/* Styles pour la prévisualisation dans la colonne droite */
.preview-title {
    color: var(--color-white);
    font-family: var(--font-subtitle);
    font-weight: var(--weight-subtitle);
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
}

.preview-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1.4rem;
    margin: 0 0 2rem 0;
}

.bulk-preview-content .first-employee-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bulk-preview-content .first-employee-info h4 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.bulk-preview-content .first-employee-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.bulk-preview-content .template-live-preview {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 2rem;
    min-height: 250px;
    border: 2px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

.bulk-preview-content .template-live-preview * {
    color: #000000 !important;
    background-color: transparent !important;
}

.bulk-preview-content .template-live-preview table {
    background: #ffffff !important;
    color: #000000 !important;
}

.bulk-preview-content .template-live-preview td,
.bulk-preview-content .template-live-preview th,
.bulk-preview-content .template-live-preview p,
.bulk-preview-content .template-live-preview div,
.bulk-preview-content .template-live-preview span {
    color: #000000 !important;
    background-color: transparent !important;
}

.bulk-preview-content .preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-style: italic;
}

/* Templates grid pour bulk */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Spécifique au bulk generator */
#bulkTemplatesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

/* Responsive pour le bulk generator */
@media (max-width: 1200px) {
    #bulkTemplatesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #bulkTemplatesGrid {
        grid-template-columns: 1fr;
    }
}


/* Bulk generator - Templates identiques au générateur simple */
.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.template-card:hover {
    border-color: var(--color-purple);
    transform: translateY(-2px);
}

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

.template-card .template-preview {
    background: var(--color-white);
    color: var(--color-black);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0;
    min-height: 180px;
    overflow: visible;
    position: relative;
    
    /* S'adapter au contenu naturel des signatures */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Contenu du template preview s'adapte naturellement */
.template-card .template-preview > * {
    max-width: none;
    overflow: visible;
    transform: scale(0.8);
    transform-origin: center center;
}

/* Ajustements pour éviter les débordements */
.template-card .template-preview table {
    width: auto !important;
    table-layout: auto;
}

.template-card .template-preview div[style*="max-width"] {
    max-width: none !important;
}

.template-card .template-info {
    display: none;
}

.template-card.selected::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(138, 43, 226, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.4),
        inset 0 0 5px rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.6);
}

.template-preview {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 120px;
    overflow: hidden;
    position: relative;
}

.template-sample {
    transform: scale(0.6);
    transform-origin: top left;
    width: 166%;
    pointer-events: none;
}

.template-info h4 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-subtitle);
}

.template-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin: 0;
}

/* Styles pour les options de couleur dans le bulk generator */
.color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.color-input-wrapper input[type="color"] {
    width: 80px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    background: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-input-wrapper input[type="color"]:hover {
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 4px;
    border-radius: 8px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Supprimer la preview séparée */
.color-preview {
    display: none;
}

.color-mode-selector {
    margin-bottom: 2rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.radio-option:hover {
    color: var(--color-white);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-smooth);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--color-purple);
    background: rgba(138, 43, 226, 0.2);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-purple);
    border-radius: 50%;
}

.color-options {
    margin-top: 2rem;
}

.gradient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Styles pour la prévisualisation du logo */
.logo-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-preview.empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    font-style: italic;
}

.logo-preview.has-logo {
    border-color: rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.1);
}

/* ===== SECTION GÉNÉRATION BULK ===== */

.generation-status {
    text-align: center;
    margin: 3rem 0;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.status-card h3 {
    color: var(--color-white);
    font-size: 2.4rem;
    font-family: var(--font-subtitle);
    margin-bottom: 1rem;
}

.status-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.generation-actions {
    margin-top: 2rem;
}

.progress-section {
    margin: 3rem 0;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    margin-top: 1rem;
}

/* Section des résultats */
.results-section {
    margin-top: 3rem;
}

.results-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.results-card h3 {
    color: var(--color-white);
    font-size: 2.4rem;
    font-family: var(--font-subtitle);
    margin-bottom: 1.5rem;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

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

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.results-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
}

.download-info {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.download-info h4 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.download-info ul {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.download-info li {
    margin-bottom: 0.5rem;
}

/* Responsive pour sélection template */
@media (min-width: 1400px) {
    .templates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .template-preview {
        min-height: 100px;
        font-size: 1.1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .template-preview {
        min-height: 90px;
        font-size: 1rem;
        padding: 1rem;
    }
    
    .template-preview * {
        font-size: 0.9em !important;
    }
    
    .template-preview img {
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .template-card {
        padding: 1.2rem;
    }
    
    .bulk-preview-content .first-employee-info {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .bulk-preview-content .template-live-preview {
        padding: 1.2rem;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .bulk-preview-content .preview-placeholder {
        height: 150px;
        font-size: 1.3rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gradient-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Responsive pour la phase Style (step 4) */
    .canva-toolbar {
        flex-wrap: wrap;
        padding: 8px;
        gap: 8px;
    }
    
    .toolbar-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .toolbar-divider {
        display: none;
    }
    
    .toolbar-select {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .color-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gradient-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .font-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .color-input-wrapper {
        padding: 1rem;
    }
    
    .color-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .color-picker input[type="color"] {
        width: 50px;
        height: 50px;
    }
    
    .style-group {
        padding: 1.5rem;
    }
    
    .advanced-options-panel {
        padding: 15px;
    }
    
    .color-options-advanced {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    /* Phase Style - Mobile très petit */
    .canva-toolbar {
        padding: 6px;
        gap: 6px;
    }
    
    .toolbar-select {
        min-width: 80px;
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .toolbar-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .toolbar-input {
        width: 40px;
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .color-picker input[type="color"] {
        width: 40px;
        height: 40px;
    }
    
    .color-hex-display {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }
    
    .style-group {
        padding: 1rem;
    }
    
    .gradient-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gradient-preview {
        height: 50px;
    }
    
    .color-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    /* Responsive pour section génération */
    .generator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .status-card {
        padding: 2rem 1.5rem;
        max-width: none;
    }
    
    .status-card h3 {
        font-size: 2rem;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-actions {
        max-width: none;
    }
    
    .results-actions .btn {
        font-size: 1.4rem;
        padding: 1.2rem 1.5rem;
    }
    
    .download-info {
        padding: 1.5rem;
    }
    
    .download-info ul {
        max-width: none;
    }
    
    /* Sidebar mobile */
    .generator-sidebar {
        width: 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .ios-step-selector {
        padding: 1rem 0;
    }
    
    .step-slider {
        padding: 0.5rem;
    }
    
    .step-option {
        padding: 1.5rem 0.8rem;
        margin-bottom: 2rem;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
    }
    
    .generator-content-wrapper {
        padding: 2rem 1.5rem;
    }
}
