/* @override 
	https://psynovia.gorelkine.com/wp-content/themes/psynovia/assets/css/psynovia-cta-bar.css?* *//**
 * PSYNOVIA — Barre CTA fixe bas de page
 * assets/css/psynovia-cta-bar.css
 */

/* ===========================
   ANIMATION
   =========================== */
@keyframes psn-cta-bar-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   BARRE PRINCIPALE
   =========================== */
.psn-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 14px 0;
    animation: psn-cta-bar-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.3s;
}

.psn-cta-bar__inner {
    max-width: 1640px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ===========================
   LOGO
   =========================== */
.psn-cta-bar__logo {
    flex-shrink: 0;
}

.psn-cta-bar__logo img {
    height: 70px;
    width: auto;
    display: block;
}

.psn-cta-bar__logo a {
    display: block;
    line-height: 0;
}

/* ===========================
   MASQUAGE AU FOOTER
   (transition activée seulement après l'animation d'entrée)
   =========================== */
.psn-cta-bar.is-ready {
    animation: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.psn-cta-bar.is-hidden {
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}

/* ===========================
   BOUTONS
   =========================== */
.psn-cta-bar__btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
}

.psn-cta-bar__btn.avia-button {	font-size: 15px;
    color: #ffffff !important;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 1;
    min-width: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.psn-cta-bar__btn.avia-button:hover {
    color: #ffffff !important;
}

/* Fallback hover si pas de couleur rollover définie : légère opacité */
.psn-cta-bar__btn--1:not(:hover),
.psn-cta-bar__btn--2:not(:hover) {
    opacity: 1;
}



/* ===========================
   LOGO DANS LE BANDEAU TITRE
   =========================== */

/* Desktop : flex row, logo aligné en bas à droite */
.psn-title-container--with-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 24px;
}

.psn-title-container--with-logo .main-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.psn-title-logo {
    flex-shrink: 0;
    line-height: 0;
    align-self: flex-end;
}

.psn-title-logo img {
    height: 100px;
    width: auto;
    display: block;
}

.psn-title-logo a {
    display: block;
    line-height: 0;
}

/* Mobile : titre pleine largeur, logo en dessous aligné à droite */
@media (max-width: 968px) {
    .psn-title-container--with-logo {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }

    .psn-title-container--with-logo .main-title {
        width: 100%;		padding-right: 120px!important;
    }

    .psn-title-logo {
        align-self: flex-end;
    }

    .psn-title-logo img {
        height: 70px;		margin-right: 50px;
    }
}

/* ===========================
   TABLETTE / INTERMÉDIAIRE (≤ 1060px)
   =========================== */
@media (max-width: 1100px) {

    .psn-cta-bar__btn.avia-button.avia-size-large {
        padding: 15px 50px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.3;		height: 60px;
    }

    .psn-cta-bar__logo img {
        height: 60px;
    }
}

/* ===========================
   MOBILE (≤ 767px)
   =========================== */
@media (max-width: 767px) {

    .psn-cta-bar {
        padding: 10px 0;
    }

    .psn-cta-bar__inner {
        padding: 0 20px;
        gap: 10px;
    }

    .psn-cta-bar__logo img {
        height: 36px;
    }

    .psn-cta-bar__btns {
        gap: 8px;
    }

    /* Boutons plus compacts sur mobile */
    .psn-cta-bar__btn.avia-button.avia-size-large {
        font-size: 12px !important;
        padding: 8px 14px !important;
        border-radius: 100px !important;
     
    }
}

/* ===========================
   TRÈS PETIT MOBILE (≤ 400px)
   =========================== */
@media (max-width: 480px) {

    /* Si logo + 2 boutons : masquer le logo, garder les boutons */
    .psn-cta-bar__logo {
        display: none;
    }

    .psn-cta-bar__btns {
        width: 100%;
        justify-content: center;
    }
}
