/*
 Theme Name:   NBP 2024
 Description:  Theme for Nothing But Pets ASBL website
 Author:       Owlistic
 Author URI:   https://owlistic.be
 Template:     bootscore
 Version:      1.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Commons */
* {
    font-family: "Ubuntu", sans-serif;
}
#header-top {
    background: linear-gradient(90deg,rgba(42, 123, 155, 1) 0%, #89C6B2 50%, rgba(198, 83, 237, 1) 100%);
    color: #FFF;
    font-size: 0.85em;
}
#header-top * {
    color: #FFF;
    text-decoration: none;
}
#header-top a {
    margin-left: 1em;
}
#header-top a:hover {
    color: yellow;
    animation: 3s spacingHover ease-out;
}
#header-top a:first-child {
    margin-left: 0;
}

.navbar-brand {
    width: 200px;
}
h1 {
    font-weight: 700;
}
.page-banner-title {
    font-size: 4em;
}
main h2 {
    position: relative; /* Nécessaire pour positionner les pseudo-éléments */
    font-weight: 700;
    padding: 15px 0 10px 0;
}
main h2::after {
    content: ''; /* Nécessaire pour afficher un élément vide */
    display: block;
    width: 100%;
    height: 25px; /* Hauteur de l'espace occupé par les images */
    margin-top: 5px; /* Espacement entre le titre et les images */
    background-repeat: no-repeat;
    background-size: 25px; /* Taille des icônes */
    background-position: 0px center, 35px center, 70px center;
    opacity: 0;
    animation: titleIcons .9s ease .5s forwards;
}
main h3:not(main blockquote h3):not(main aside h3) {
    margin-top: 1.25em;
}
main blockquote {
    padding: 25px;
    background-color: #343664;
    color: #FFF;
}

a {
    color: #343664;
    text-decoration: underline;
}
.wc-breadcrumb .breadcrumb-item:first-child a::before {
    background-color: #343664;
}
.wp-block-pullquote {
    padding: 1.5em 0;
}

#navbar-nbp {
    background-color: #343664;
    box-shadow: 0 5px 12px 0px rgba(0,0,0,0.4);
}
@media screen and (min-width: 1200px) {
    #navbar-nbp a {
        color: #FFF;
    }
    #navbar-nbp .nav-item.nav-item-48 {
        background-color: #FFF;
    }
    #navbar-nbp .nav-item.nav-item-48 a {
        color: #343664;
    }
}
#navbar-nbp .nav-item.nav-item-48 .emoji {
    animation: emojiPulse 2s ease .5s;
}
#navbar-nbp .nav-link.active {
    font-weight: bold;
}

#home-content, #content {
    flex: none;
}
#page {
}

footer {
    background-color: lightgrey;
}
footer a {
    text-decoration: none;
}
footer a.rs-icon {
    display: inline-block;
    text-align: center;
    align-content: center;
    width: 60px;
    height: 60px;
    font-size: 2em;
    border: 1px solid #343664;
    border-radius: 50%;
}
footer img {
    max-width: 300px;
}
.banner {
    height: 50vh; /* Ajustez la hauteur selon vos besoins */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 54, 100, 0.4); /* Ajouter un overlay sombre */
    z-index: 1;
}
.banner .container {
    position: relative;
    z-index: 2; /* Assurez-vous que le contenu est au-dessus de l'overlay */
}
@media (max-width: 768px) {
    .banner {
        height: 14vh; /* Moins de hauteur sur mobile */
        font-size: 0.5em;
    }
}

@media (min-width: 769px) {
    .banner {
        height: 20vh; /* Plus de hauteur sur grand écran */
    }
}

.btn-primary {
    background-color: #734691;
    border-color: #734691;
}
.btn-primary:hover {
    background-color: #7b5892;
    border-color: #734691;
}

.btn-secondary {
    background-color: #89C6B2;
    border-color: #89C6B2;
}
.btn-secondary:hover {
    background-color: #94b9b1;
    border-color: #89C6B2;
}


/* Homepage */
#home-banner {
    position: relative;
    height: 42vh;
    min-height: 400px;
    background-color: lightgray;
    background-image: linear-gradient(to bottom,transparent 0% 15%,#0003 50%), url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/stardust_DSC02804_web.jpg');
    background-size: cover;
    background-position: center 67.5%;
}
@media screen and (min-width: 1200px) {
    #home-banner {
        background-image: linear-gradient(to right,transparent 0% 45%,#0003 80%), url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/stardust_DSC02804_web.jpg');
    }
}
#home-banner-text p {
    font-family: "Pacifico", cursive;
    /*text-shadow: 3px 3px 6px #8c654d82, -3px -3px 6px #8c654d82, 3px -3px 6px #8c654d82, -3px 3px 6px #8c654d82;*/
    color: #fff;
    font-size: 1.45rem;
}
#home-banner-text li {
    background-image: url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/nbp-paw.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
    transform: translateY(20px); /* Position initiale légèrement décalée */
    opacity: 0; /* Invisibles */
    transition: transform 0.5s, opacity 0.5s; /* Transition douce */
    padding: 5px 30px;
    color: #FFF;
    list-style: none;
    font-size: 1.2em;
}
#home-banner-text li.visible {
    transform: translateY(0); /* Position normale */
    opacity: 1; /* Visibles */
}
#home-banner-border {
    position: absolute;
    bottom: 0;
}

#home-boxes {
    background: #D3D3D3;
    background: linear-gradient(rgb(211, 211, 211) 0%, #EAC9A7 60%)
}
#home-boxes .home-box {
    border: none;
    min-height: 325px;
    /*margin-top: -3em;*/
    text-decoration: none;
    color: #FFF;
}
#home-boxes .home-box .card-img-overlay {
    background-color: rgba(115, 70, 145, 0.8);
    transition: background-color .5s ease;
}
#home-boxes .home-box .card-img-overlay a {
    color: #FFF;
    text-decoration: none;
}
#home-boxes .home-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1%;
    transform: rotate(-2deg);
    transition: transform .35s ease;
}
#home-boxes .home-box .btn {
    background-color: #89C6B2;
}
#home-boxes .home-box .card-excerpt {
    font-size: 0.85em;
}
#home-boxes .home-box:hover img {
    transform: rotate(0);
    transition: transform .5s ease;
}
#home-boxes .home-box:hover .card-img-overlay {
    background-color: rgba(65, 35, 80, 0.4);
}
#home-boxes #home-box-events {
    border-radius: 10px 40px 10px 40px;
    border-top: solid 4px #89C6B2;
}
#home-boxes #home-box-events h5 {
    color: rgba(115, 70, 145);
}
#home-boxes #home-box-events .evenement-title {
    text-decoration: none;
    font-weight: bold;
}
#home-boxes #home-box-events .evenement-date {
    color: #333;
    font-size: 0.8em;
}
#home-boxes #home-box-events .evenement-description {
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
   color: #888;
   font-size: 0.8em;
}

#home-brevo-form {
    background-color: #89C6B2;
}

#home-content {
    padding-top: 4rem;
    padding-bottom: 8rem;
    background-image: url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/nbp-rabbitpaws-bg.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 100%;
}
@media screen and (min-width: 1200px) {
    #home-content {
        background-size: 68%;
    }
    
}


#banner-minus {
    background: #343664; /* Couleur de fond pour contraster avec l'image */
}
#banner-minus-text {
    font-size: 0.85em;
}
#banner-minus-text a {
    color: #FFF;
}
#banner-minus-title small {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    color: #E7D0BE;
}
#banner-minus-image {
    position: relative;
    width: 100%;
    height: 400px;
}
@media screen and (min-width: 992px) {
    #banner-minus-image .overlay {
        position:absolute;
        top:0;
        left:0;
        right:0;
        bottom:0;
        background-color:rgba(0, 0, 0, 0.85);
        background: linear-gradient(to right, #343664 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, #343664 100%);
        z-index:20;
    }
}
#banner-minus-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}


/* News */
.card-news-sticky {
    background-color: #e7e6fd;
}
.card-news .card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}
    


/* Refuge */
.card-minus img { 
    height: 260px;
    object-fit: cover;
}
.card-minus .card-body {
    background: linear-gradient(transparent, #343664);
    margin-top: -64px;
    color: #fff;
}
.card-minus i.fa-solid {
    padding-left: 7px;
}
.card-minus .fa-venus {
    color: pink;
}
.card-minus .fa-mars {
    color: lightblue;
}

.minus-grid-etoile {
    width: 125px;
    height: 125px;
    background-size:cover;
    background-position: center;
}


.partenaire {
    font-size: 0.85em;
    border: 2px solid coral;
    border-radius: 1em;
}
.partenaire-title {
    font-size: 1.5em;
    margin-top: 0;
}

.affiliation {
    font-size: 0.8em;
    border-bottom: 2px solid coral;
}
.affiliation-image {
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.affiliation-title {
    margin-top: 0;
    font-size: 1.4em;
}
.affiliation:last-child {
    border-bottom: 0;
}

.accordion-header {
    margin-top: 0;
}



/* Evénements */
.evenement-date {
    font-weight: bold;
}
.evenement-title a {
    text-decoration: none;
}

/* eShop */
.woocommerce-page .page-title {
    display: none;
}

main .woocommerce .card h2::after,
main .products .card h2::after,
main .wc-block-components-title h2::after {
    content: none;
}
main .card.product_cat-seconde-main {
    /*background-color: #cce0dc;*/
}

.product-badge-grid {
    position: absolute;
    width: 60%;
    top: 5%;
    right: 5%;
}


/* KEYFRAMES */
@keyframes titleIcons {
    0% {
        opacity: 0;
    }
    33% {
        background-image: url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png');
        opacity: 1;
    }
    66% {
        background-image: url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png'), url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png');
        opacity: 1;
    }
    100% {
        background-image: url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png'), url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png'), url('https://www.nbp-asbl.be/wp-content/themes/nbp2024/img/list-icon.png');
        opacity: 1;
    }
}

@keyframes spacingHover {
    0% {
        letter-spacing: 0;
    }

    20% {
        letter-spacing: 2px;
    }

    100% {
        letter-spacing: 0;
    }
}

@keyframes emojiPulse {
    0% {
        font-size: 1em;
    }

    25% {
        font-size: 1.2em;
    }

    50% {
        font-size: 1em;
    }

    75% {
        font-size: 1.2em;
    }

    100% {
        font-size: 1em;
    }
}