/* ===== BOUTON FLOTTANT ===== */
.floating-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert-nature), #1B5E20);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 30px rgba(46, 125, 50, 0.6);
}

.floating-btn .pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #C62828;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.floating-btn .btn-label {
    position: absolute;
    right: 75px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .btn-label {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MODAL PRINCIPAL ===== */
.floating-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.3s ease;
}

.floating-modal-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.floating-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-modal-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--vert-nature), #1B5E20);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.floating-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0.3rem;
}

.floating-modal-close:hover {
    transform: rotate(90deg);
}

.floating-modal-body {
    padding: 1.5rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 2px solid var(--gris-clair);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    color: var(--noir);
}

.service-btn:hover {
    border-color: var(--vert-nature);
    background: var(--vert-tres-clair);
    transform: translateX(5px);
}

.service-btn .service-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--vert-tres-clair);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--vert-nature);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-btn:hover .service-icon {
    background: var(--vert-nature);
    color: white;
}

.service-btn .service-info {
    flex: 1;
}

.service-btn .service-info .service-name {
    font-weight: 600;
    color: var(--vert-nature);
}

.service-btn .service-info .service-desc {
    font-size: 0.75rem;
    color: var(--gris);
    margin-top: 0.1rem;
}

.service-btn .service-arrow {
    color: var(--gris);
    transition: all 0.3s ease;
}

.service-btn:hover .service-arrow {
    color: var(--vert-nature);
    transform: translateX(3px);
}

/* ===== MODAL FORMULAIRE ===== */
.form-modal .floating-modal {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--noir);
}

.form-group label i {
    color: var(--vert-nature);
    margin-right: 0.3rem;
    width: 1.2rem;
}

.form-group label .required {
    color: #C62828;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gris-clair);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--vert-nature);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid var(--gris-clair);
    border-radius: 10px;
    background: white;
    color: var(--gris);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: var(--gris-clair);
}

.btn-submit {
    flex: 2;
    padding: 0.7rem;
    border: none;
    border-radius: 10px;
    background: var(--vert-nature);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Back button */
.btn-back {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-back:hover {
    transform: translateX(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-btn-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .floating-btn .btn-label {
        display: none;
    }
    
    .floating-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .service-btn {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .floating-btn-container {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .floating-modal-header h3 {
        font-size: 1rem;
    }
    
    .floating-modal-body {
        padding: 1rem;
    }
}