/*
Theme Name: Astra Child
Theme URI: https://www.agcreative.fr/
Description: Thème enfant basé sur Astra
Author: Ambre Gravot
Author URI: https://www.agcreative.fr/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

body.noscroll {
    overflow: hidden;
    height: 100vh;
}

/* ===== TITRE PERSONNALISÉ ===== */

.title_shadow {
	text-shadow:
  1px 1px 2px #B76D87,
  0 0 1em #FFA468,
  0 0 0.2em #F6B88F;
}

/* ===== FOOTER PERSONNALISÉ ===== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    z-index: 999;
}

/* Chevron déclencheur */
.footer__start {
    display: flex;
    align-items: center;
    width: 90%;
    justify-content: center;
    background: #B76D87;
    border-radius: 50px 50px 0 0;
    cursor: pointer;
    transition: all 0.3s ease-out;
    margin: 0 auto;
    box-shadow: 0px 4px 15px 0px rgba(107, 0, 37.000000000000014, 0.5);
}
.footer__start img {
    width: 14px;
    transition: transform 0.3s ease;
    margin-bottom: 8px;
    z-index: 1;
    position: relative;
}
.footer__start::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: calc(50% - 12.5px);
    width: 25px;
    height: 25px;
    background-color: #B76D87;
    transform: rotate(45deg);
    transition: all 0.3s ease-out;
    border-radius: 5px;
}
.footer.open .footer__start {
    display: none;
}

/* Overlay */
.footer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(183, 109, 135, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s 0.25s ease;
    z-index: 998;
}
.footer.open .footer__overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Premier volet (intermédiaire) */
.footer__first {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(183, 109, 135, 1);
    transform: translateY(100%);
    transition: transform 0.4s 0.75s ease;
    z-index: 999;
}
.footer.open .footer__first {
    transform: translateY(0);
}

/* Volet contenu limité à 50% de l'écran et en ligne */
.footer__content {
    font-family: "Roboto", Sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 50vh;
    background: rgba(107, 0, 37, 1);
    border-radius: 50px 50px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s 1.25s ease;
    z-index: 1000;
    color: #fff;
    padding: 20px 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    overflow-y: auto; 
}

/* Faire remonter le contenu par-dessus le premier volet */
.footer.open .footer__content {
    transform: translateY(-90px);
}

/* Wrapper interne en ligne */
.footer__content .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 60px;
    padding: 40px 20px;
    position: relative;
}
/* ===== FOOTER MENU ===== */
.footer__menu {
    margin: 20px 0;
    text-align: center;
}

.footer__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer__menu li {
    font-family: "Roboto", Sans-serif;
    margin: 5px 0;
}

.footer__menu a {
    font-family: "Roboto", Sans-serif;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer__menu a:hover {
    color: rgba(183, 109, 135, 1);
}


/* Chaque bloc interne reste en colonne */
.footer__reseaux {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}
.footer__reseaux .icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.3s ease;
}
    .footer__reseaux a:hover {
    transform: scale(1.1); /* léger zoom */
}


/* Bouton fermeture */
.footer__close {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}
.footer__close img {
    width: 20px;
}

/* Logo */
.footer__logo {
    max-width: 300px;
}

/* Diviseur */
.footer__divider {
    height: 80px;
    background: #FFFFFF;
    margin: 20px 0;
    width: 1px;
}

/* Réseaux sociaux */
.footer__reseaux {
    text-align: center;
}
.footer__reseaux img {
    width: 30px;
    margin: 10px;
}

/* Footer bas */
.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}
.footer__bottom .footer__divider {
    height: 24px;
    background: #FFFFFF;
    margin: 20px 0;
    width: 1px;
}
.footer__bottom a {
    color: rgba(107, 0, 37, 1);
    text-decoration: none;
    margin: 0 5px;
}
.footer__bottom p {
    margin-bottom: 0 !important;
}

/* ===== POST BLOG ===== */
.ast-separate-container .ast-blog-layout-5-grid .post-content {
    background-color: transparent;
    background-image: linear-gradient(170deg, #FFC3CD 0%, #B76D87 100%);
}


/* ===== VERSION MOBILE ===== */
@media (max-width: 900px) {
    .footer__content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        max-height: 85vh;
    }

    .footer__content .wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0px;
    }

    .footer__logo {
        max-width: 150px;
        margin: 0 auto;
    }

    .footer__divider {
        width: 80%;
        height: 1px;
        margin: 15px auto;
    }

    .footer__menu ul {
        gap: 10px;
        display: flex;
        flex-direction: column;
    }
    .footer__menu li {
        flex: 1 1 45%; /* deux colonnes */
    }

    .footer__reseaux {
        flex-direction: column;
        gap: 10px;
    }

    .footer__bottom {
        flex-direction: row;
        gap: 10px;
        margin-top: 20px;
        font-size: 10px;
    }
    .footer__bottom .footer__divider {
        display: none;
    }
}