/* Styles pour la fenêtre de formulaire en surimpression */

.form-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: flex-end; /* Aligne le contenu à droite */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-family: 'Inter Tight', sans-serif;
}

.form-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.form-container {
    background-color: #fff;
    width: 100%;
    max-width: 450px; /* Largeur du formulaire comme dans la capture d'écran */
    height: 100%; /* Prend toute la hauteur */
    overflow-y: auto;
    position: relative;
    transform: translateX(100%); /* Déplace le formulaire hors de l'écran à droite */
    opacity: 1;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.form-overlay.visible .form-container {
    transform: translateX(0); /* Ramène le formulaire à sa position normale */
}

.form-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}



#form-logo {
    height: 14px !important;
    display: block !important;
    margin-bottom: 25px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    float: none !important;
    position: relative !important;
    left: 0 !important;
    text-align: left !important;
}

.form-logo .location {
    font-size: 12px;
    color: #666;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

.phone-button img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.close-button {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #E8833B, #D9A45B);
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    color: white;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(232, 131, 59, 0.3);
    transition: all 0.3s ease;
}

.close-button img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    filter: brightness(0) invert(1); /* Convertit l'image en blanc */
}

.form-content {
    padding: 30px;
    background-color: #f8f4ed; /* Fond beige */
    flex-grow: 1;
    overflow-y: auto;
    text-align: left;
    display: block !important;
}

.form-content h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 32px;
    margin: 0 0 15px;
    color: #333;
    line-height: 1.2;
    font-weight: normal;
    text-align: left;
}

.form-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.form-options {
    margin-bottom: 30px;
}

.option-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.options-grid {
    display: flex;
    gap: 10px;
}

.option-item {
    flex: 1;
    border: 1px solid #e5e5e5;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.option-item.active {
    background-color: #0c2530;
    color: white;
    border-color: #0c2530;
}

.option-icon {
    width: 100%;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
}

.option-item.active .option-icon {
    background-color: #0c2530;
}

.option-item.active .option-icon img {
    filter: brightness(0) invert(1); /* Convertit l'image en blanc */
}

.option-icon img {
    width: 40px;
    height: 40px;
}

.option-item p {
    font-size: 12px;
    margin: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.form-group.checkbox-group {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.checkbox-group label {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 0;
font-size: 14px;
background-color: #fff;
height: 40px;
}

.form-group input[type="checkbox"] {
margin-top: 3px;
}

.submit-button {
    grid-column: span 2;
    background: linear-gradient(to right, #E8833B, #D9A45B);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(232, 131, 59, 0.3);
}

.submit-button:hover {
    opacity: 0.95;
    background: linear-gradient(to right, #D9A45B, #E8833B);
    color: white;
}

.form-footer {
    grid-column: span 2;
    margin-top: 20px;
}

.legal-text {
    font-size: 10px;
    color: #999;
    line-height: 1.4;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .form-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .form-content {
        padding: 20px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }
    
    .form-content h2 {
        font-size: 24px;
    }
    
    .options-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.checkbox-group,
    .submit-button,
    .form-footer {
        grid-column: span 1;
    }
    
    /* Correction pour la case à cocher sur mobile */
    .form-group.checkbox-group {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .form-group.checkbox-group input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }
    
    .form-group.checkbox-group label {
        font-size: 10px;
        line-height: 1.3;
        color: #666;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        flex: 1;
        max-width: calc(100% - 24px);
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .phone-button span {
        display: none;
    }
    
    .close-button {
        position: relative;
        right: 0;
    }
}

/* Animation supplémentaire pour les options */
.option-item:hover:not(.active) {
    background-color: #f5f5f5;
}

.option-item:active {
    transform: scale(0.98);
}
