/* ===== PAGE PRODUCTION - STYLES SPÉCIALISÉS ===== */

/* Hero Section */
.production-hero {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.production-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Production Wizard */
.production-wizard {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
    color: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #D2691E;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D2691E, #CD853F);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 20%;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.step-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #D2691E;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.place-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.place-card.selected {
    border-color: #D2691E;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

.place-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.place-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.place-info {
    padding: 1.5rem;
}

.place-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.place-location {
    color: #D2691E;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.place-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Ancestors Section */
.ancestors-section {
    margin-bottom: 2rem;
}

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

.ancestor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.ancestor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ancestor-card.selected {
    border-color: #D2691E;
    background: #fff8f0;
}

.ancestor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ancestor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D2691E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.ancestor-info h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.ancestor-dates {
    color: #6c757d;
    font-size: 0.9rem;
}

.ancestor-photo {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ancestor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    color: #6c757d;
    text-align: center;
}

.btn-add-ancestor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed rgba(255,255,255,0.3);
}

.btn-add-ancestor:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.3);
}

.btn-icon {
    font-size: 1.5rem;
}

/* Selected Ancestors */
.selected-ancestors {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.selected-ancestors h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.selected-ancestor {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #D2691E;
}

.selected-ancestor-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.selected-ancestor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-ancestor {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Styles Grid */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.style-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.style-card.selected {
    border-color: #D2691E;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

.style-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.style-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 2rem;
}

.style-info {
    padding: 1.5rem;
}

.style-info h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.style-info p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.style-features {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature {
    color: #28a745;
    font-size: 0.9rem;
}

/* Style Preview Section */
.style-preview-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transformation-preview {
    margin-top: 1rem;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.before, .after {
    text-align: center;
}

.before h4, .after h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.preview-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

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

.arrow {
    font-size: 2rem;
    color: #D2691E;
    font-weight: bold;
}

.loading-spinner {
    color: #6c757d;
    text-align: center;
}

/* Formats Grid */
.formats-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.format-category h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.format-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.format-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.format-card.selected {
    border-color: #D2691E;
    background: #fff8f0;
}

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

.format-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.format-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.format-price {
    background: #D2691E;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

/* Services Section */
.services-section {
    margin-bottom: 2rem;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card.selected {
    border-color: #D2691E;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

.basic-option.selected {
    background: #fff8f0;
}

.premium-option.selected {
    background: linear-gradient(135deg, #fff8f0, #f0f8ff);
}

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

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-price {
    background: #D2691E;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.on-site-services {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.on-site-services h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

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

.available-service {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.available-service:hover {
    border-color: #D2691E;
    background: #fff8f0;
}

.available-service.selected {
    border-color: #D2691E;
    background: #fff8f0;
}

.service-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.service-price-item {
    color: #D2691E;
    font-weight: 600;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-secondary, .btn-primary {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #D2691E, #CD853F);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.btn-primary:disabled {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Production Summary */
.production-summary {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #dee2e6;
}

.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-content h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

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

.summary-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-total {
    text-align: center;
    background: #fff8f0;
    border: 2px solid #D2691E;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-total h3 {
    color: #D2691E;
    font-size: 1.5rem;
    margin: 0;
}

.summary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D2691E;
}

/* Photo Upload */
.photo-upload {
    position: relative;
}

.photo-upload input[type="file"] {
    display: none;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #D2691E;
    background: #fff8f0;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.upload-text span {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-text small {
    color: #6c757d;
}

.photo-preview {
    margin-top: 1rem;
    text-align: center;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Transform Progress */
.transform-progress {
    margin-bottom: 2rem;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    margin-top: 1rem;
}

.before-after-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.before-after-large .preview-image {
    width: 300px;
    height: 300px;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D2691E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-steps {
        gap: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .places-grid,
    .styles-grid,
    .format-options {
        grid-template-columns: 1fr;
    }
    
    .before-after {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .before-after-large {
        grid-template-columns: 1fr;
    }
    
    .before-after-large .preview-image {
        width: 250px;
        height: 250px;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-actions {
        flex-direction: column;
    }
}

