/* ==========================================================================
   Contact Bubble - Bulle flottante avec popup de contact rapide
   ========================================================================== */

/* Bulle flottante */
.projective-contact-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E9C46A 0%, #D4AF37 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.projective-contact-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.projective-contact-bubble svg {
    width: 28px;
    height: 28px;
    fill: #006D77;
}

/* Popup overlay */
.projective-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.projective-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.projective-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 0;
    /* Sharp 90° */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.projective-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Popup header */
.projective-popup-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Reset tout pseudo-element potentiel */
.projective-popup-header::before,
.projective-popup-header::after,
.projective-popup-header h3::before,
.projective-popup-header h3::after {
    display: none !important;
    content: none !important;
}

.projective-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.projective-popup-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border: 1px solid #e0e0e0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    padding: 0 !important;
    box-shadow: none !important;
}

.projective-popup-close:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
}

.projective-popup-close svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    stroke: #333 !important;
    display: block !important;
}

/* Popup form */
.projective-popup-form {
    padding: 20px;
}

.projective-popup-field {
    margin-bottom: 16px;
}

.projective-popup-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.projective-popup-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    /* Sharp 90° */
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.projective-popup-field input:focus {
    outline: none;
    border-color: #006D77;
    box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.1);
}

.projective-popup-submit {
    width: 100%;
    padding: 14px;
    background: #E9C46A;
    color: #1a1a2e;
    border: none;
    border-radius: 0;
    /* Sharp 90° */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projective-popup-submit:hover {
    background: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Mobile */
@media (max-width: 480px) {
    .projective-contact-bubble {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .projective-popup {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 90px;
    }
}