/**
 * Commpagnie - Elementor Buttons
 * Styles personnalisés pour les boutons Elementor
 * 
 * @package Commpagnie_Elementor_Buttons
 * @version 1.0.1
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --cmp-btn-radius: 30px;
    --cmp-btn-icon-radius: 60px;
    --cmp-btn-icon-padding: 11px;
    --cmp-btn-icon-margin: 8px;
    --cmp-btn-transition: all 0.3s ease;
    --cmp-color-light: #FAFAFA;
    --cmp-color-blue: #2B4678;
    --cmp-color-yellow: #F7CA39;
}

/* ========================================
   RESET STYLES ELEMENTOR PAR DÉFAUT
   ======================================== */
.primary-button .elementor-button,
.secondary-button .elementor-button,
.tertiary-button .elementor-button,
.button-download .elementor-button,
.bouton-jaune .elementor-button {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ========================================
   STYLES DE BASE COMMUNS
   ======================================== */
.primary-button .elementor-button-content-wrapper,
.secondary-button .elementor-button-content-wrapper,
.tertiary-button .elementor-button-content-wrapper,
.button-download .elementor-button-content-wrapper,
.bouton-jaune .elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    border-radius: var(--cmp-btn-radius);
    transition: var(--cmp-btn-transition);
}

.primary-button .elementor-button-icon,
.secondary-button .elementor-button-icon,
.tertiary-button .elementor-button-icon,
.button-download .elementor-button-icon,
.bouton-jaune .elementor-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cmp-btn-icon-radius);
    padding: var(--cmp-btn-icon-padding);
    margin: var(--cmp-btn-icon-margin);
    transition: var(--cmp-btn-transition);
}

.primary-button .elementor-button-icon svg,
.secondary-button .elementor-button-icon svg,
.tertiary-button .elementor-button-icon svg,
.button-download .elementor-button-icon svg,
.bouton-jaune .elementor-button-icon svg {
    width: 16px;
    height: 16px;
    transition: var(--cmp-btn-transition);
}

.primary-button .elementor-button-text,
.secondary-button .elementor-button-text,
.tertiary-button .elementor-button-text,
.button-download .elementor-button-text,
.bouton-jaune .elementor-button-text {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px 2px 20px;
}

/* ========================================
   PRIMARY BUTTON
   Fond accent, texte clair
   ======================================== */
.primary-button .elementor-button-content-wrapper {
    background-color: var(--e-global-color-accent);
    border: 1px solid var(--e-global-color-accent);
}

.primary-button .elementor-button-icon {
    background-color: var(--cmp-color-light);
}

.primary-button .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.primary-button .elementor-button-text {
    color: var(--cmp-color-light);
}

/* Primary Button - Hover */
.primary-button .elementor-button:hover .elementor-button-content-wrapper {
    background-color: transparent;
}

.primary-button .elementor-button:hover .elementor-button-icon {
    background-color: var(--e-global-color-accent);
}

.primary-button .elementor-button:hover .elementor-button-icon svg {
    fill: var(--cmp-color-light);
}

.primary-button .elementor-button:hover .elementor-button-text {
    color: var(--e-global-color-accent);
}

/* ========================================
   SECONDARY BUTTON
   Fond transparent, bordure accent
   ======================================== */
.secondary-button .elementor-button-content-wrapper {
    background-color: transparent;
    border: 1px solid var(--e-global-color-accent);
}

.secondary-button .elementor-button-icon {
    background-color: var(--e-global-color-accent);
}

.secondary-button .elementor-button-icon svg {
    fill: var(--cmp-color-light);
}

.secondary-button .elementor-button-text {
    color: var(--e-global-color-accent);
}

/* Secondary Button - Hover */
.secondary-button .elementor-button:hover .elementor-button-content-wrapper {
    background-color: var(--e-global-color-accent);
}

.secondary-button .elementor-button:hover .elementor-button-icon {
    background-color: var(--cmp-color-light);
}

.secondary-button .elementor-button:hover .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.secondary-button .elementor-button:hover .elementor-button-text {
    color: var(--cmp-color-light);
}

/* ========================================
   TERTIARY BUTTON
   Fond secondary, texte clair
   ======================================== */
.tertiary-button .elementor-button-content-wrapper {
    background-color: var(--e-global-color-secondary);
    border: 1px solid var(--e-global-color-secondary);
}

.tertiary-button .elementor-button-icon {
    background-color: var(--cmp-color-light);
}

.tertiary-button .elementor-button-icon svg {
    fill: var(--e-global-color-secondary);
}

.tertiary-button .elementor-button-text {
    color: var(--cmp-color-light);
}

/* Tertiary Button - Hover */
.tertiary-button .elementor-button:hover .elementor-button-content-wrapper {
    background-color: transparent;
}

.tertiary-button .elementor-button:hover .elementor-button-icon {
    background-color: var(--e-global-color-secondary);
}

.tertiary-button .elementor-button:hover .elementor-button-icon svg {
    fill: var(--cmp-color-light);
}

.tertiary-button .elementor-button:hover .elementor-button-text {
    color: var(--e-global-color-secondary);
}

/* ========================================
   BUTTON DOWNLOAD
   Fond transparent, bordure custom
   ======================================== */
.button-download .elementor-button-content-wrapper {
    background-color: transparent;
    border: 1px solid var(--e-global-color-c0cf052);
}

.button-download .elementor-button-icon {
    background-color: var(--e-global-color-c0cf052);
}

.button-download .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.button-download .elementor-button-text {
    color: var(--e-global-color-accent);
}

/* Button Download - Hover */
.button-download .elementor-button:hover .elementor-button-content-wrapper {
    background-color: var(--e-global-color-c0cf052);
}

.button-download .elementor-button:hover .elementor-button-icon {
    background-color: var(--cmp-color-light);
}

.button-download .elementor-button:hover .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.button-download .elementor-button:hover .elementor-button-text {
    color: var(--e-global-color-accent);
}

/* ========================================
   BOUTON JAUNE
   Fond jaune custom
   ======================================== */
.bouton-jaune .elementor-button-content-wrapper {
    background-color: var(--e-global-color-c0cf052);
    border: 1px solid var(--e-global-color-c0cf052);
}

.bouton-jaune .elementor-button-icon {
    background-color: var(--cmp-color-light);
}

.bouton-jaune .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.bouton-jaune .elementor-button-text {
    color: var(--e-global-color-accent);
}

/* Bouton Jaune - Hover */
.bouton-jaune .elementor-button:hover .elementor-button-content-wrapper {
    background-color: transparent;
}

.bouton-jaune .elementor-button:hover .elementor-button-icon {
    background-color: var(--e-global-color-c0cf052);
}

.bouton-jaune .elementor-button:hover .elementor-button-icon svg {
    fill: var(--e-global-color-accent);
}

.bouton-jaune .elementor-button:hover .elementor-button-text {
    color: var(--e-global-color-accent);
}
