/* ============================================
   CUSTOM CSS - BREIZH PUB
   Header: 1 rangée blanche (logo / search / liens) + 1 rangée noire (nav)
   ============================================ */

/* ===== FOND DU SITE (essai beige clair) =====
   Pour revenir au blanc : supprimer ce bloc (jusqu'à "FIN FOND DU SITE"). */
body {
  background-color: #faf7f1;
}

.product-miniature,
.card,
.product-miniature__card {
  background-color: #ffffff;
}

/* Cartes produits : coins arrondis (l'image est rognée aux coins) */
.product-miniature {
  border-radius: 16px;
}

.product-miniature__inner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(60, 40, 10, 0.08);
}

.card {
  border-radius: 16px;
}
/* ===== FIN FOND DU SITE ===== */

/* ===== RANGÉE BLANCHE ===== */
.navbar-top {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0 !important;
  overflow: visible;
  position: relative;
  z-index: 1100;
}

.navbar-top .container-fluid {
  padding: 0 20px !important;
}

.header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

/* LOGO - à gauche */
.header-logo-col {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 content !important;
  flex-basis: content !important;
  width: auto !important;
  margin-right: 30px !important;
}

#logo {
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
}

/* RECHERCHE - au centre, prend l'espace disponible */
/* displayTop contient le mega-menu (.ps-mainmenu) ET la searchbar (.order-2.ms-auto) */
/* On cache le mega-menu (on a déjà notre nav noire custom) et on ne garde que la searchbar */
.header-center-col {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 500px !important;
  margin: 0 30px !important;
  height: auto !important;
  min-height: 0 !important;
}

.header-center-col .ps-mainmenu {
  display: none !important;
}

.header-center-col .ps-searchbar--mobile {
  display: none !important;
}

.header-center-col > .order-2.ms-auto {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.header-center-col input[type="text"],
.header-center-col input[type="search"] {
  width: 100% !important;
}

/* DROITE - Contactez-nous / Langue / Devise / Connexion / Panier sur une ligne */
.header-right-col {
  display: flex !important;
  align-items: center !important;
  gap: 25px !important;
  flex: 0 0 content !important;
  flex-basis: content !important;
  width: auto !important;
  flex-wrap: nowrap !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
}

.header-right-col > * {
  display: flex !important;
  align-items: center !important;
}

/* CACHER TOUS LES AUTRES NAVBARS/MENUS GRIS (ancien menu PrestaShop) */
.navbar:not(.navbar-top):not(.navbar-horizontal-dark) {
  display: none !important;
  visibility: hidden !important;
}

.navbar-expand-md {
  display: none !important;
  visibility: hidden !important;
}

.ps_mainmenu_top {
  display: none !important;
  visibility: hidden !important;
}

#navbar-default {
  display: none !important;
  visibility: hidden !important;
}

.navbar-collapse {
  display: none !important;
  visibility: hidden !important;
}

/* ===== RANGÉE NOIRE - NAVIGATION ===== */
/* Fixe/sticky : reste visible en haut de l'écran pendant le scroll */
.navbar-horizontal-dark {
  background-color: #3a3a3a;
  margin: 0;
  padding: 0;
  border: none;
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-horizontal-dark .container-fluid {
  background-color: #3a3a3a;
  padding: 0;
  margin: 0;
  display: flex !important;
  justify-content: center !important;
}

.horizontal-menu-dark {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #3a3a3a;
}

.horizontal-menu-dark .nav-item {
  margin: 0;
  padding: 0;
  display: inline-block;
  position: relative;
}

/* Séparateur vertical entre chaque catégorie (sauf après la dernière).
   Réalisé avec une bordure (et non un fond de 1px) pour qu'il reste visible
   quel que soit le zoom du navigateur (ex. 90 %). */
.horizontal-menu-dark .nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.horizontal-menu-dark .nav-link {
  display: block;
  padding: 15px 20px;
  color: #ffffff;
  background-color: #3a3a3a;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.horizontal-menu-dark .nav-link:hover {
  border-bottom-color: #7bc043;
  color: #7bc043;
}

/* ===== SOUS-MENU DÉROULANT (ex: PAPETERIE) ===== */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #3a3a3a;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 100;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown li {
  margin: 0;
  padding: 0;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-dropdown a:hover {
  color: #7bc043;
  background-color: rgba(255, 255, 255, 0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .header-row {
    flex-wrap: wrap !important;
  }
  .header-center-col {
    order: 3;
    max-width: 100% !important;
    margin: 10px 0 !important;
  }
  .horizontal-menu-dark {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* ============================================
   INTERFACE "SIGNALÉTIQUE & GOODIES"
   Même identité Breizh Pub (rouge/bleu du logo, fond clair),
   mais mise en page bien marquée pour se distinguer
   du catalogue textile une fois le bandeau basculé.
   ============================================ */

#home-content-signaletique {
  background-color: #f7f7f8;
  padding: 0 0 65px;
  margin: 0 -20px;
  border-top: 4px solid #cc2027;
}

/* --- Bannière visuelle en haut de la section --- */
.bp-hero-banner {
  width: 100%;
  line-height: 0;
  margin-bottom: 45px;
  background-color: #1b3a6b;
}

.bp-hero-banner__img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.bp-placeholder-banner {
  max-width: 900px;
  margin: 0 auto 45px;
  padding: 0 20px;
  text-align: center;
}

.bp-placeholder-banner h2 {
  color: #1b3a6b;
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
}

.bp-placeholder-banner h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: #cc2027;
  margin: 16px auto 0;
  border-radius: 2px;
}

.bp-placeholder-banner p {
  color: #555b66;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

#home-content-signaletique .bp-featured-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#home-content-signaletique .bp-featured-categories h2 {
  color: #1b3a6b;
  text-align: center;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

#home-content-signaletique .bp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

#home-content-signaletique .bp-cat-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #e2e4e8;
  box-shadow: 0 2px 6px rgba(20, 30, 50, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#home-content-signaletique .bp-cat-card:hover {
  transform: translateY(-4px);
  border-color: #cc2027;
  box-shadow: 0 8px 16px rgba(20, 30, 50, 0.12);
}

#home-content-signaletique .bp-cat-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1b3a6b 0%, #274c8a 100%);
}

#home-content-signaletique .bp-cat-overlay {
  padding: 16px;
  text-align: center;
}

#home-content-signaletique .bp-cat-card-title {
  color: #1b3a6b;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 4px;
}

#home-content-signaletique .bp-cat-card-sub {
  color: #cc2027;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 992px) {
  #home-content-signaletique .bp-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-hero-banner__img {
    max-height: 260px;
  }
}

/* ============================================
   CALCULATEUR DE PRIX — BÂCHE / BANDEROLE
   Fiche produit id 1106 — devis instantané.
   Identité Breizh Pub (rouge #cc2027 / bleu #1b3a6b).
   ============================================ */

.bp-bache-calculator {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: 25px 0 30px;
  padding: 25px;
  background-color: #f7f7f8;
  border: 1px solid #e2e4e8;
  border-radius: 12px;
}

.bp-bache-calculator__title {
  color: #1b3a6b;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 22px 0 12px;
}

.bp-bache-calculator__main .bp-bache-calculator__title:first-child {
  margin-top: 0;
}

/* --- Grille de formats --- */
.bp-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bp-format-card {
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  border: 2px solid #e2e4e8;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-format-card:hover {
  border-color: #cc2027;
}

.bp-format-card--active {
  border-color: #1b3a6b;
  box-shadow: 0 0 0 2px rgba(27, 58, 107, 0.15);
}

.bp-format-card__preview {
  height: 46px;
  margin: 0 auto 10px;
  width: 70%;
  background-color: #eef1f6;
  border: 1px dashed #b7bfcc;
  border-radius: 4px;
}

.bp-format-card__preview--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1b3a6b;
  background-color: #eef1f6;
  border-style: solid;
}

.bp-format-card__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #33363d;
  line-height: 1.4;
}

.bp-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background-color: #cc2027;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

/* --- Orientation / Coupe --- */
.bp-orientation-grid {
  display: flex;
  gap: 10px;
}

.bp-orientation-btn {
  flex: 1;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 2px solid #e2e4e8;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33363d;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bp-orientation-btn:hover:not(:disabled) {
  border-color: #cc2027;
}

.bp-orientation-btn--active {
  border-color: #1b3a6b;
  color: #1b3a6b;
  background-color: #eef1f6;
}

.bp-orientation-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Champs largeur/hauteur/quantité --- */
.bp-bache-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e4e8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #33363d;
}

.bp-bache-input:focus {
  outline: none;
  border-color: #1b3a6b;
}

/* --- Options (checkboxes) --- */
.bp-option-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #33363d;
  cursor: pointer;
}

.bp-option-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.bp-bache-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #7a808c;
  font-style: italic;
}

/* --- Zone d'upload du fichier d'impression --- */
.bp-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  background-color: #ffffff;
  border: 2px dashed #b7bfcc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bp-file-dropzone:hover,
.bp-file-dropzone--dragover {
  border-color: #cc2027;
  background-color: #fff6f6;
}

.bp-file-dropzone--filled {
  border-style: solid;
  border-color: #1b3a6b;
  background-color: #eef1f6;
}

.bp-file-dropzone__icon {
  font-size: 1.6rem;
  color: #1b3a6b;
}

.bp-file-dropzone__text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1b3a6b;
}

.bp-file-dropzone__hint {
  font-size: 0.75rem;
  color: #7a808c;
}

.bp-file-dropzone__filename {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cc2027;
  word-break: break-all;
}

/* --- Panneau récapitulatif --- */
.bp-bache-calculator__recap {
  background-color: #1b3a6b;
  color: #ffffff;
  border-radius: 10px;
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.bp-recap-header {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.bp-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.bp-recap-row span:last-child {
  text-align: right;
  font-weight: 600;
  color: #ffffff;
}

.bp-recap-row--total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.15rem;
}

.bp-recap-row--total span {
  color: #ffffff;
  font-weight: 800;
}

.bp-recap-row--total span:first-child {
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .bp-bache-calculator {
    grid-template-columns: 1fr;
  }
  .bp-bache-calculator__recap {
    position: static;
  }
  .bp-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
