/*
 * Fico Trading - Styles de compatibilité Elementor
 * Assure une intégration fluide entre le thème et le constructeur de pages Elementor
 */

/* ── Réinitialisation pour Elementor ── */
.elementor-section-wrap {
    width: 100%;
}

.elementor-section {
    position: relative;
}

.elementor-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Couleurs du thème dans Elementor ── */
.elementor-heading-title {
    color: #0066CC;
}

.elementor-button.elementor-button-link,
.elementor-button {
    background-color: #0066CC !important;
    border-color: #0066CC !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.elementor-button:hover {
    background-color: #0052a3 !important;
    border-color: #0052a3 !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.elementor-icon {
    color: #0066CC;
}

.elementor-text-editor {
    line-height: 1.8;
    color: #333333;
}

/* ── Sections Elementor ── */
.elementor-section.elementor-section-full_width .elementor-container {
    max-width: 100%;
}

.elementor-section.elementor-section-boxed .elementor-container {
    max-width: 1200px;
}

/* ── Colonnes Elementor ── */
.elementor-column-gap-default .elementor-column > .elementor-element-populated {
    padding: 20px;
}

/* ── Typographie Elementor ── */
.elementor-widget-heading .elementor-heading-title {
    line-height: 1.3;
    font-weight: 700;
}

.elementor-widget-text-editor p {
    margin: 10px 0;
    line-height: 1.8;
}

/* ── Formulaire de contact Elementor ── */
.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.elementor-field-group input:focus,
.elementor-field-group textarea:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 6px rgba(0, 102, 204, 0.2);
}

.elementor-form .elementor-button {
    background-color: #0066CC !important;
    color: white !important;
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* ── Divider Elementor ── */
.elementor-divider-separator {
    border-color: #e0e0e0;
}

/* ── Image Widget Elementor ── */
.elementor-widget-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* ── Responsive Elementor ── */
@media (max-width: 768px) {
    .elementor-column {
        width: 100% !important;
    }

    .elementor-section-inner {
        flex-direction: column;
    }

    .elementor-row {
        flex-direction: column;
    }

    .elementor-widget {
        margin-bottom: 20px;
    }
}

/* ── Éditeur Elementor : affichage correct ── */
body.elementor-editor-active header,
body.elementor-editor-active footer {
    position: relative;
    z-index: 0;
}

/* ── Arrière-plan de section Elementor ── */
.elementor-section > .elementor-background-overlay {
    border-radius: 0;
}

/* ── Carte/Boîte de service dans Elementor ── */
.elementor-widget-container .service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #0066CC;
}

.elementor-widget-container .service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
