/* Import Google Fonts for elegant typography */
@import url('');

/* Root variables for colors */
:root {
    --primary-color:#541116;
    --secondary-color: #92B9BD;
    --accent-color: #E3A23B;
    --success-color: #43792A;
    --white: #FFFFFF;
    --dark: #333333;
    --gray: #6c757d;
    --gray-medium: #6c757d;
    --gray-dark: #fffdfd;
    --light-gray: #E9ECEF;
    --color-cream: #F5F5DC;
    --color-deep-red: #fefefe;
}


/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    margin: 0;
    padding: 0;
    background-color: #fDF8ED;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #541116;
    padding: 1rem 0;
    min-height: 5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.nav-collapse {
    justify-content: flex-end;
}
.navbar .container {
    width: 100%;
}
.navbar .container-fluid {
    width: 100%;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-deep-red) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-dark) !important;
    transition: opacity 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
    background: transparent;
            border: none;
            cursor: pointer;
            padding: 0.5rem 1rem;
}

.nav-link:hover {
    opacity: 0.7;
}
.navbar-brand img {
    width: 50px;
    height: 50px;
}

.nav-link.active {
    color: var(--color-deep-red) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--color-deep-red);
    padding-bottom: 0.25rem;
}



/* Hero Section */
.hero-content {
    text-align: center;
    color: var(--white);
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 0.875rem 2.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(172, 57, 49, 0.3);
}

.btn-primary:hover {
    background-color: #8B2E26;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(172, 57, 49, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 185, 189, 0.3);
}

/* Sections */

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--dark);
    text-align: center;
    letter-spacing: -0.01em;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Collections */
.collection-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    border: 1px solid var(--light-gray);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.collection-card img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.collection-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Values */
.values-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Shop */
.shop-section {
    padding: 5rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
}


/* About */
.about-section {
    padding: 5rem 0;
}

/* Contact */
.contact-section {
    padding: 5rem 0;
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title, .page-title {
        font-size: 2.2rem;
    }
    .collection-card, .product-card {
        margin-bottom: 2rem;
    }
    .filter-buttons {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
     .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .category-title {
    font-size: 0.9rem;
  }
  .gallery {
    height: 250px;
  }
  .slide img {
    height: 100%;
  }
}
  @media (max-width: 991.98px) {
  .navbar-collapse {
 
    background-color: #541116; 
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  .navbar-nav {
    width: 100%;
  }
  .nav-link
    {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }
    .navbar-nav.ms-lg-auto {
        margin-top: 1rem !important;
        justify-content: center !important;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }  
            
}
@media (min-width: 992px) {
            .navbar-collapse {
                display: flex !important;
                align-items: center;
            }
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Additional styles for new sections */
.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.object-cover {
    object-fit: cover !important;
}

.z-10 {
    z-index: 10 !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.tracking-widest {
    letter-spacing: 0.25em !important;
}

.display-1 {
    font-size: 5rem !important;
}

.max-w-2xl {
    max-width: 42rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.aspect-square {
    aspect-ratio: 1 / 1 !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

/* Grille des catégories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

/* Carte d’une catégorie */
.category-card {
    width :100%;
  text-align: center;
  overflow : hidden;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for all category cards */
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Images des catégories */
.category-img {
    width :100%;
    height : 380px; 
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 0.6s ease;
  
}


/* Titres des catégories */
.category-title {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}
/* Galerie défilante dans les cartes de catégories */
.gallery {
  min-height: 250px;
  height: 380px;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  position: relative;
}
.gallery-track {
  display: flex;
  width : 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.gallery img {
  width: 100%;
  height : 380px; 
  object-fit: cover;
  flex-shrink: 0;
  transform: scale(1.1);
  
}
.category-card:hover .slide img {
  transform: scale(1);
}
.slide {
  flex: 0 0 100%;
  height : 100%; 
  position: relative;
}
.slide img {
  width: 100%;
  height : 100%; 
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  transform: scale(1);
  
}
/* DARK MODE GLOBAL*/

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/*  NAVBAR */

body.dark-mode .navbar {
    background-color: #1c0d0d;
}

body.dark-mode .nav-link {
    color: #ffffff !important;
}

body.dark-mode .nav-link.active {
    color: #E3A23B !important;
    border-bottom: 2px solid #E3A23B;
}

/* TITRES GLOBAUX (GRANDS TITRES)*/

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode .section-title,
body.dark-mode .page-title {
    color: #E3A23B;
}

/* Titres secondaires */
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
    color: #ffffff;
}

/* TEXTE GLOBAL */

body.dark-mode p,
body.dark-mode li,
body.dark-mode span {
    color: #ffffff;
}

/* CARTES (PRODUITS, CATÉGORIES, COLLECTIONS)= */

body.dark-mode .product-card,
body.dark-mode .category-card,
body.dark-mode .collection-card {
    background-color: #1b1b1b;
    border-color: #2f2f2f;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

body.dark-mode .product-title,
body.dark-mode .category-title {
    color: #ffffff;
}

body.dark-mode .product-description {
    color: #ffffff;
}

/* Prix */
body.dark-mode .price,
body.dark-mode .product-price {
    color: #E3A23B;
}

/* BOUTONS*/

body.dark-mode .add-to-cart {
    background-color: #E3A23B;
    color: #111;
}

body.dark-mode .add-to-cart:hover {
    background-color: #f1b84a;
}

body.dark-mode .details-btn {
    border-color: #E3A23B;
    color: #E3A23B;
}

body.dark-mode .details-btn:hover {
    background-color: #E3A23B;
    color: #111;
}

/* PAGE ACCUEIL
   Titres : "Créer avec passion", "Porteur d’héritage"*/

body.dark-mode .hero-title,
body.dark-mode .hero-content h1,
body.dark-mode .hero-content h2 {
    color: #E3A23B;
}

body.dark-mode .hero-content p,
body.dark-mode .hero-subtitle {
    color: #ffffff;
}

/*
   PAGE À PROPOS
   Titres : "Façonné avec passion", "Héritage"
*/

body.dark-mode .about-section h2,
body.dark-mode .about-section h3 {
    color: #E3A23B;
}

body.dark-mode .about-section p,
body.dark-mode .about-section li {
    color: #ffffff;
}

/* PAGE CONTACT
   Titres : "Envoyer un message", "Visiter notre atelier"
   
/* CLASSES COULEURS PERSONNALISÉES (JAUNE / BLANC) */

/* Texte JAUNE */
body.dark-mode .jaune {
    color: #E3A23B !important;
}

/* Texte BLANC */
body.dark-mode .blanc {
    color: #ffffff !important;
}
body.dark-mode p.jaune,
body.dark-mode h1.jaune,
body.dark-mode h2.jaune {
    color: #E3A23B;
}

body.dark-mode p.blanc,
body.dark-mode span.blanc {
    color: #ffffff;
}
