/* ==========================================================================
   VFM SERVICES - STYLES SPÉCIFIQUES PAGE CATALOGUE (DESIGN PEDROLLO OFFICIAL)
   ========================================================================== */
@import url('css/styles.css');

.catalogue-header,
.catalogue-hero-header {
  background: radial-gradient(circle at 50% 0%, rgba(0, 150, 214, 0.25) 0%, transparent 70%),
              linear-gradient(180deg, #07121E 0%, #0B4C8C 100%);
  color: #FFFFFF;
  padding: 8.5rem 0 3.5rem 0;
  text-align: center;
}

.search-bar-wrapper {
  max-width: 650px;
  margin: 2rem auto 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.2rem;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-main);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0B4C8C;
  box-shadow: 0 0 0 4px rgba(11, 76, 140, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LAYOUT PEDROLLO : SIDEBAR FILTRES GAUCHE + GRILLE 4 COLONNES
   ========================================================================== */
.pedrollo-catalogue-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* FOND BLEU TRANSPARENT ULTRA ÉLÉGANT */
.pedrollo-catalogue-bg {
  background: linear-gradient(180deg, rgba(0, 150, 214, 0.08) 0%, rgba(11, 76, 140, 0.12) 100%) !important;
}

/* SIDEBAR GAUCHE */
.pedrollo-sidebar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pedrollo-sidebar-section {
  margin-bottom: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.pedrollo-sidebar-section:last-child {
  margin-bottom: 0;
}

.pedrollo-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1D3176;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #EDF2F7;
}

/* SECTEURS D'UTILISATION (ICÔNES EN GRILLE) */
.pedrollo-sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pedrollo-sector-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 0.25rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}

.pedrollo-sector-btn .material-symbols-outlined {
  font-size: 1.35rem;
  color: #0B4C8C;
}

.pedrollo-sector-btn:hover,
.pedrollo-sector-btn.active {
  background: #0B4C8C;
  border-color: #0B4C8C;
  color: #FFFFFF;
}

.pedrollo-sector-btn:hover .material-symbols-outlined,
.pedrollo-sector-btn.active .material-symbols-outlined {
  color: #FFFFFF;
}

/* TYPES DE PRODUIT (CHECKBOXES & ACCORDÉON) */
.pedrollo-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pedrollo-type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pedrollo-type-item:hover,
.pedrollo-type-item.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D3176;
}

.pedrollo-type-item .count-badge {
  font-size: 0.75rem;
  background: #E2E8F0;
  color: #475569;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}

.pedrollo-type-item.active .count-badge {
  background: #1D3176;
  color: #FFFFFF;
}

/* ==========================================================================
   GRILLE PRINCIPALE 4 COLONNES DE PRODUITS
   ========================================================================== */
.pedrollo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pedrollo-grid .product-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* CARTE PRODUIT STYLE MODERNE SQUIRCLE (CONFORME À LA MAQUETTE USER) */
.product-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 95, 164, 0.14);
  border-color: #CBD5E1;
}

.product-card__image-container {
  height: 195px;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 40%, #F8FAFC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  border-bottom: 1px solid #F1F5F9;
}

.product-card__image {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

.product-card__body {
  padding: 1.25rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #005FA4;
  background: #EBF5FF;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.product-card__desc,
.product-card p {
  font-size: 0.83rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6rem;
  flex-grow: 1;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: none;
}

/* ==========================================================================
   PAGINATION DESIGN PILULE OVALE (CONFORME À LA MAQUETTE USER)
   ========================================================================== */
.pedrollo-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
}

.pedrollo-page-btn {
  min-width: 54px;
  height: 34px;
  padding: 0 1rem;
  border-radius: 50px;
  border: 1.2px solid #D0DFEE;
  background: #FFFFFF;
  color: #1A365D;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.pedrollo-page-btn:hover {
  background: #F8FAFC;
  border-color: #1A365D;
  color: #1A365D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.12);
}

.pedrollo-page-btn.active {
  background: #1A365D;
  color: #FFFFFF;
  border-color: #1A365D;
  box-shadow: 0 6px 18px rgba(26, 54, 93, 0.35);
}

.pedrollo-page-dots {
  color: #94A3B8;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 0.35rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .pedrollo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .pedrollo-catalogue-container {
    grid-template-columns: 1fr;
  }
  .pedrollo-sidebar {
    position: static;
  }
  .pedrollo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .pedrollo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .pedrollo-sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pedrollo-pagination-wrapper {
    gap: 0.35rem !important;
    padding: 1.5rem 0.25rem 0 0.25rem !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
  .pedrollo-page-btn {
    min-width: 36px !important;
    height: 34px !important;
    padding: 0 0.4rem !important;
    font-size: 0.8rem !important;
  }
  .pedrollo-page-dots {
    padding: 0 0.15rem !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================================
   MODAL FICHE PRODUIT STYLE PEDROLLO OFFICIEL
   ============================================================ */

/* OVERLAY — fond flouté, gère le centrage strict */
.pdr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 25, 50, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pdr-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* CONTENEUR BLANC — ne dépassera jamais 88% de l'écran avec scrollbar */
.pdr-modal-container {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  width: 92%;
  max-width: 920px;
  max-height: 85vh; 
  overflow-y: auto !important; /* PERMET LE SCROLL DE HAUT EN BAS DANS LE MODAL */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;

  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.28s ease;
}

/* Barre de défilement (Scrollbar) de navigation haut / bas */
.pdr-modal-container::-webkit-scrollbar {
  width: 8px;
}
.pdr-modal-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 0 20px 20px 0;
}
.pdr-modal-container::-webkit-scrollbar-thumb {
  background: #0096D6;
  border-radius: 4px;
}
.pdr-modal-container::-webkit-scrollbar-thumb:hover {
  background: #0077AB;
}

.pdr-modal-overlay.open .pdr-modal-container {
  transform: scale(1);
  opacity: 1;
}

/* BOUTON FERMER */
.pdr-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #64748B;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.pdr-modal-close:hover {
  background: #E2E8F0;
  color: #1D3176;
}

/* CORPS : 2 colonnes */
.pdr-modal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

/* COLONNE IMAGE */
.pdr-modal-image-col {
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  gap: 1rem;
}
.pdr-modal-image-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pdr-modal-main-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s;
}
.pdr-modal-main-img:hover {
  transform: scale(1.05);
}
.pdr-modal-img-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Certifications */
.pdr-modal-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.pdr-cert-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  background: #E2E8F0;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
}

/* COLONNE INFOS */
.pdr-modal-info-col {
  padding: 1.5rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdr-modal-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0096D6;
}

.pdr-modal-product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1A365D;
  line-height: 1.2;
  margin: 0;
}

.pdr-modal-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

/* ONGLETS */
.pdr-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 2px solid #E2E8F0;
  margin-top: 0.25rem;
}
.pdr-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.pdr-tab-btn.active {
  color: #0096D6;
  border-bottom-color: #0096D6;
}
.pdr-tab-btn:hover:not(.active) {
  color: #1D3176;
}

/* PANNEAUX ONGLETS */
.pdr-tab-panel {
  display: none;
}
.pdr-tab-panel.active {
  display: block;
}

/* TABLEAU SPECS */
.pdr-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.pdr-specs-table tr {
  border-bottom: 1px solid #F1F5F9;
}
.pdr-specs-table tr:last-child {
  border-bottom: none;
}
.pdr-spec-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  padding: 0.55rem 0.5rem 0.55rem 0;
  width: 50%;
}
.pdr-spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0096D6;
  padding: 0.55rem 0;
}

/* CTA */
.pdr-modal-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}
.pdr-btn-devis {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem !important;
  padding: 0.6rem 1.2rem !important;
}
.pdr-btn-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #25D366;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.pdr-btn-wa:hover {
  background: #1EBE5A;
  color: #FFFFFF;
}

/* PRODUITS SIMILAIRES */
.pdr-modal-related {
  padding: 1.5rem 2rem;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.pdr-related-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin: 0 0 1rem;
}
.pdr-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.pdr-related-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
  padding: 0.75rem;
}
.pdr-related-card:hover {
  box-shadow: 0 6px 20px rgba(0,150,214,0.15);
  transform: translateY(-2px);
}
.pdr-related-card img {
  width: 100%;
  max-height: 75px;
  object-fit: contain;
  margin-bottom: 0.4rem;
}
.pdr-related-card span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1A365D;
  display: block;
  line-height: 1.3;
}

/* Curseur pointer sur l'image produit */
.product-card__image-container {
  cursor: pointer;
}
.product-card__image-container:hover .product-card__image {
  opacity: 0.88;
}

/* RESPONSIVE MODAL */
@media (max-width: 700px) {
  .pdr-modal-body {
    grid-template-columns: 1fr;
  }
  .pdr-modal-image-col {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.5rem 1rem;
  }
  .pdr-modal-info-col {
    padding: 1.25rem;
    max-height: none;
  }
  .pdr-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* STYLES LAYOUT MODAL PEDROLLO OFFICIEL */
.pdr-modal-header-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
}
.pdr-modal-image-wrap {
  flex: 0 0 220px;
  position: relative;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.pdr-modal-main-img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
}
.pdr-modal-intro {
  flex: 1;
}
.pdr-modal-cat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0096D6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}
.pdr-modal-product-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1A365D;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.pdr-modal-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.pdr-modal-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pdr-modal-tabs-section {
  padding: 0 2.5rem;
  border-bottom: 2px solid #E2E8F0;
}
.pdr-modal-table-section {
  padding: 1.5rem 2.5rem;
}
.pdr-specs-table--full {
  width: 100%;
  border-collapse: collapse;
}
.pdr-specs-table--full tr {
  border-bottom: 1px solid #F1F5F9;
}
.pdr-specs-table--full td {
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
}
.pdr-modal-certs-section {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #E2E8F0;
}
.pdr-modal-related--full {
  padding: 1.5rem 2.5rem 2cm 2.5rem; /* Espace de 2cm en bas */
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 0 0 20px 20px;
}
@media (max-width: 768px) {
  .pdr-modal-header-section {
    flex-direction: column;
    padding: 1.5rem;
  }
  .pdr-modal-tabs-section, .pdr-modal-table-section, .pdr-modal-certs-section, .pdr-modal-related--full {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

