/* ==========================================================================
   GLOBAL CS® — CATALOGUE TÉLÉPHONES IP
   globalcs-catalogue.css · Version 1.0 · Mai 2026
   Usage : <link rel="stylesheet" href="globalcs-telephones.css"/>
            <link rel="stylesheet" href="globalcs-catalogue.css"/>
   Requiert : globalcs-telephones.css (variables, nav, band, footer, reveal)
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO CATALOGUE
   -------------------------------------------------------------------------- */

.cat-hero {
  background: var(--navy-deep);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Barre supérieure arc-en-ciel animée (8 accents gamme) */
.cat-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #8CBF44,   /* U31P / U33P */
    #C9A84C,   /* U35P Or */
    #0EA5E9,   /* U42P Cyan */
    #10B981,   /* WiFi Émeraude */
    #2563EB,   /* SIP-U111 Bleu */
    #7C3AED,   /* SIP-U121 Violet */
    #16A34A,   /* SIP-U131 Forêt */
    #8CBF44
  );
  background-size: 200% 100%;
  animation: catalogue-rainbow 6s linear infinite;
}

@keyframes catalogue-rainbow {
  0%   { background-position: 0% }
  100% { background-position: 200% }
}

/* Lueur décorative centrale */
.cat-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,191,68,.05), transparent 70%);
  pointer-events: none;
}

/* Layout hero en deux colonnes */
.cat-hero-in {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px 100px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Titre hero */
.cat-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cat-hero h1 em {
  font-style: normal;
  color: var(--green);
}

.cat-hero p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   STATS HERO
   -------------------------------------------------------------------------- */

.cat-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cstat { text-align: center; }

.cstat .cv {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.cstat .cl {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   MOSAÏQUE HÉRO — grille 4×2 photos téléphones
   -------------------------------------------------------------------------- */

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 140px);
  gap: 8px;
}

.hm-cell {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
}

.hm-cell:hover {
  transform: scale(1.06);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  border-color: rgba(140,191,68,.3);
}

.hm-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
  transition: transform .3s;
}

.hm-cell:hover img { transform: scale(1.04); }

.hero-mosaic-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   SECTION GAMMES — 3 rangées présentant U-Series / WiFi / SIP-U
   -------------------------------------------------------------------------- */

.range-section {
  background: var(--navy-deep);
  padding: 96px 0;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.range-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: var(--transition);
}

.range-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  background: rgba(255,255,255,.04);
}

.range-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.range-card h3 span { color: var(--green); }

.range-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Pastilles modèles dans chaque carte gamme */
.range-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.range-model {
  background: rgba(140,191,68,.1);
  border: 1px solid rgba(140,191,68,.25);
  color: var(--green);
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   FILTRES CATALOGUE
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--navy);
  background: var(--green);
}

.filter-btn.active {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}

/* --------------------------------------------------------------------------
   GRILLE PRODUITS — cartes téléphones
   -------------------------------------------------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Carte produit individuelle */
.pc {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .2s;
  position: relative;

  /* accent color via CSS custom property injectée inline */
  --ac:    #8CBF44;
  --ac-dk: #6DA030;
  --ac-lt: #C5E08F;
  --ac-bg: #F0F8E4;
}

.pc:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: var(--ac);
}

/* En-tête carte : gamme + catégorie */
.pc-header {
  background: var(--navy-deep);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ac, #8CBF44);
}

.pc-range {
  font-size: 10px;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pc-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--ac, #8CBF44);
}

/* Zone photo */
.pc-photo {
  height: 180px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Fondu bas de la photo */
.pc-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(36,46,61,.5));
  pointer-events: none;
}

.pc-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.pc:hover .pc-photo img { transform: scale(1.07); }

/* Corps carte */
.pc-body {
  padding: 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
}

.pc-tagline {
  font-size: 12px;
  font-weight: 700;
  color: var(--ac, #8CBF44);
  letter-spacing: .3px;
}

.pc-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* Grille 4 KPIs par carte */
.pc-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.pc-kpi {
  background: var(--ac-bg, #F0F8E4);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.pc-kpi-v {
  font-size: 15px;
  font-weight: 800;
  color: var(--ac, #8CBF44);
  line-height: 1;
}

.pc-kpi-l {
  font-size: 9px;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.2;
}

/* Tags produit */
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pc-tag {
  font-family: var(--ff);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
  /* couleurs définies inline via Python */
}

/* Bouton CTA carte */
.pc-cta {
  display: block;
  text-align: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--ac, #8CBF44), var(--ac-dk, #6DA030));
  color: var(--white);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
  transition: opacity .2s, filter .2s;
}

.pc-cta:hover {
  opacity: .88;
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   TABLEAU COMPARATIF
   -------------------------------------------------------------------------- */

.comp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-family: var(--ff);
}

/* En-tête : noms modèles */
.comp-table thead tr { background: var(--navy); }

.comp-table thead th {
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

.comp-table thead th:first-child {
  color: var(--gray);
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 120px;
}

/* Corps tableau */
.comp-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}

.comp-table tbody tr:hover { background: rgba(255,255,255,.04) !important; }

.comp-table tbody th {
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-align: left;
  white-space: nowrap;
  background: rgba(36,46,61,.6);
}

.comp-table tbody td {
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.04);
}

/* Ligne zébrée */
.comp-table tbody tr.comp-even { background: rgba(255,255,255,.03); }

/* Mise en avant cellule "max" */
.comp-table .cell-max {
  color: var(--green);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   GUIDE DE SÉLECTION
   -------------------------------------------------------------------------- */

.guide-section { background: var(--accent-bg, #F0F8E4); }

.guide-link {
  display: inline-block;
  background: rgba(140,191,68,.1);
  color: var(--green);
  border: 1px solid rgba(140,191,68,.3);
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 14px;
  margin-right: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.guide-link:hover {
  background: var(--green);
  color: var(--navy);
}

.guide-link.cyan  { background:rgba(14,165,233,.1);  color:#0EA5E9; border-color:rgba(14,165,233,.3);  }
.guide-link.teal  { background:rgba(16,185,129,.1);  color:#10B981; border-color:rgba(16,185,129,.3);  }
.guide-link.blue  { background:rgba(37,99,235,.1);   color:#2563EB; border-color:rgba(37,99,235,.3);   }
.guide-link.purple{ background:rgba(124,58,237,.1);  color:#7C3AED; border-color:rgba(124,58,237,.3);  }
.guide-link.forest{ background:rgba(22,163,74,.1);   color:#16A34A; border-color:rgba(22,163,74,.3);   }
.guide-link.gold  { background:rgba(201,168,76,.1);  color:#C9A84C; border-color:rgba(201,168,76,.3);  }
.guide-link.orange{ background:rgba(249,115,22,.1);  color:#F97316; border-color:rgba(249,115,22,.3);  }

/* --------------------------------------------------------------------------
   CTA CENTRAL CATALOGUE
   -------------------------------------------------------------------------- */

.cat-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #1a2a10 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cat-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,191,68,.06), transparent 70%);
  pointer-events: none;
}

.cat-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.cat-cta h2 span { color: var(--green); }

.cat-cta p {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contacts en bas de CTA */
.cta-contacts {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-contact-item { text-align: center; }

.cta-contact-item .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.cta-contact-item .lbl {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablette (< 1100px)
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablette (< 900px)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .cat-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-mosaic  { grid-template-rows: repeat(2, 100px); }
  .range-grid   { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-stats    { gap: 20px; }
  .cta-contacts { gap: 24px; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — mobile (< 600px)
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .hero-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 80px); gap: 6px; }
  .products-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 7px; }
  .filter-btn { padding: 7px 14px; font-size: 12px; }
  .cta-contacts { flex-direction: column; gap: 16px; }
  .cat-cta { padding: 64px 0; }
}

/* --------------------------------------------------------------------------
   UTILITAIRES CATALOGUE
   -------------------------------------------------------------------------- */

/* Texte arc-en-ciel (pour titres spéciaux) */
.text-rainbow {
  background: linear-gradient(90deg, #8CBF44, #C9A84C, #0EA5E9, #10B981, #7C3AED, #16A34A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge "NOUVEAU" / "EXCLUSIF" sur une carte */
.pc-ribbon {
  position: absolute;
  top: 52px; right: -6px;
  background: var(--green);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px 0 0 3px;
  z-index: 3;
}

/* Pastille count sur filtre */
.filter-btn[data-count]::after {
  content: attr(data-count);
  display: inline-block;
  background: var(--navy);
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

.filter-btn.active[data-count]::after {
  background: rgba(0,0,0,.2);
  color: var(--navy);
}

/* Séparateur section avec dégradé */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  margin: 0;
}

/* Scrollbar personnalisée sur le tableau comparatif */
.comp-wrap::-webkit-scrollbar { height: 6px; }
.comp-wrap::-webkit-scrollbar-track { background: var(--navy); }
.comp-wrap::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
.comp-wrap::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }
