/**
 * Text to Button - Styles des boutons
 * Préfixe des classes : ttb-
 */

/* ============================================
   STYLE DE BASE (commun à tous les boutons)
   ============================================ */
.ttb-bouton {
    display: inline-block;
    padding: 10px 24px;
    margin: 4px 0;
    color: #fff !important;
    background-color: #555;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease, transform .1s ease;
}

.ttb-bouton:hover {
    opacity: .85;
    text-decoration: none !important;
}

.ttb-bouton:active {
    transform: translateY(1px);
}

/* ============================================
   STYLES DE COULEUR
   ============================================ */

/* Style par défaut (hérite de la base, bleu WordPress) */
.ttb-defaut {
    background-color: #0073aa;
}

/* Primaire - bleu vif */
.ttb-primaire {
    background-color: #2271b1;
}
.ttb-primaire:hover {
    background-color: #135e96;
    opacity: 1;
}

/* Secondaire - gris */
.ttb-secondaire {
    background-color: #6c757d;
}
.ttb-secondaire:hover {
    background-color: #5a6268;
    opacity: 1;
}

/* Succès - vert */
.ttb-succes {
    background-color: #28a745;
}
.ttb-succes:hover {
    background-color: #218838;
    opacity: 1;
}

/* Danger - rouge */
.ttb-danger {
    background-color: #dc3545;
}
.ttb-danger:hover {
    background-color: #c82333;
    opacity: 1;
}

/* Attention - orange */
.ttb-warning {
    background-color: #fd7e14;
}
.ttb-warning:hover {
    background-color: #e8590c;
    opacity: 1;
}

/* ============================================
   STYLES DE FORME / APPARENCE
   ============================================ */

/* Contour - bouton transparent avec bordure */
.ttb-contour {
    background-color: transparent !important;
    color: #0073aa !important;
    border: 2px solid #0073aa;
}
.ttb-contour:hover {
    background-color: #0073aa !important;
    color: #fff !important;
    opacity: 1;
}

/* Arrondi - forme "pill" */
.ttb-arrondi {
    /*border-radius: 999px;
    padding-left: 32px;
    padding-right: 32px;*/
    display: inline-block;
    padding: 10px 20px;
    background: #81cbd4;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: large;
}
.ttb-arrondi .ttb-bouton {}
/* Ombre portée */
.ttb-arrondi .ttb-ombre {
  box-shadow:0 2px 10px rgba(26,143,168,0.35)
}
.ttb-ombre {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.ttb-ombre:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
}
.ttb-arrondi.ttb-ombre:hover {
  background: #1a8fa8;
  transform: translateY(-2px);
}

/* ============================================
   STYLES DE TAILLE
   ============================================ */

/* Grand */
.ttb-grand {
    padding: 16px 40px;
    font-size: 19px;
}

/* Petit */
.ttb-petit {
    padding: 6px 14px;
    font-size: 13px;
}

/* ============================================
   COMPATIBILITÉ ÉDITEUR (aperçu dans TinyMCE)
   ============================================ */
.mce-content-body .ttb-bouton {
    pointer-events: none;
}
