/* ============================================================
   TCH Industries – CSS Additions v2
   Ajouts pour : logo agrandi, ISO image, nouvelles pages
   ============================================================ */

/* ── Logo agrandi dans le header ───────────────────────────── */
.logo-img {
  height: 46px !important;  /* était 46px */
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.25rem !important; /* légèrement agrandi */
  color: var(--primary);
}

/* ── Badge ISO 9001 en image ────────────────────────────────── */
.iso-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .25s;
}
.iso-badge-link:hover { opacity: .8; }
.iso-badge-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ── Chrome fix : backdrop-filter fallback ──────────────────── */
@supports not (backdrop-filter: blur(10px)) {
  .tch-header { background: rgba(255,255,255,.99) !important; }
}

/* ── Page Équipe ────────────────────────────────────────────── */
.team-grid-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: var(--tr);
  text-align: center;
}
.team-grid-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.team-grid-photo {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddeaf5, #c8dff0);
  position: relative;
}
.team-grid-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .45s;
}
.team-grid-card:hover .team-grid-photo img { transform: scale(1.05); }
.team-grid-photo-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #7aabcc;
}
.team-grid-info { padding: 18px 16px; }
.team-grid-info h4 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.team-grid-info .poste { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.team-grid-info a.email-link {
  font-size: .78rem; color: var(--blue); display: inline-flex;
  align-items: center; gap: 4px; transition: var(--tr);
}
.team-grid-info a.email-link:hover { color: var(--primary); }

/* ── Page Réclamation ───────────────────────────────────────── */
.rec-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
}
.rec-form-wrap .form-label { font-size: .85rem; font-weight: 600; color: var(--primary); }
.rec-form-wrap .form-control,
.rec-form-wrap .form-select {
  border: 1px solid rgba(36,135,206,.22);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .88rem;
  transition: var(--tr);
}
.rec-form-wrap .form-control:focus,
.rec-form-wrap .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,135,206,.1);
}

/* ── Page Qualité améliorée ─────────────────────────────────── */
.qualite-doc-frame {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 48px;
  box-shadow: var(--sh-md);
  border-left: 5px solid var(--blue);
}
.qualite-doc-frame h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 22px 0 10px; }
.qualite-doc-frame p  { font-size: .93rem; line-height: 1.8; color: var(--text); }
.qualite-doc-frame ul li { margin-bottom: 8px; font-size: .92rem; line-height: 1.7; }
.qualite-doc-frame strong { color: var(--primary); }
.qualite-signed {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  font-size: .88rem;
  color: var(--muted);
}

/* ── Admin : CRUD Brands & Products ────────────────────────── */
.thumb-preview {
  width: 80px; height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--light);
  padding: 4px;
}
.thumb-preview-lg {
  width: 120px; height: 90px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--light);
  padding: 6px;
}
.file-input-wrap { position: relative; }
.file-input-wrap input[type=file] {
  width: 100%; border: 1px dashed rgba(36,135,206,.35);
  border-radius: 8px; padding: 10px;
  font-size: .85rem; cursor: pointer;
  background: rgba(36,135,206,.03);
  transition: var(--tr);
}
.file-input-wrap input[type=file]:hover { border-color: var(--blue); background: rgba(36,135,206,.07); }

/* ── Admin tabs ────────────────────────────────────────────── */
.admin-tabs { border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.admin-tabs .nav-link { color: var(--muted); font-size: .87rem; font-weight: 500; padding: 10px 18px; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.admin-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--blue); }
.admin-tabs .nav-link:hover { color: var(--primary); }

/* ── Partenaires admin ─────────────────────────────────────── */
.partner-logo-preview {
  height: 50px; object-fit: contain;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; background: var(--light);
}

/* ── Chrome specifics ─────────────────────────────────────── */
/* Fix dropdown Bootstrap sous Chrome strict CSP */
.tch-dropdown { will-change: transform; }
/* Fix smooth scroll Chrome */
html { scroll-behavior: smooth; }
/* Fix outline Chrome accessibility */
.nav-link:focus-visible,
.btn-lang:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   LOGOS UNIFORMES — page brands.php
   Toutes les cartes ont une zone logo identique en hauteur
════════════════════════════════════════════════════════════ */
.brand-logo-zone {
  height: 88px;                  /* hauteur fixe identique pour toutes */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
}

.brand-logo-img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .35s ease, filter .35s ease;
  filter: grayscale(20%);
}

.brand-grid-card:hover .brand-logo-img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* Fallback texte quand pas de logo */
.brand-logo-fallback {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ════════════════════════════════════════════════════════════
   BARRE DE RECHERCHE PRODUITS — page brand.php
════════════════════════════════════════════════════════════ */
.tch-product-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 70px;           /* sous le header fixe */
  z-index: 50;
  box-shadow: 0 4px 24px rgba(10,45,74,.06);
}

.tch-psb-inner {
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--light);
  border: 1.5px solid rgba(36,135,206,.2);
  border-radius: 50px;
  padding: 0 20px;
  gap: 10px;
  transition: border-color .25s, box-shadow .25s;
}

.tch-psb-inner:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36,135,206,.1);
  background: #fff;
}

.tch-psb-icon {
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
  opacity: .75;
}

.tch-psb-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: .92rem;
  color: var(--primary);
  padding: 13px 0;
  font-family: 'Inter', sans-serif;
}

.tch-psb-input::placeholder {
  color: #a0b4c8;
  font-weight: 400;
}

.tch-psb-clear {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .2s, color .2s;
  flex-shrink: 0;
}

.tch-psb-clear:hover {
  background: rgba(36,135,206,.12);
  color: var(--blue);
}

/* Compteur de résultats */
.tch-psb-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
  padding-right: 4px;
}

/* ════════════════════════════════════════════════════════════
   NOTRE SÉLECTION — Scroll produits phares (index)
════════════════════════════════════════════════════════════ */
.featured-scroll-wrap {
  position: relative;
  margin: 0 -8px;
}
.featured-scroll-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 8px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.featured-scroll-track::-webkit-scrollbar { display: none; }

.fp-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10,45,74,.08);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.fp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(36,135,206,.18);
}
.fp-img {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fp-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .4s;
}
.fp-card:hover .fp-img img { transform: scale(1.06); }
.fp-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #a0bad4; font-size: 2.2rem;
}
.fp-body {
  padding: 14px 16px 16px;
  flex: 1;
}
.fp-brand {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.fp-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
}
/* Boutons nav du scroll */
.fp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(10,45,74,.15);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, color .2s, box-shadow .2s;
  z-index: 5;
}
.fp-nav:hover { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(36,135,206,.35); }
.fp-nav-prev { left: -16px; }
.fp-nav-next { right: -16px; }

@media (max-width: 767px) {
  .fp-card { flex: 0 0 170px; }
  .fp-img  { height: 120px; }
  .fp-nav  { display: none; }
}

/* ════════════════════════════════════════════════════════════
   SLOGANS TCH (index — entre Notre Sélection et Pourquoi TCH)
════════════════════════════════════════════════════════════ */
.tch-slogans-section {
  background:
    linear-gradient(135deg, var(--dark) 0%, var(--primary) 55%, #1a5f92 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.tch-slogans-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cpath d='M20 20l40 40M40 0v80M0 40h80' stroke='%232487ce' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
}
.tch-slogans-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 160px;
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 24px;
}
.tch-slogans-track {
  flex: 1;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
}
.tch-slogan-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.tch-slogan-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.tch-slogan-quote {
  font-size: 3.5rem;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  opacity: .75;
}
.tch-slogan-slide p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.tch-slogan-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.tch-slogan-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background .2s, border-color .2s;
}
.tch-slogan-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}
@media (max-width: 576px) {
  .tch-slogan-quote { font-size: 2.2rem; }
  .tch-slogan-slide p { font-size: .9rem; }
  .tch-slogans-section .container { min-height: 120px; }
}

/* ════════════════════════════════════════════════════════════
   PAGE BRANDS — routing site officiel si 0 produits
════════════════════════════════════════════════════════════ */
.brand-grid-footer {
  display: flex;
  align-items: center;
  justify-content: center; /* centré par défaut */
}
.brand-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--blue);
}
.brand-arrow.external {
  background: rgba(36,135,206,.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(36,135,206,.25);
  transition: background .2s, color .2s;
}
.brand-grid-card:hover .brand-arrow.external {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
