/*
Theme Name: Bijouterie Faivre
Author: Awebi
Author URI: https://awebi.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faivre
*/

/* Reset and base styles */

.footer-bottom a {
	text-decoration: none;
    font-weight: bolder;
    color: unset;
}

section {
    margin: 85px 0;
}

.features-section {
    background: #FFF6FB;
    padding: 40px 0;
    margin-bottom: 73px;
}

.feature-card {
    border: none;
    background: transparent;
}

.feature-card .card-body {
    display: grid;
    text-align: center;
}

.feature-card .feature-description {
    padding: 0 45px;

}

.feature-icon {
    height: 43px;
}

.feature-icon img {
    max-height: 43px;
}

.feature-title {
    color: #EC008D;
    text-align: center;
    font-family: Playfair;
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
    margin: 19px 0;
}

.feature-description {
    color: #EC008D;
    text-align: center;
    font-family: Poppins;
    font-size: 15px;
    font-style: normal;
    font-weight: 300;
    line-height: 17px;
}

/* Home */
.banner-section img {
    width: 100%;
    max-height: 426px;
    object-fit: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.history-home {
    margin: 86px 0;
}

.expertise-home {
    margin: 86px 0;
}

.sponsor-home {
    margin-bottom: 86px;
}

.title-home {
    color: #EC008D;
    font-family: Poppins;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.001px;
    text-transform: uppercase;
}

.history-home img {
    width: 100%;
    max-height: 376px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 30px;
    object-fit: contain;
}

.subtitle-home {
    color: #252525;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Playfair;
    font-size: 21px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    margin-bottom: 15px;
}

.history-home p {
    color: #252525;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.expertise-card {
    width: 278px;
    height: 278px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px;
    border-radius: 6px;
}

.card-image {
    filter: blur(2px) brightness(0.7);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.card-overlay-home {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0.1) 100%);
}

.card-border {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    z-index: 2;
}

.card-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    color: #EC008D;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Playfair;
    font-size: 27px;
    font-style: normal;
    font-weight: 900;
    line-height: 27px;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 5px;
    border: none;
    padding: 20px;
    width: 575px;
}

.modal-dialog.modal-xl {
    max-width: 1140px;
}

.modal-header {
    padding: 10px;
}

.modal-image {
    width: 100%;
    max-height: 195px;
    border-radius: 10px;
    object-fit: cover;
}

.modal .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1050;
    background-color: #fff;
    padding: 10px;
    border-radius: 50%;
    opacity: 1;
}

.modal-title {
    color: #000;
    font-family: Playfair;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
    line-height: 24px;
    margin: 30px 0 15px;
}

.modal-description {
    color: #000;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 20px;
}

.modal .btn-primary {
    border: 1px solid #000;
    border-radius: 0;
    padding: 15px;
    font-family: Poppins;
    gap: 10px;
    color: #000;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-color: transparent;
}

.modal .btn-primary:hover {
    background-color: #d0007c;
}

.container-sponsor {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

.list-sponsor {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
    margin-bottom: 60px;
}

.list-sponsor ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.list-sponsor li {
    margin: 0 40px;
    flex-shrink: 0;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.container-sponsor:hover .list-sponsor {
    animation-play-state: paused;
}

.sponsor-logo {
    max-height: 78px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .banner-section img {
        height: 300px;
        object-position: center center;
    }

    .history-home img {
        height: 219.032px;
    }

    .history-home {
        margin: 30px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .title-home {
        margin: 0;
    }

    .features-section {
        margin-left: 33px;
        margin-right: 33px;
    }

    section {
        margin: 0;
    }

    .subtitle-home {
        margin-top: 20px;
    }

    .section-2-maison {
        margin-top: 40px;
    }

    .section-3 {
        padding-left: 20px;
        padding-right: 20px;
    }

    #load-more-btn {
        margin-bottom: 80px;
    }

    .section-or-2 .pagination {
        margin-bottom: 40px!important;
    }

}

/* Joaillerie */
.owl-carousel {
    display: flex;
    align-items: flex-end;
    margin-top: 50px
}

.owl-stage {
    display: flex;
    align-items: flex-end;
    padding-left: 0px;
    padding-right: 0px;
}

.owl-item {
    display: flex;
    align-items: flex-end;
}

.owl-item.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.owl-carousel .item {
    border-radius: 3.28px;
    box-shadow: 0 8.071px 48.427px 0 rgba(139, 139, 139, 0.12);
    margin: 10px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 493px;
    transform: scale(0.8);
    opacity: 0.9;
    transform-origin: bottom;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

/* Add responsive breakpoints for the item size */
@media (max-width: 1400px) {
    .owl-carousel .item {
        max-width: 400px;
    }
}

@media (max-width: 1200px) {
    .owl-carousel .item {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .owl-carousel .item {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .owl-carousel .item {
        max-width: 250px;
    }
}

@media (min-width: 768px) {
	.space-right {
		padding-right: 25px;
	}

	.space-left {
		padding-left: 25px;
	}
	section:first-of-type {
	  	margin-top: 70px !important;
	}

}

@media (max-width: 576px) {
    .owl-carousel .item {
        max-width: 200px;
    }
}

.owl-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Center item bigger */
.owl-carousel .center .item {
    transform: scale(1);
    opacity: 1;
    border-radius: 3.28px;
    box-shadow: 0 8.071px 48.427px 0 rgba(139, 139, 139, 0.12);
}

.section-1 {
    margin: 85px 0;
}

.section-2 {
    margin: 85px 0;
}

/* Jewelry Carousel Styles */
.main-carousel {
    margin-bottom: 20px;
    margin-top: 0px;
}

.main-carousel .item {
    text-align: center;
    padding: 0px;
    border-radius: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.main-carousel .owl-item {
    max-height: 332px;
}

.main-carousel img {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 0px !important;
}

.thumbnail-carousel {
    margin-top: 20px;
}

.thumbnail-carousel .item {
    text-align: center;
    padding: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    width: 100% !important;
}

.thumbnail-carousel .owl-item {
    width: 100% !important;
}

.thumbnail-carousel .item.active {
    opacity: 1;
}

.thumbnail-carousel .item:hover {
    opacity: 1;
}

.thumbnail-carousel img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0px !important;
}

.thumbnail-carousel .item.active img {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    border-radius: 0px;
}

.section-2 .img-content-left {
    width: 100%;
    max-width: 210px;
    margin-top: 20px;
}

.section-3 {
    margin: 85px 0;
    border-radius: 6px;
}

.section-3 .container {
    box-shadow: 0 4px 24px 0 rgba(139, 139, 139, 0.12);
    padding: 0;
}

.section-3 img {
    width: 100%;
    max-height: 222px;
    object-fit: cover;
}

.section-3 .card-content {
    padding: 24px 80px;
    margin: 0 0;
    border-radius: 0 4px 4px 0;
    background: #FFF;
}

.custom-btn {
    border: 1px solid #252525;
    color: #252525;
    font-size: 16px;
    font-family: Poppins;
    font-weight: 700;
    word-wrap: break-word;
    padding: 15px;
    background: transparent;
}

.img-content-bijoux {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8.071px 48.427px 0 rgba(139, 139, 139, 0.12);
}

.container-masonry {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: 190px;
    margin: 0 auto;
    max-width: 100%;
    padding: 3rem 0;
}

.container-masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.container-masonry img:hover {
    transform: scale(1.02);
}

.item-1 {
    grid-column: 1 / span 4;
    grid-row: span 2;
}

.item-2 {
    grid-column: 5 / span 4;
    grid-row: 1;
}


.item-3 {
    grid-column: 9 / span 2;
    grid-row: 1;
}

.item-4 {
    grid-column: 5 / span 2;
    grid-row: 2;
}

.item-5 {
    grid-column: 7 / span 4;
    grid-row: 2;
}

.item-6 {
    grid-column: 1 / span 2;
    grid-row: 3;
}

.item-7 {
    grid-column: 3 / span 3;
    grid-row: 3;
}

.item-8 {
    grid-column: 6 / span 3;
    grid-row: 3;
}

.item-9 {
    grid-column: 9 / span 2;
    grid-row: 3;
}

@media (max-width: 992px) {
    .container-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .item-1,
    .item-4,
    .item-9 {
        grid-column: span 2;
    }

    .item-2,
    .item-3,
    .item-5,
    .item-6,
    .item-7,
    .item-8 {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .container-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .container-masonry>div {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Masonry Container - Dynamique et Responsive */
#masonry-container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 190px;
    margin: 0 auto;
    max-width: 100%;
    padding: 3rem 0;
}

/* Items masonry avec positionnement dynamique via CSS custom properties */
.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    
    /* Utilisation des custom properties pour le positionnement dynamique */
    grid-column: span var(--grid-col, 1);
    grid-row: span var(--grid-row, 1);
}

.masonry-item.hidden {
    display: none;
}

/* Patterns de base - peuvent être surchargés par les custom properties */
.masonry-item.pattern-1 { --grid-col: 2; --grid-row: 2; } /* Grande */
.masonry-item.pattern-2 { --grid-col: 1; --grid-row: 1; } /* Petite */
.masonry-item.pattern-3 { --grid-col: 1; --grid-row: 2; } /* Haute */
.masonry-item.pattern-4 { --grid-col: 1; --grid-row: 1; } /* Petite */
.masonry-item.pattern-5 { --grid-col: 2; --grid-row: 1; } /* Large */
.masonry-item.pattern-6 { --grid-col: 1; --grid-row: 1; } /* Petite */
.masonry-item.pattern-7 { --grid-col: 1; --grid-row: 2; } /* Haute */
.masonry-item.pattern-8 { --grid-col: 1; --grid-row: 1; } /* Petite */
.masonry-item.pattern-9 { --grid-col: 2; --grid-row: 1; } /* Large */
.masonry-item.pattern-10 { --grid-col: 1; --grid-row: 1; } /* Petite */
.masonry-item.pattern-11 { --grid-col: 1; --grid-row: 2; } /* Haute */
.masonry-item.pattern-12 { --grid-col: 2; --grid-row: 1; } /* Large */

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.masonry-item:hover img {
    transform: scale(1.05);
}



/* Responsive Design avec custom properties */
@media (max-width: 1200px) {
    #masonry-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-auto-rows: 160px;
    }
}

@media (max-width: 992px) {
    #masonry-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 150px;
        grid-gap: 15px;
    }
    
    /* Ajustement des patterns pour tablettes */
    .masonry-item.pattern-1,
    .masonry-item.pattern-5,
    .masonry-item.pattern-9,
    .masonry-item.pattern-12 { 
        --grid-col: 2; 
        --grid-row: 1; 
    }
    
    .masonry-item.pattern-3,
    .masonry-item.pattern-7,
    .masonry-item.pattern-11 { 
        --grid-col: 1; 
        --grid-row: 1; 
    }
}

@media (max-width: 768px) {
    #masonry-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    
    /* Pour mobile - patterns simplifiés */
    .masonry-item.pattern-1,
    .masonry-item.pattern-4,
    .masonry-item.pattern-7,
    .masonry-item.pattern-10 { 
        --grid-col: 2; 
        --grid-row: 1; 
    }
    
    .masonry-item { 
        --grid-col: 1; 
        --grid-row: 1; 
    }
	.reverse {
		flex-direction: column-reverse;
	}
	.section-3 .card-content {
		padding: 30px 20px;
	}
}

@media (max-width: 576px) {
    #masonry-container {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        padding: 2rem 0;
    }
    
    .masonry-item {
        --grid-col: 1 !important;
        --grid-row: 1 !important;
    }
}

/* Animation d'apparition pour les nouveaux éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item:not(.hidden) {
    animation: fadeInUp 0.6s ease forwards;
}

/* Bouton Afficher plus - Centré */
.custom-btn {
    border: 1px solid #252525;
    color: #252525;
    font-size: 16px;
    font-family: Poppins;
    font-weight: 700;
    padding: 15px 30px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 2rem auto 0 auto;
    display: block;
    width: fit-content;
}

.custom-btn:hover {
    background-color: #252525;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-btn:active {
    transform: translateY(0);
}

/* Container pour le centrage du bouton */
.d-flex.justify-content-center {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin: 0;
}

/* Loading state pour le bouton */
.custom-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.custom-btn.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

.mariage-section-1 img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.section-2-maison img {
    width: 100%;
    max-height: 376px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0px;
    object-fit: contain;
    border-radius: 6px;
}

.section-3-maison img {
    width: 100%;
    height: 380px;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: contain;
}

.section-3-maison .card {
    border-radius: 6px;
    background: #FFF6FB;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.11);
    border: none;
}

.or-carousel {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 3.191px;
    box-shadow: 0 4px 24px 0 rgba(139, 139, 139, 0.12);
    margin-bottom: 20px;
    overflow: hidden;
}

.or-carousel .owl-stage-outer {
    overflow: hidden;
}

.or-carousel .owl-stage {
    display: flex;
    align-items: center;
    width: 100%;
}

.or-carousel .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%!important;
    padding: 0;
    margin: 0;
}

.or-carousel img {
    display: block;
    width: 100%!important;
    height: 300px;
    object-fit: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
}

.or-carousel .owl-carousel {
    margin: 0;
    padding: 0;
}

.or-carousel li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.section-or-2 {
    position: relative;
}

.section-or-2 .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.section-or-2 .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.section-or-2 .owl-dot span {
    width: 10px;
    height: 10px;
    background: #D9D9D9;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.section-or-2 .owl-dot.active span {
    background: #EC008D;
    transform: scale(1.2);
}

.section-or-2 .owl-carousel {
    position: relative;
}

.text-price {
    color: #EC008D;
    font-family: Helvetica;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.section-or-2 .col-md-6 {
    margin-bottom: 50px;
}

.section-or-2 .pagination {
    margin-top: 20px;
    gap: 24px
}

.section-or-2 .page-numbers {
    display: flex;
    width: 29px;
    padding: 4px 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #979797;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}

.section-or-2 .page-numbers.active {
    color: #EC008D;
    background-color: #FFF6FB;
}

.pagination a {
    text-decoration: none;
    color: #979797;
}


.page-template-Joaillerie .section-1 .owl-item, 
.page-template-Joaillerie .section-1 .owl-item .item { 
    aspect-ratio: 1/0.75; 
} 
.page-template-Joaillerie .section-1 .owl-item.center, 
.page-template-Joaillerie .section-1 .owl-item.center .item { 
    aspect-ratio: 1/1; 
} 
 
.page-template-Joaillerie .section-2 .owl-stage { 
    padding: 0; 
} 
.page-template-Joaillerie .section-2 .owl-item .item { 
    transform: scale(1); 
    margin: 0; 
    padding: 0; 
    border-radius: 0; 
} 
.page-template-Joaillerie .section-2 .thumbnail-carousel .item.active img { 
    border: none; 
}

.custom-btn a {
    all: unset;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none!important;
    }
}  