/* ═══════════════════════════════════════════════════════
   BUTTONS — c-hero-btn
   Chargé sur tout le site via functions.php
   ═══════════════════════════════════════════════════════ */

/* ─── Base ─── */
.c-hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 24px;
    font-family: Chivo, sans-serif;
    font-size: 0.8rem;
    font-weight: 500 !important;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    outline: none;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ─── Wrapper interne — glisse vers le bas au hover ─── */
.c-hero-btn__inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    will-change: transform, opacity;
}

.c-hero-btn:hover .c-hero-btn__inner:not(.c-header-cta__inner--default) {
    transform: translateY(120%) !important;
    opacity: 0 !important;
}

/* ─── Texte fantôme — arrive du haut au hover ─── */
.c-hero-btn__hover {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    will-change: transform, opacity;
}

.c-hero-btn:hover .c-hero-btn__hover {
    transform: translateY(0);
    opacity: 1;
}

/* ─── Icône SVG ─── */
.c-hero-btn__icon {
    font-style: normal;
    line-height: 2;
}

.c-hero-btn__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    vertical-align: middle;
}



.c-media-text_content .c-media-text_btn {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 1rem !important;
}
.c-media-text_btn .c-hero-btn {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* ═══════════════════════════════════════════════════════
   VARIANTES
   ═══════════════════════════════════════════════════════ */

/* ── PRIMARY : fond vert → hover transparent ── */
.c-hero-btn--primary {
    background: var(--GREEN, #006877);
    color: #fff;
    border: 1px solid var(--GREEN, #006877);
}
.c-hero-btn--primary:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.c-hero-btn--primary .c-hero-btn__inner { color: #fff; }
.c-hero-btn--primary .c-hero-btn__hover { color: #fff; }

/* ── SECONDARY : fond blanc → hover transparent blanc ── */
.c-hero-btn--secondary {
    background: #fff;
    color: var(--GREEN, #006877) !important;
    border: 1px solid #fff;
}
.c-hero-btn--secondary:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.c-hero-btn--secondary .c-hero-btn__inner { color: #006877; }
.c-hero-btn--secondary .c-hero-btn__hover { color: #fff; }

/* ── GREEN : fond vert → hover blanc ── */
.c-hero-btn--green {
    background: #006877;
    color: #fff;
    border: 1px solid #006877;
}
.c-hero-btn--green:hover {
    background: #fff;
    border-color: #006877;
    color: #006877;
}
.c-hero-btn--green .c-hero-btn__inner { color: #fff; }
.c-hero-btn--green .c-hero-btn__hover { color: #006877; }

/* ── WHITE : fond blanc → hover transparent blanc ── */
.c-hero-btn--white {
    background: #fff;
    color: #006877;
    border: 1px solid #fff;
}
.c-hero-btn--white:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.c-hero-btn--white .c-hero-btn__inner { color: #006877; }
.c-hero-btn--white .c-hero-btn__hover { color: #fff; }

/* ── PURPLE : fond bordeaux → hover transparent ── */
.c-hero-btn--purple {
    background: #612341;
    color: #fff;
    border: 1px solid #612341;
}
.c-hero-btn--purple:hover {
    background: transparent;
    border-color: #612341;
    color: #612341;
}
.c-hero-btn--purple .c-hero-btn__inner { color: #fff; }
.c-hero-btn--purple .c-hero-btn__hover { color: #612341; }

/* ── OUTLINE-WHITE : transparent + bordure blanche → hover blanc → color vert #006877 ── */
.c-hero-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.c-hero-btn--outline-white:hover {
    background: #fff;
    border-color: #fff;
    color: #006877;
}
.c-hero-btn--outline-white .c-hero-btn__inner { color: #fff; }
.c-hero-btn--outline-white .c-hero-btn__hover { color: #006877; }

/* ── OUTLINE-GREEN : transparent + bordure verte → hover vert ── */
.c-hero-btn--outline-green {
    background: transparent;
    color: #006877;
    border: 1px solid #006877;
}
.c-hero-btn--outline-green:hover {
    background: #006877;
    border-color: #006877;
    color: #fff;
}
.c-hero-btn--outline-green .c-hero-btn__inner { color: #006877; }
.c-hero-btn--outline-green .c-hero-btn__hover { color: #fff; }

/* ── OUTLINE-PURPLE : transparent + bordure bordeaux → hover bordeaux ── */
.c-hero-btn--outline-purple {
    background: transparent;
    color: #612341 !important;
    border: 1px solid #612341;
}
.c-hero-btn--outline-purple:hover {
    background: #612341;
    border-color: #612341;
    color: #fff;
}
.c-hero-btn--outline-purple .c-hero-btn__inner { color: #612341; }
.c-hero-btn--outline-purple .c-hero-btn__hover { color: #fff; }



/* ── OUTLINE-WHITE-GREEN : transparent + bordure blanche → hover blanc + texte vert ── */
.c-hero-btn--outline-white-green {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.c-hero-btn--outline-white-green:hover {
    background: #fff;
    border-color: #fff;
    color: #006877;
}
.c-hero-btn--outline-white-green .c-hero-btn__inner { color: #fff; }
.c-hero-btn--outline-white-green .c-hero-btn__hover { color: #006877; }


/* ── WHITE-PURPLE : fond blanc → hover transparent bordeaux ── */
.c-hero-btn--white-purple {
    background: #fff !important;
    color: #612341 !important;
    border: 1px solid #612341 !important;
}
.c-hero-btn--white-purple:hover {
    background: transparent !important;
    border-color: #fff !important;      /* ← était #fff */
    color: #fff !important;             /* ← était #fff, illisible */
}
.c-hero-btn--white-purple .c-hero-btn__inner { color: #612341 !important; }
.c-hero-btn--white-purple .c-hero-btn__hover { color: #fff !important; } /* ← était #fff */


/* ═══════════════════════════════════════════════════════
   FIX — annule les couleurs héritées de .s-content a
   ═══════════════════════════════════════════════════════ */

.s-content .c-hero-btn,
.s-content .c-hero-btn:hover,
.s-content .c-hero-btn:focus {
    text-decoration: none !important;
}

.s-content .c-hero-btn--white         { color: #006877 !important; }
.s-content .c-hero-btn--white .c-hero-btn__inner  { color: #006877 !important; }
.s-content .c-hero-btn--white:hover .c-hero-btn__hover { color: #fff !important; }

.s-content .c-hero-btn--outline-white         { color: #fff !important; }
.s-content .c-hero-btn--outline-white .c-hero-btn__inner,
.s-content .c-hero-btn--outline-white .c-hero-btn__hover { color: #fff !important; }
.s-content .c-hero-btn--outline-white:hover   { color: #006877 !important; }
.s-content .c-hero-btn--outline-white:hover .c-hero-btn__hover { color: #006877 !important; }

.s-content .c-hero-btn--outline-purple         { color: #612341 !important; }
.s-content .c-hero-btn--outline-purple .c-hero-btn__inner,
.s-content .c-hero-btn--outline-purple .c-hero-btn__hover { color: #612341 !important; }
.s-content .c-hero-btn--outline-purple:hover   { color: #fff !important; }
.s-content .c-hero-btn--outline-purple:hover .c-hero-btn__hover { color: #fff !important; }

/* Spécifique à la section "Included Items" qui a un fond vert, pour assurer une bonne lisibilité du bouton outline-white au hover */
.o-section.-included-items .c-hero-btn--outline-white .c-hero-btn__hover {
    color: #612341 !important;
}


/* ═══════════════════════════════════════════════════════
   HEADER CTA — styles appliqués sur toutes les pages
   ═══════════════════════════════════════════════════════ */

.c-header-cta-nav--default .c-header-cta--default {
    height: 100% !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: Chivo !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    padding: 0 4rem !important;
}

.c-header_nav .menu-item a {
    background: #006877 !important;
    color: #fff !important;
}

.c-header-cta-nav--default .c-header-cta--green {
    background-color: #006877 !important;
    border-color: #006877 !important;
    color: #fff !important;
}

.c-header-cta-nav--default .c-header-cta--purple {
    background-color: #612341 !important;
    border-color: #612341 !important;
    color: #fff !important;
}

.c-header-cta-nav--default .c-header-cta--white {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #006877 !important;
}



/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
    .c-hero-btn {
        font-size: 0.65rem !important;
        height: 48px !important;
        padding: 0 14px !important;
        margin-top: 0px !important;
    }

}

@media (max-width: 767px) {
    .c-hero-btn {
        font-size: 0.75rem !important;
        height: 42px !important;
        padding: 0 18px !important;
    }
    .c-header-cta-nav--default .c-header-cta--default {
        padding: 0 2rem !important;
        font-size: 0.75rem !important;
        height: 5rem !important;
    }
        /* Boutons : empilés en colonne */
    .page-id-1218 .c-media-text_content .c-media-text_btn{
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
}