@charset "utf-8";

/* ================================================================
 * FICHIER : __MBR_form_prospect.css
 * EMPLACEMENT : _modules/__MBR_form_prospect/__MBR_form_prospect.css
 * SHORT_DESC : Styles du formulaire prospect (devis borne de recharge).
 * DESCRIPTION : CSS du formulaire de demande de devis, du loader AJAX,
 *               des champs, du bouton submit et du callback de succès.
 *               Extrait de Ville_2026_04_11_15H01.css pour réutilisabilité.
 *
 * MODIFICATIONS :
 *   - 16/06/2026 13:58 : Création — extraction depuis Ville_2026_04_11_15H01.css
 *
 * ================================================================ */


/* Form Section Container -------------------------------------------------- */

section.form_section {
    margin-top: 5em;
    z-index: 2;
    position: relative;
}

.form_wrapper.glass.border-glow {
    background-color: #161b2e24;
    backdrop-filter: blur(6px) !important;
    max-width: 90%;
}

.form_wrapper.glass.border-glow div#ajax_form_container
{
    max-width: 38em;
    margin: auto;
    background: var(--surface_card);
    padding: 2.5em;
    border-radius: 16px;
    border: 1px solid var(--border_subtle);
    box-shadow: var(--box-shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
}

@media (max-width: 900px)
{
    .form_wrapper.glass.border-glow div#ajax_form_container
    {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
}


/* En-têtes de section formulaire ------------------------------------------ */

.form_section_header
{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.75rem;
}

.form_section_header_contact
{
    margin-top: 0.5rem;
}

.form_section_icon
{
    font-size: 1.8rem;
    color: var(--cyan-accent);
    flex-shrink: 0;
}

.form_section_header h4
{
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text_heading);
    margin: 0;
    line-height: 1.3;
}

.form_section_header p
{
    font-size: 0.95rem;
    color: var(--cyan-accent);
    margin: 0.15rem 0 0;
    line-height: 1.3;
}


/* Icônes dans les labels du formulaire ------------------------------------ */

.label_icon {
    font-size: 1rem;
    color: var(--cyan-accent);
    vertical-align: middle;
    margin-right: 0.15rem;
    position: relative;
    top: -1px;
}


/* Champs du formulaire ---------------------------------------------------- */

.hidden_input {
    display: none;
    margin-top: 0.5rem;
}

#company_name_row {
    display: none;
    margin-bottom: 1.5rem;
}

.form_group_margin {
    margin-bottom: 1.5rem;
}


/* Toggle description ------------------------------------------------------ */

.toggle_description {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #06b6d4;
}

.toggle_icon {
    font-size: 1.2rem;
}

.description_area {
    display: none;
    min-height: 100px;
    margin-top: 0.5rem;
}


/* Inputs spéciaux Google Maps --------------------------------------------- */

.bg_no_repeat {
    background-repeat: no-repeat !important;
}


/* Styles Premium pour les champs du formulaire ---------------------------- */

.lead_form input[type="text"],
.lead_form input[type="email"],
.lead_form input[type="tel"],
.lead_form input[type="number"],
.lead_form select,
.lead_form textarea
{
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface_input);
    border: 1px solid var(--border_subtle);
    border-radius: 0.75rem;
    color: var(--text_primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lead_form input:focus,
.lead_form select:focus,
.lead_form textarea:focus
{
    background: var(--surface_card);
    border-color: var(--cyan-accent);
    box-shadow: 0 0 15px var(--cyan-glow), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}


/* Loader AJAX Premium ----------------------------------------------------- */

.ajax_loader_wrapper
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 2rem;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.loader_visual
{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.electric_progress_container
{
    width: 240px;
    height: 4px;
    background: var(--border_subtle);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border_subtle);
}

.electric_progress_bar
{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, transparent, var(--cyan-accent), transparent);
    background-size: 200% 100%;
    animation: progress_electric 2s infinite linear;
    box-shadow: 0 0 10px var(--cyan-accent);
}

.loader_icon_box
{
    width: 80px;
    height: 80px;
    background: rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse_loader_box 2s infinite ease-in-out;
}

.loader_icon_box span
{
    font-size: 2.5rem;
    color: var(--cyan-accent);
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.loader_text
{
    font-family: var(--font-sans);
    color: var(--text_heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loader_subtext
{
    color: var(--text_muted);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
}

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

    100%
    {
        transform: translateX(200%);
    }
}

@keyframes pulse_loader_box
{
    0%,
    100%
    {
        transform: scale(1);
        border-color: rgba(6, 182, 212, 0.2);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }

    50%
    {
        transform: scale(1.05);
        border-color: rgba(6, 182, 212, 0.6);
        box-shadow: 0 0 20px var(--cyan-glow);
    }
}


/* Bouton submit du formulaire --------------------------------------------- */

.submit_btn
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--cyan-accent) 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--cyan-glow);
    position: relative;
    overflow: hidden;
}

.submit_btn::after
{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: cta-shine 4s ease-in-out infinite;
}

.submit_btn:hover
{
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--cyan-glow);
    background: linear-gradient(135deg, var(--mbr-cyan) 0%, var(--cyan-accent) 100%);
}

.submit_btn:active
{
    transform: translateY(1px);
}

.submit_btn:disabled
{
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit_btn_margin
{
    margin-top: 1.5rem;
}


/* Retour AJAX (callback succès/erreur) ------------------------------------ */

.spin_icon
{
    animation: spin 1s linear infinite;
}

.status_loading
{
    opacity: 0.7;
}

.status_error
{
    background: var(--error_color) !important;
    color: #ffffff !important;
}

.success_msg_icon
{
    font-size: 3rem;
    color: var(--cyan-accent);
    margin-bottom: 1rem;
    display: block;
}

.success_msg_title
{
    color: var(--text_heading);
    margin-bottom: 0.5rem;
}

.success_msg_text
{
    color: var(--text_secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}


/* Form Header Flex Section ------------------------------------------------ */

.form_header_flex
{
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
    text-align: left;
}

.form_header_text
{
    flex: 1.3;
    padding: 2em;
}

.form_header_image
{
    flex: 0.7;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--border_subtle);
    background: var(--surface_card);
}

.form_header_image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.8s ease;
}

.form_header_flex:hover .form_header_image img
{
    transform: scale(1.05);
    opacity: 1;
}

.form_header_text h3
{
    font-size: 2.2rem;
    color: var(--text_heading);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: var(--font-sans);
}

.form_header_text p
{
    color: var(--text_secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.form_assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.assurance_item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--cyan-accent);
    font-weight: 600;
}

.assurance_item .material-symbols-outlined {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4));
}


/* Responsive formulaire --------------------------------------------------- */

@media (max-width: 900px) {
    .form_header_flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .form_assurance {
        justify-content: center;
        gap: 1.5rem;
    }

    .form_header_image {
        width: 100%;
        max-width: 380px;
        height: 180px;
        margin: 0 auto;
        margin-top: 2em;
    }

    .form_header_text {
        padding: 1.2rem 1rem;
    }

    .form_header_text h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .form_header_text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}


/* ===================================================================
 * [OUTILS_ADMIN_FORMULAIRE] Bloc dev visible uniquement si $admin
 * Phase V3.2 (29/04/2026) — Bypass vérif tél pour tests.
 * =================================================================== */

.bloc_outils_admin_formulaire {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px dashed #f59e0b;
    border-radius: 0.6rem;
    background: rgba(245, 158, 11, 0.06);
}

.bloc_outils_admin_formulaire .entete_outils_admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bloc_outils_admin_formulaire .icone_outils_admin {
    font-size: 1.1rem;
}

.bloc_outils_admin_formulaire .titre_outils_admin {
    flex: 1;
}

.bloc_outils_admin_formulaire .form_checkbox {
    margin-bottom: 0.5rem;
}

.bloc_outils_admin_formulaire .form_checkbox p strong {
    color: #fbbf24;
}

.bloc_outils_admin_formulaire .form_checkbox p small {
    display: block;
    margin-top: 0.25rem;
    color: var(--slate-400);
    font-size: 0.8rem;
    line-height: 1.4;
}


/* CTA Devis Animé (bouton d'appel) ---------------------------------------- */

.start_devis.CTA_BTN {
    background: linear-gradient(135deg, var(--cyan-accent) 0%, #0369a1 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cta-pulse 2.5s infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    width: 100%;
    max-width: 21em;
    margin: auto;
    padding: 1em 2em;
}

.start_devis .material-symbols-rounded {
    font-size: 3em;
}

/* Effet de brillance glissante */
.start_devis.CTA_BTN::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: cta-shine 4s ease-in-out infinite;
}

.start_devis.CTA_BTN:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, #0891b2 0%, #0f172a 100%);
    animation: none;
    /* Stoppe le pulse quand on survole */
}

.start_devis.CTA_BTN:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.form_group label
{
    color: var(--text_primary);
    font-weight: 500;
}

.form_checkbox input[type="checkbox"]
{
    background: var(--surface_input);
    border: 1px solid var(--border_subtle);
}

label.form_checkbox p
{
    color: var(--text_primary);
}

label.form_checkbox strong
{
    color: var(--cyan-accent);
}

.form_checkbox input[type="checkbox"]:checked::after
{
    color: #ffffff;
}

@keyframes cta-pulse
{
    0%
    {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
    }

    70%
    {
        box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
    }

    100%
    {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

@keyframes cta-shine
{
    0%
    {
        left: -100%;
    }

    15%
    {
        left: 200%;
    }

    100%
    {
        left: 200%;
    }
}