/* Modal styles - updated with reduced sizes */
/* Effet zoom pour l'apparition du modal */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        /* commence plus petit */
        opacity: 0;
    }

    to {
        transform: scale(1);
        /* taille normale */
        opacity: 1;
    }
}

.modale.showe .modal-contente {
    animation: slideDown 0.3s ease-out, zoomIn 0.3s ease-out;
}
/* Modal */
.modale {

    display: none !important;
    z-index: 1000 !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100% !important;
    background-color: rgba(40, 31, 31, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    /* flou */
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) !important;
        opacity: 0 !important;
    }

    to {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

.modale.showe .modal-contente {
    animation: slideDown 0.3s ease-out !important;
}

.modale.showe {
    display: flex !important;
    align-items: flex-start !important;
    /* aligne en haut */
    /* marge sous la barre du navigateur */
}

.modal-contente {
    display: flex !important;
    gap: 20px !important;
    /* Reduced from 30px */
    /* Reduced from 800px */
    background: var(--bg-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    /* Lighter shadow */
    padding: 20px !important;
    /* Reduced from 30px */
    z-index: 1111 !important;
    margin-left: 420px;
}

.form-groupe {
    margin-bottom: 15px !important;
    /* Reduced from 20px */
}

label {
    display: block !important;
    margin-bottom: 6px !important;
    /* Reduced from 8px */
    font-weight: 500 !important;
    color: var(--text-color) !important;
    font-size: var(--taille-text-pc) !important;
    font-weight: var(--text-gras);
    /* Smaller font */
}

.form-controle {
    width: 100% !important;
    padding: 10px 12px;
    /* Reduced from 12px 15px */
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    /* Smaller font */
    transition: border 0.3s !important;
    font-size: var(--taille-text-pc);
}

.form-controle:focus {
    border-color: var(--border-color) !important;
    outline: none !important;
    box-shadow: 0 0 3px var(--shadow-color) !important;
    /* Lighter shadow */
}



.input-groupe {
    display: flex !important;
    align-items: center !important;
}

.form-control-statice {
    flex: 1 !important;
    padding: 10px 12px !important;
    /* Reduced padding */
    background-color: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    font-size: var(--taille-text-pc) !important;
    /* Smaller font */
    font-weight: bold !important;
}

.p-pop {
    display: flex;
    justify-content: center;
    background: linear-gradient(45deg, var(--logo-color), var(--effet-color));
    /* effet gradient lumineux */
    padding: 10px 20px;
    font-weight: var(--text-gras);

}

.operator-logo {
    height: 50px !important;
    /* Reduced from 32px */
    margin-left: 8px !important;
    /* Reduced from 12px */
    align-self: center !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    padding: 2px !important;
    /* Reduced padding */
}

.Methodes {
    /* margin-left: 46px; */
    justify-content: center;
    display: flex;
}

.in {
    display: none !important;
}


.form-texte {
    display: flex !important;
    margin-top: 4px !important;
    /* Reduced from 6px */
    font-size: var(--taille-text-pc) !important;
    /* Smaller font */
    color: var(--text-color) !important;
    justify-content: center;
}

h3 {
    margin-top: 0 !important;
    color: #2c3e50 !important;
    font-size: 13px !important;
    /* Reduced from default */
    margin-bottom: 15px !important;
    /* Added spacing */
}

/* New two-panel layout */
.instructions-panele {
    flex: 1 !important;
    /* Reduced from 20px */
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    max-width: 250px;
    /* Smaller font */
}

.instructions-panele h3 {
    font-size: 16px !important;
    /* Match form panel */
}

.form-panele {
    flex: 1 !important;
}

/* Adjust phone input layout */
.phone-input-container {
    display: flex !important;
    align-items: center !important;
}

.phone-input-container .form-controle {
    flex: 1 !important;
}

/* Smaller list items */
ol {
    padding-left: 20px !important;
    /* Reduced padding */
}

ol li {
    margin-bottom: 8px !important;
    /* Reduced spacing */
}

.logos {
    display: flex;
}

.logos {
    height: 40px !important;
    /* Reduced from 32px */
    margin-left: 8px !important;
    /* Reduced from 12px */
    align-self: center !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 2px !important;
    /* Reduced padding */
}


/* Responsive Styles */
@media (max-width: 768px) {

    .modale {
        display: none !important;
        position: fixed;
        /* important pour le garder visible même en scrollant */
        z-index: 1000 !important;
        left: 0 !important;


        top: auto !important;
        /* enlève le top */
        bottom: 0 !important;
        /* colle en bas */
        /* le modal reste collé en bas */
        width: 100% !important;
        /* prend toute la largeur */
        /* hauteur automatique selon le contenu */
        background-color: rgba(0, 0, 0, 0.5) !important;
        /* optionnel, pour un peu d’espace */
    }

    .modal-contente {
        width: 100% !important;
        margin-left: 0px;
    }

    .instructions-panele {
        display: none !important;
    }

    .in {
        display: block !important;
        font-size: 6px !important;
    }

}
