@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --primary-color: #6b213c;       /* Mauve profond / prune */
    --primary-light: #8e3253;       /* Prune plus clair */
    --primary-rgb: 107, 33, 60;
    --secondary-color: #f6ccd5;     /* Rose poudré doux */
    --secondary-light: #fdf5f6;     /* Blanc rosé très doux */
    --accent-color: #dfb36c;        /* Or délicat */
    --dark-text: #2d171e;           /* Prune très sombre pour le texte */
    --light-text: #ffffff;
    --body-bg: #fffafb;             /* Fond crème rosé */
    --card-bg: #ffffff;
    --border-color: #f1e2e5;
    
    --font-title: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Styles */
body {
    background-color: var(--body-bg);
    color: var(--dark-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-light);
}

/* Custom Buttons */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 1px solid var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.15);
}

.btn-custom-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-custom-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Navbar Customization */
.navbar-custom {
    background-color: rgba(255, 250, 251, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 !important;
    transition: var(--transition);
}

.navbar-custom .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 !important;
    margin: 0 !important;
    height: 90px;
}

.navbar-custom .navbar-brand .navbar-logo {
    height: 100%;
    width: auto;
    transition: transform 0.4s ease;
}

.navbar-custom .navbar-brand:hover .navbar-logo {
    transform: rotate(30deg);
}

.navbar-custom .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark-text) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(107, 33, 60, 0.05);
}

.navbar-custom .nav-link.disabled-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.navbar-custom .nav-link.disabled-custom:hover {
    background-color: transparent;
    color: var(--dark-text) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 1rem 0 6rem;
    background: linear-gradient(135deg, var(--secondary-light) 0%, #fff0f3 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(246, 204, 213, 0.4) 0%, transparent 70%);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(107, 33, 60, 0.12);
    border: 8px solid white;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-wrapper img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(107, 33, 60, 0.18);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-badge i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Feature Section */
.section-padding {
    padding: 1.5rem 0;
}

.section-title-wrapper {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Info Cards */
.concept-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding:1.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(107, 33, 60, 0.06);
    border-color: rgba(107, 33, 60, 0.1);
}

.concept-card:hover::before {
    opacity: 1;
}

.concept-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.concept-card:hover .concept-icon {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: scale(1.05);
}

/* Showcase Section */
.category-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: none;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 23, 30, 0.85) 0%, rgba(45, 23, 30, 0.2) 60%, rgba(45, 23, 30, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.category-title {
    color: var(--light-text);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.category-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(107, 33, 60, 0.95) 0%, rgba(107, 33, 60, 0.4) 70%, rgba(107, 33, 60, 0.1) 100%);
}

.category-card:hover .category-desc {
    max-height: 80px;
    margin-top: 0.5rem;
}

/* Fabrics and Linings Tab Component */
.fabrics-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(107, 33, 60, 0.04);
}

.fabric-nav-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.fabric-nav-pills .nav-link {
    background: transparent;
    color: var(--dark-text);
    font-family: var(--font-body);
    font-weight: 600;
    border: 1px solid var(--border-color);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    transition: var(--transition);
}

.fabric-nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.fabric-item-card {
    background-color: var(--secondary-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.fabric-item-card:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 10px 25px rgba(107, 33, 60, 0.05);
    border-color: var(--secondary-color);
}

.fabric-color-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid white;
}

.fabric-pattern-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid white;
    background-size: cover;
    background-position: center;
}

.fabric-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.fabric-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1326 100%);
    color: var(--light-text);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 204, 213, 0.15) 0%, transparent 75%);
    z-index: 1;
}

.cta-section h2 {
    color: var(--light-text);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-custom-outline {
    border-color: var(--light-text);
    color: var(--light-text);
}

.cta-section .btn-custom-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Footer Styles */
.footer-custom {
    background-color: #241318;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    border-top: 1px solid #331d24;
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #331d24;
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .section-padding {
    padding: 0.25rem 0;
    }
    .section-title-wrapper {
        margin-bottom: 1rem;
    }
    .hero-section {
        padding: 1rem 0 4rem;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-wrapper {
        margin-top: 4rem;
    }
    .hero-badge {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        margin-top: -30px;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        z-index: 3;
    }
}

/* Gallery Page Enhancements */
.gallery-grid {
    margin-top: 2rem;
}

.gallery-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 33, 60, 0.08);
    border-color: rgba(107, 33, 60, 0.12);
}

.gallery-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Square ratio as requested */
    overflow: hidden;
    background-color: #f7f3f4;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img-container img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border: 1px solid var(--border-color);
}

/* Elegant Carousel controls */
.gallery-card .carousel-control-prev,
.gallery-card .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 0.75rem;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-card:hover .carousel-control-prev,
.gallery-card:hover .carousel-control-next {
    opacity: 1;
}

.gallery-card .carousel-control-prev:hover,
.gallery-card .carousel-control-next:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-card .carousel-control-prev-icon,
.gallery-card .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(310deg); /* Style the arrows with mauve tint */
    width: 1rem;
    height: 1rem;
}

/* Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background-color: transparent;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(107, 33, 60, 0.02);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.15);
}

/* Info Button (Gallery) */
.btn-info-circle {
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    width: 52px;
    flex-direction: row-reverse;
}

.btn-info-circle .btn-info-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
    margin-right: 0;
}

.btn-info-circle:hover {
    width: auto;
    border-radius: 26px;
    padding: 0 1.2rem 0 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

.btn-info-circle:hover .btn-info-label {
    max-width: 150px;
    opacity: 1;
    margin-right: 0.5rem;
}

/* Article Modal */
#articleModal .modal-content {
    box-shadow: 0 20px 60px rgba(107, 33, 60, 0.12);
}

#articleModal .btn-close {
    font-size: 0.8rem;
    padding: 0.5rem;
}

#modalCarousel .carousel-control-prev-icon,
#modalCarousel .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(310deg);
}

