/* ============================================================================
   STYLES EMBELLIES POUR LA SECTION PAPS - SERVICE DE BASE
   paps-services.css - Version Premium
   ============================================================================ */

/* Header moderne avec gradient */
.services-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.services-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.services-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.services-header-content {
    flex: 1;
    color: white;
}

.services-title-modern {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.services-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

/* Info box moderne */
.paps-info-box-modern {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
}

.info-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    line-height: 1.6;
    color: #0d47a1;
}

.info-content strong {
    color: #1565c0;
    font-size: 1.05em;
}

/* Form moderne */
.services-form-modern {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards modernes */
.services-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.services-card-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.services-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 3px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.services-section-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.water-gradient {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
}

.electric-gradient {
    background: linear-gradient(135deg, #ffd54f 0%, #f57c00 100%);
}

.sanitary-gradient {
    background: linear-gradient(135deg, #81c784 0%, #388e3c 100%);
}

.distance-gradient {
    background: linear-gradient(135deg, #e57373 0%, #d32f2f 100%);
}

.notes-gradient {
    background: linear-gradient(135deg, #ba68c8 0%, #7b1fa2 100%);
}

.card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.card-subtitle {
    font-size: 0.95em;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.services-card-body {
    padding: 30px;
}

/* Labels modernes */
.label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.label-icon {
    font-size: 1.2em;
}

.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1em;
}

/* Checkbox grid moderne */
.services-checkbox-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.sanitaires-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.services-checkbox-card {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.services-checkbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.services-checkbox-card:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.services-checkbox-card:hover::before {
    transform: scaleY(1);
}

.services-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.services-checkbox-card label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #333;
    font-size: 1em;
}

.checkbox-icon {
    font-size: 1.8em;
    transition: transform 0.3s ease;
}

.checkbox-text {
    flex: 1;
}

.services-checkbox-card input[type="checkbox"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.services-checkbox-card input[type="checkbox"]:checked + label .checkbox-icon {
    transform: scale(1.2) rotate(5deg);
}

.services-checkbox-card input[type="checkbox"]:checked ~ * {
    border-color: #667eea;
}

.services-checkbox-card.autre-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.autre-input-modern {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: #ffffff;
}

.autre-input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Radio buttons modernes */
.services-radio-group-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.services-radio-card {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.services-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.services-radio-card label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    font-size: 1.05em;
}

.radio-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.services-radio-card:hover label {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.services-radio-card input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.services-radio-card input[type="radio"]:checked + label .radio-icon {
    transform: scale(1.2);
}

/* Container source électricité */
.source-elec-container {
    margin-top: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.source-elec-container.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select moderne */
.select-wrapper-modern {
    position: relative;
}

.select-wrapper-modern select {
    width: 100%;
    padding: 15px 20px;
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    font-weight: 500;
}

.select-wrapper-modern::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #667eea;
    font-size: 0.8em;
}

.select-wrapper-modern select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Distance grid moderne */
.distance-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.distance-input-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.distance-input-group:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.input-with-unit input {
    flex: 1;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #ffffff;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-unit {
    position: absolute;
    right: 20px;
    font-weight: 700;
    color: #667eea;
    font-size: 1em;
    pointer-events: none;
}

/* Textarea moderne */
.textarea-modern {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: #ffffff;
    line-height: 1.6;
}

.textarea-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.textarea-modern::placeholder {
    color: #999;
}

/* Boutons d'action modernes */
.action-buttons-modern {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #e0e0e0;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.3em;
}

.btn-reset {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #555;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #9e9e9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-save:hover {
    background: linear-gradient(135deg, #218838 0%, #17a085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-save:active {
    transform: translateY(0);
}

/* Message de succès moderne */
.success-message-modern {
    display: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 25px;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.success-message-modern.show {
    display: flex;
    animation: successSlide 0.4s ease;
}

@keyframes successSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.success-content {
    flex: 1;
}

.success-content strong {
    display: block;
    color: #155724;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.success-content p {
    margin: 0;
    color: #0a3d14;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .services-header-modern {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .services-title-modern {
        font-size: 1.6em;
    }
    
    .services-checkbox-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .services-radio-group-modern {
        flex-direction: column;
    }
    
    .distance-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-modern {
        flex-direction: column;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Animations supplémentaires */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.services-checkbox-card input[type="checkbox"]:checked + label .checkbox-icon {
    animation: pulse 0.6s ease;
}