/* impression3d.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.impression3d-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Effet de grille futuriste en arrière-plan */
.impression3d-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(210, 180, 140, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 180, 140, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Header avec effet 3D */
.header-3d {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 30px 0;
}

.header-3d h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #d2b48c, #f4e4c1, #d2b48c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 80px rgba(210, 180, 140, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(210, 180, 140, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(210, 180, 140, 0.8)); }
}

.header-subtitle {
    color: #999;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Indicateur de progression */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    position: relative;
    transition: all 0.3s;
}

.progress-step.active {
    background: linear-gradient(145deg, #d2b48c, #b8976a);
    border-color: #d2b48c;
    color: #1a1a1a;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(210, 180, 140, 0.6);
}

.progress-step.completed {
    background: linear-gradient(145deg, #4a4a4a, #5a5a5a);
    border-color: #d2b48c;
    color: #d2b48c;
}

.progress-line {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: #444;
    z-index: -1;
}

.progress-line.active {
    background: linear-gradient(90deg, #d2b48c, #b8976a);
}

/* Groupes de services avec design card moderne */
.service-group {
    margin-bottom: 40px;
    border: none;
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d2b48c, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.service-group legend {
    color: #d2b48c;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #3a3a3a, #4a4a4a);
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Grille de services améliorée */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 25px;
    background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(210, 180, 140, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #d2b48c;
    background: linear-gradient(145deg, #3d3d3d, #4d4d4d);
    box-shadow: 
        0 15px 40px rgba(210, 180, 140, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card.selected {
    border-color: #d2b48c;
    background: linear-gradient(145deg, #4d4d4d, #5d5d5d);
    transform: scale(1.05);
    box-shadow: 
        0 0 0 3px rgba(210, 180, 140, 0.3),
        0 15px 40px rgba(210, 180, 140, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.5);
}

.service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #d2b48c, #b8976a);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    animation: checkPulse 0.5s ease;
    box-shadow: 0 5px 15px rgba(210, 180, 140, 0.4);
}

@keyframes checkPulse {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Icônes améliorées */
.service-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    background: linear-gradient(45deg, #d2b48c, #f4e4c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 5px 10px rgba(210, 180, 140, 0.3));
    transition: transform 0.4s;
}

.service-card:hover .icon {
    transform: rotateY(360deg) scale(1.1);
    filter: drop-shadow(0 8px 15px rgba(210, 180, 140, 0.5));
}

.service-card span {
    color: #e6e6e6;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.service-card:hover span {
    color: #fff;
}

/* Zone de matériaux style chips moderne */
.material-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.material-item {
    padding: 12px 24px;
    background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
    border: 2px solid #444;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.material-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(210, 180, 140, 0.3), transparent);
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.material-item:hover::before,
.material-item.selected::before {
    width: 100%;
    height: 100%;
}

.material-item:hover,
.material-item.selected {
    border-color: #d2b48c;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(210, 180, 140, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.5);
}

.material-item.selected {
    background: linear-gradient(145deg, #4d4d4d, #5d5d5d);
    color: #d2b48c;
    font-weight: 600;
}

/* Upload zone ultra moderne */
.file-upload-area {
    border: 3px dashed #444;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent, rgba(210, 180, 140, 0.05));
    animation: rotateGradient 10s linear infinite;
}

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

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #d2b48c;
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    transform: scale(1.02);
    box-shadow: 
        inset 0 0 50px rgba(210, 180, 140, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.upload-icon {
    font-size: 4rem;
    background: linear-gradient(45deg, #d2b48c, #f4e4c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.file-label {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(145deg, #d2b48c, #b8976a);
    color: #1a1a1a;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(210, 180, 140, 0.3);
}

.file-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(210, 180, 140, 0.5);
}

/* Sliders personnalisés ultra modernes */
.dimension-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.dimension-item {
    background: linear-gradient(145deg, #2d2d2d, #3d3d3d);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dimension-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #d2b48c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.dimension-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
    outline: none;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.dimension-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d2b48c, #b8976a);
    cursor: pointer;
    box-shadow: 
        0 5px 15px rgba(210, 180, 140, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.dimension-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 0 10px rgba(210, 180, 140, 0.1),
        0 8px 25px rgba(210, 180, 140, 0.5);
}

.dimension-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 15px;
    background: linear-gradient(145deg, #4d4d4d, #5d5d5d);
    border-radius: 20px;
    color: #f4e4c1;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

/* Zone de texte moderne */
textarea {
    width: 100%;
    border: 2px solid #444;
    border-radius: 15px;
    padding: 20px;
    resize: vertical;
    min-height: 120px;
    font-size: 1rem;
    font-family: inherit;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    color: #e6e6e6;
    transition: all 0.3s;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

textarea:focus {
    outline: none;
    border-color: #d2b48c;
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    box-shadow: 
        0 0 0 3px rgba(210, 180, 140, 0.2),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Bouton de soumission épique */
.btn-submit {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(145deg, #d2b48c, #b8976a);
    color: #1a1a1a;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    margin-top: 40px;
    box-shadow: 
        0 10px 30px rgba(210, 180, 140, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.btn-submit:hover::before {
    width: 300%;
    height: 300%;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(210, 180, 140, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(-2px) scale(1.01);
}

/* Animation de chargement */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 26, 26, 0.3);
    border-radius: 50%;
    border-top-color: #1a1a1a;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive design amélioré */
@media (max-width: 768px) {
    .header-3d h1 {
        font-size: 2.5rem;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .dimension-controls {
        grid-template-columns: 1fr;
    }
    
    .material-options {
        justify-content: center;
    }
}

/* Effet de particules flottantes */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
    }
}

.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particle-float 15s infinite linear;
}