/* ==========================================================================
   BOUTONS SPLIT PILL (GPX / Y aller / génériques)
   
   Fichier autonome — chargé par Boutons.php via wp_enqueue_style
   conditionnel dans chaque shortcode qui produit un .split-btn.
   ========================================================================== */


/* ──────────────────────────────────────────
   Conteneur inline (deux boutons côte à côte)
   ────────────────────────────────────────── */

.conteneur-boutons-inline {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    background: transparent;
    border: none;
}


/* ──────────────────────────────────────────
   Bouton split pill
   
   Design : icône SVG blanc sur fond bleu | label sur fond blanc
   Hover  : lift 1px + icône éclaircie
   ────────────────────────────────────────── */

.split-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(5, 102, 141, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 48px;
    flex-shrink: 0;
}

.split-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5, 102, 141, 0.22);
}

.split-btn__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    background: #05668d;
    border-radius: 16px 0 0 16px;
    transition: background 0.3s ease;
}

.split-btn:hover .split-btn__ico {
    background: #0a7da8;
}

.split-btn__svg {
    display: block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.split-btn__txt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 48px;
    padding: 0 8px;
    flex-shrink: 0;
    background: #ffffff;
    color: #05668d;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 0 16px 16px 0;
    box-sizing: border-box;
}


/* ──────────────────────────────────────────
   Conteneur groupe pill (dispositions)
   ────────────────────────────────────────── */

.conteneur-boutons-pill {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
}

.pill-disposition--inline {
    flex-direction: row;
    justify-content: center;
}

.pill-disposition--colonne {
    flex-direction: column;
    align-items: flex-start;
}

.pill-disposition--grille {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 20px;
}


/* ══════════════════════════════════════════
   MOBILE / TABLETTE (≤980px)
   ══════════════════════════════════════════ */

@media (max-width: 980px) {

    .split-btn {
        height: 42px;
    }

    .split-btn__ico {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .split-btn__svg {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .split-btn__txt {
        min-width: 70px;
        height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }

    /* Groupe pill : empiler en mobile */
    .pill-disposition--inline,
    .pill-disposition--grille {
        flex-direction: column;
        align-items: center;
        display: flex;
        grid-template-columns: none;
    }
}