/* ============================================================
   L'Orfèvre des Beaux-Arts — Custom CSS
   Palette : burgundy #8B1A1A | gold #C8952A | cream #F5EDD9
   ============================================================ */

:root {
  --color-burgundy: #8B1A1A;
  --color-gold:     #C8952A;
  --color-gold-dark:#A07520;
  --color-cream:    #F5EDD9;
  --color-text:     #2C1810;
}

@font-face {
    font-family: 'ITCBenguiat';
    src: url('/assets/fonts/ITCBenguiat.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3 {
  font-family: 'ITCBenguiat';
}

body {
  font-family: 'Open Sans', serif;
  background-color: #fff;
  color: var(--color-text);
}

.pagination .page-item.active .page-link {
    background-color: #8B1A1A !important;
    border-color: #8B1A1A !important;
    color: #fff !important;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg, 
    rgba(160, 117, 31, 0.70) 0%,    /* Gauche opaque */
    rgba(245,237,217,0.4) 50%,    /* Centre transparent */
    transparent 100%               /* Droite image visible */
  );
  z-index: 1;
}

.hero-home {
  position: relative;                    /* ✅ Positionnement relatif */
  height: 420px;                         /* ✅ Hauteur fixe */
  background-image: url('/assets/img/hero-chocolats.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;                      /* ✅ Coupe le débordement */
  margin: 0;
  padding: 0;
}

.hero-home__content {
  position: relative;                    /* ✅ Relatif à hero-home */
  z-index: 2;
  padding: 2rem 2.5rem;                  /* ✅ Padding contenu */
  max-width: 480px;                      /* ✅ Largeur max */
  margin-left: 3rem;                     /* ✅ Marge gauche fixe */
  margin-right: auto;                    /* ✅ Ne déborde pas droite */
}

.hero-home__title {
  color: #fff;
  text-shadow: 
    0 1px 3px rgba(0,0,0,0.4),
    0 0 1px rgba(255,255,255,0.8);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1.2rem 0;
  letter-spacing: 0.01em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-home {
    height: 280px;
  }
  .hero-home__content {
    margin-left: 1.5rem;
    padding: 1.5rem 1.8rem;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-home {
    height: 240px;
  }
  .hero-home__content {
    margin-left: 1rem;
    padding: 1.2rem 1.5rem;
  }
}

/* Navbar */
.navbar-orfevre {
  margin-bottom: 0 !important;
}


/* ---- NAVBAR ---- */
.navbar-orfevre {
  background-color: var(--color-burgundy);
}
/* Cadre du bouton burger */
.navbar-orfevre .navbar-toggler {
  border-color: var(--color-gold) !important; /* Couleur du cadre */
  border-width: 2px;
  border-radius: 4px;
}

/* Focus : supprime le halo bleu Bootstrap et applique le tien */
.navbar-orfevre .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(200, 149, 42, 0.4);
}

/* Icône burger : remplace le SVG Bootstrap par un SVG coloré en gold */
.navbar-orfevre .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='%23C8952A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-orfevre .nav-link:hover {
  color: var(--color-gold) !important;
}

.navbar-orfevre .nav-link {
  color: #FFF !important;
}

.btn-cart {
  background: transparent;
  color: #fff;
  border: none;
}
.btn-cart:hover { color: var(--color-gold); }

/* ---- MENU MOBILE PLEIN ÉCRAN ---- */
@media (max-width: 991px) {

  /* Le menu devient un overlay fixe */
  #mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-burgundy);
    z-index: 1055;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    /* Override le collapse Bootstrap */
    visibility: hidden;
  }

  #mainNav.show {
    transform: translateX(0);
    visibility: visible;
  }

  /* Liens plus grands en mobile */
  #mainNav .nav-link {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(200, 149, 42, 0.3);
    color: #fff !important;
  }

  #mainNav .nav-link:hover {
    color: var(--color-gold) !important;
    border-bottom-color: var(--color-gold);
  }

  /* Panier dans le menu mobile */
  #mainNav .btn-cart {
    font-size: 1.4rem;
    padding: 0.8rem 0;
    display: block;
  }

  /* Bouton ✕ fermeture — positionné en haut à gauche */
  .navbar-toggler.is-open {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
  }

  /* Icône ✕ quand ouvert */
  .navbar-toggler.is-open .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='%23C8952A' stroke-linecap='round' stroke-width='2.5' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e") !important;
  }
}


/* ---- BOUTONS ---- */
.btn-gold {
  background-color: var(--color-gold);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .55rem 1.4rem;
  border-radius: 3px;
}
.btn-gold:hover {
  background-color: var(--color-gold-dark);
  color: #fff;
}
.btn-burgundy {
  background-color: var(--color-burgundy);
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .55rem 1.4rem;
  border-radius: 3px;
}
.btn-burgundy:hover { background-color: #6e1515; color: #fff; }


/* ================================================
   HERO CATÉGORIES — image fond + titre bas gauche
   ================================================ */
.hero-categorie {
  position: relative;
  height: 280px;                        /* Plus petit que le hero home */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;               /* Titre collé en bas */
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Dégradé sombre bas → transparent haut */
.hero-categorie::before {
  content: '';
  position: absolute;
  inset: 0;                            /* top/right/bottom/left: 0 */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,           /* Bas sombre */
    rgba(0, 0, 0, 0.15) 50%,          /* Milieu léger */
    transparent 100%                   /* Haut transparent */
  );
  z-index: 1;
}

.hero-categorie__content {
  position: relative;
  z-index: 2;                          /* Au-dessus du dégradé */
  padding: 0 0 2rem 3rem;             /* Collé en bas gauche */
  width: 100%;
}

.hero-categorie__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 0 2px rgba(0,0,0,0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-categorie {
    height: 200px;
  }
  .hero-categorie__content {
    padding: 0 0 1.5rem 1.5rem;
  }
  .hero-categorie__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-categorie {
    height: 160px;
  }
  .hero-categorie__content {
    padding: 0 0 1rem 1rem;
  }
}


/* ---- CARDS PRODUIT ---- */
/* Photo produit card : 420×360 px (carré légèrement portrait) */
.card-produit {
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.card-produit:hover { box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.card-produit .card-img-top {
  height: auto; aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}
.card-produit .card-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-produit .card-subtitle {
  font-size: .78rem;
  color: #888;
}
.card-produit .prix {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ---- FICHE PRODUIT ---- */
/* Photo principale fiche produit : 720×600 px */
.fiche-produit-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}
@media (min-width: 992px) { .fiche-produit-img { height: 500px; } }

.creneau-dispo {
  color: var(--color-gold);
  font-weight: 600;
  font-size: .9rem;
}
.prix-principal {
  font-size: 2rem;
  font-weight: 700;
}

/* ---- SECTION TEXTE ACCUEIL ---- */
.section-feve {
  background-color: var(--color-cream);
  padding: 4rem 0;
}
.box-feve-texte {
  background-color: var(--color-gold);
  color: #fff;
  border-radius: 8px;
  padding: 2rem;
}

/* ---- QUALITE BADGES ---- */
.qualite-section { padding: 3rem 0; background: #fff; }
.qualite-card {
  border: 1px solid #e8e0d4;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
}
.qualite-card img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 1rem; }
.qualite-card h6 { font-weight: 700; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.qualite-card p { font-size: .8rem; color: #555; margin: 0; }

/* ---- CLIC & COLLECT CARD (catégorie) ---- */
.card-clic-collect {
  background-color: var(--color-gold);
  color: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  min-height: 340px;
}
.card-clic-collect h5 { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }

/* ---- PANIER ---- */
.panier-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.total-commande { font-size: 1.4rem; font-weight: 700; }

/* ---- NEWSLETTER ---- */
/* Image background newsletter : 1440×400 px */
.newsletter-section {
  background-image: url('/assets/img/bg-newsletter.webp');
  background-size: cover;
  background-position: center;
}
.newsletter-box {
  background: rgba(255,255,255,.92);
  max-width: 560px;
}

/* ---- FOOTER ---- */
.footer-bar {
  background-color: var(--color-gold);
}

/* ---- ADMIN ---- */
.admin-sidebar {
  min-height: 100vh;
  background-color: var(--color-burgundy);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.8);
  padding: .6rem 1.2rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.badge-statut-en_attente     { background-color: #ffc107; color:#000; }
.badge-statut-en_preparation { background-color: #0d6efd; color:#fff; }
.badge-statut-retiree        { background-color: #198754; color:#fff; }
.badge-statut-annulee        { background-color: #dc3545; color:#fff; }

/* ---- RESPONSIVE AJUSTEMENTS ---- */
@media (max-width: 767px) {
  .hero-home { min-height: 260px; }
  .card-produit .card-img-top { height: auto; aspect-ratio: 4 / 3; }
  .prix-principal { font-size: 1.5rem; }
}

/* ---- MODALE NEWSLETTER ---- */
.newsletter-modal .modal-dialog {
  max-width: 480px;
}

.newsletter-modal-content {
  border-radius: 8px;
  border: 1px solid rgba(200, 149, 42, 0.4); /* gold léger */
  background: radial-gradient(circle at top left, #F5EDD9 0%, #ffffff 45%, #fff8e8 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.newsletter-modal .modal-header {
  padding-bottom: 0.5rem;
}

.newsletter-modal .modal-title {
  font-family: 'ITCBenguiat', serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-burgundy);
}

.newsletter-modal .modal-body {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.newsletter-modal .modal-footer {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.newsletter-modal .btn-close {
  filter: invert(22%) sepia(24%) saturate(1297%) hue-rotate(334deg) brightness(90%) contrast(94%);
}

/* =============================================
   PAGE ACCUEIL MAQUETTE
   ============================================= */

/* ---- HERO BOUTIQUE (photo de la devanture) ---- */
.hero-boutique {
  position: relative;
  height: 420px;
  background-image: url('/assets/img/devanture-boutique.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/*.hero-boutique__overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 26, 0.45);  
  z-index: 1;
}*/

.hero-boutique__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem 2rem;
}

.hero-boutique__title {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-boutique { height: 280px; }
  .hero-boutique__title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-boutique { height: 220px; }
}

/* ---- INTRO ---- */
.intro-orfevre {
  background-color: #fff;
}

.intro-orfevre h2 {
  color: var(--color-text);
}

.intro-orfevre__text {
  max-width: 680px;
  font-size: .97rem;
  color: #555;
  line-height: 1.7;
}

/* ---- DÉGUSTATION ---- */
.section-degustation {
  background-color: #fff;
}

.degustation-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---- ATELIER DE CRÉATION ---- */
.section-atelier {
  position: relative;
  height: 360px;
  background-image: url('/assets/img/atelier-creation.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-atelier__overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 149, 42, 0.65); /* gold semi-transparent */
  z-index: 1;
}

.section-atelier__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 680px;
}

.section-atelier__title {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.section-atelier__text {
  color: #fff;
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .section-atelier { height: 260px; }
}

/* ---- BOUTIQUE ---- */
.section-boutique {
  background-color: #fff;
}

.boutique-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}
