/**
 * ric_fab12.css
 * Styles de l'extension Ricochets Fab12
 * Palette & typo issues du thème getwid-base
 *
 * Variables de référence (depuis _variables.scss) :
 *   $primary-font   : 'Raleway', sans-serif
 *   $vert-fonce     : rgba(123, 180, 27, 1)   → #7bb41b
 *   $vert           : rgba(177, 201, 16, 1)   → #b1c910
 *   $orange         : rgba(240, 129, 1, 1)    → #f08101
 *   $gris           : rgba(133, 133, 133, 1)  → #858585
 *   $gris-clair     : rgba(187, 187, 187, 1)  → #bbbbbb
 *   $noir           : rgba(39, 39, 39, 1)     → #272727
 *   $base-font-color: rgba(44, 49, 48, 1)     → #2c3130
 *   $bordure        : #adadad
 *   border-radius boutons : 60px (pill)
 */

/* ============================================================
   1. BANDEAU "CONNECTÉ EN TANT QUE" — front-office
   ============================================================ */

#ric-fab12-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 20px;
    background: #272727;
    border-bottom: 3px solid #7bb41b;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

#ric-fab12-admin-bar .ric-fab12-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#ric-fab12-admin-bar::before {
    content: '\e820';
    font-family: Linearicons-Free;
    font-size: 18px;
    flex-shrink: 0;
    color: #7bb41b;
}

#ric-fab12-admin-bar .ric-fab12-bar-label {
    color: #bbbbbb;
}

#ric-fab12-admin-bar strong {
    color: #b1c910;
    font-weight: 700;
}

#ric-fab12-admin-bar .ric-fab12-bar-back::before {
    content: '\e875';
    font-family: Linearicons-Free;
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

#ric-fab12-admin-bar .ric-fab12-bar-back {
    flex-shrink: 0;
    display: inline-block;
    padding: 5px 16px;
    background: #7bb41b;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #7bb41b;
    border-radius: 60px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#ric-fab12-admin-bar .ric-fab12-bar-back:hover {
    background: #b1c910;
    border-color: #b1c910;
    color: #fff;
    text-decoration: none;
}

/* Décale le body pour que le bandeau ne recouvre pas le contenu */
body.ric-fab12-admin-as-user {
    margin-top: 42px !important;
}

/* ============================================================
   2. BOUTON "SE CONNECTER EN TANT QUE" — fiche dossier front-office
   ============================================================ */

p.ric-login-as-user-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

a.ric-login-as-user::before {
    content: '\e820';
    font-family: Linearicons-Free;
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

a.ric-login-as-user {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 60px;
    border: 2px solid #272727;
    background: #272727;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

a.ric-login-as-user:hover {
    background: #7bb41b;
    border-color: #7bb41b;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   3. BOUTON "SE CONNECTER EN TANT QUE" — fiche utilisateur WP admin
   ============================================================ */

#ric-login-as-user th {
    padding-top: 8px;
}

#ric-login-as-user .button.ric-login-as-user-btn {
    background: #272727;
    border-color: #272727;
    color: #fff;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    padding: 6px 14px;
    height: auto;
    line-height: 1.5;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#ric-login-as-user .button.ric-login-as-user-btn:hover,
#ric-login-as-user .button.ric-login-as-user-btn:focus {
    background: #7bb41b;
    border-color: #7bb41b;
    color: #fff;
    outline: none;
    box-shadow: none;
}

#ric-login-as-user p.description {
    margin-top: 5px;
    color: #858585;
    font-style: italic;
    font-size: 12px;
}

/* ============================================================
   4. STYLES GENERAUX DE L'EXTENSION (front-office)
   ============================================================ */

/* Boutons CTA génériques */
a.cta {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 60px;
    border: 2px solid #7bb41b;
    background: transparent;
    color: #7bb41b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

a.cta:hover {
    background: #7bb41b;
    color: #fff;
    text-decoration: none;
}

a.cta.turquoise {
    border-color: #7bb41b;
    background: #7bb41b;
    color: #fff;
}

a.cta.turquoise:hover {
    background: #b1c910;
    border-color: #b1c910;
    color: #fff;
}

/* Bouton de validation / envoi */
a.cta-valider,
a.cta-publier {
    border-color: #f08101;
    color: #f08101;
}

a.cta-valider:hover,
a.cta-publier:hover {
    background: #f08101;
    color: #fff;
}

/* Message de retour UI */
.feedback_ui {
    display: none;
    text-align: right;
    color: #f08101;
    margin-right: 10px;
    font-style: italic;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.feedback_ui.important {
    color: #d63638;
    font-weight: 600;
    font-style: normal;
}