/* ============================================
   Design system SRT — variables typographiques + couleurs
   Utilisable partout (pavés droits, distributeurs, contact)
   ============================================ */
:root {
  --srt-font: 'Montserrat', 'Work Sans', sans-serif;
  --srt-fz-xs: 0.72rem;   /* 11-12px — annotations, badges */
  --srt-fz-sm: 0.82rem;   /* 13-14px — texte courant pavés/liens */
  --srt-fz-md: 0.92rem;   /* 15px — corps normal */
  --srt-fz-lg: 1.05rem;   /* 17px — sous-titres */
  --srt-fz-xl: 1.3rem;    /* 21px — titres */
  --srt-fz-xxl: 1.7rem;   /* 27px — hero */
  --srt-color-primary: #016db6;
  --srt-color-primary-light: #0091e8;
  --srt-color-text: #1a2530;
  --srt-color-muted: #555;
  --srt-color-bg-soft: #f0f3f5;
}

/* ============================================
   PAVÉS DROITS — refonte cosmétique 2026-05 v3
   Titre flush left, contenu indenté, lignes aérées
   ============================================ */
:root {
  /* Indent = icon titre (14) + gap (6) = 20 → contenu aligné avec le TEXTE du titre */
  --pave-indent: 20px;
}
.col-droit .bloc-droit {
  font-family: var(--srt-font);
  font-size: 0.74rem;
  line-height: 1.4;
  padding: 10px 12px !important;
  margin-bottom: 2px !important;
}
/* Adoucir le noir des blocs "gris" → gris medium (palette neutre, plus doux) */
.col-droit .bloc-droit:nth-child(odd) { color: #565d68 !important; }
.col-droit .bloc-droit a { color: inherit; text-decoration: none; }
.col-droit .bloc-droit a:hover { text-decoration: underline; opacity: 0.85; }

/* Titre de bloc — flush left, séparé du contenu */
.bloc-droit .bloc-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
  padding: 0;
}
.bloc-droit .bloc-titre img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Conteneur "contenu" indenté (englobe list, plaquette, tel, etc.) */
.bloc-droit .bloc-list,
.bloc-droit .bloc-plaquette,
.bloc-droit .bloc-tel,
.bloc-droit > .bloc-cta {
  margin-left: var(--pave-indent);
}

/* Liste de téléchargements — aérée, gap icône↔texte généreux */
.bloc-droit .bloc-list {
  list-style: none;
  padding: 0;
}
.bloc-droit .bloc-list li {
  display: flex;
  align-items: center;
  gap: 10px;                       /* + d'espace entre icône et label */
  padding: 5px 0;                  /* + d'espace entre lignes */
  line-height: 1.2;
}
.bloc-droit .bloc-list img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}
.bloc-droit .bloc-list a {
  font-size: 0.74rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bloc-droit .bloc-list li > a:first-child { flex: 0 0 auto; line-height: 0; }

/* Bouton CTA dans pavé */
.bloc-droit .bloc-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  margin-top: 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  opacity: 0.92;
}
.bloc-droit .bloc-cta:hover { opacity: 1; text-decoration: none !important; }

/* Pavé contact : téléphone — joue le rôle de "titre" (flush gauche, pas indenté) */
.bloc-droit .bloc-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.bloc-droit .bloc-tel img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain;
}

/* Pavé plaquette : disposition aérée */
.bloc-droit .bloc-plaquette {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bloc-droit .bloc-plaquette img.preview {
  width: 50px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}
.bloc-droit .bloc-plaquette .info { flex: 1; font-size: 0.72rem; line-height: 1.4; }
.bloc-droit .bloc-plaquette .info strong { font-size: 0.78rem; font-weight: 600; display: block; margin-bottom: 3px; }

/* === PICKLISTS Cross References (overrides site.css) === */
.bloc-droit #listStyle,
.bloc-droit #listManufacturer {
  margin: 0 0 6px var(--pave-indent) !important;
  width: calc(100% - var(--pave-indent) - 24px) !important;
  max-width: 180px !important;
  font-family: var(--srt-font);
  font-size: 0.74rem !important;
  font-weight: 500;
  padding: 4px 10px !important;
  height: 28px !important;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  background-color: rgba(255,255,255,0.95);
  color: var(--srt-color-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23016db6' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px !important;
}
.bloc-droit #listStyle:focus,
.bloc-droit #listManufacturer:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}
.bloc-droit .input-group {
  display: block !important;
  margin: 0 !important;
}

/* ============================================
   Page Distributeurs — refonte 2026-05
   Auteur : Claude (pour PEF / SRT)
   ============================================ */

/* Wrapper de la page distributeurs */
.dist-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Montserrat', 'Work Sans', sans-serif;
  color: #333;
}

.dist-wrap .dist-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.dist-wrap .dist-intro strong { color: #016db6; }

/* === CARTE MONDE === */
.dist-map-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2rem;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1rem;
}

#dist-world-map {
  width: 100%;
  max-width: 900px;
  height: 380px;
  margin: 0 auto;
}

/* Marker HQ Vendôme — petit point blanc avec halo, posé sur la France */
.dist-hq-marker {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #016db6;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.25);
  cursor: pointer;
  animation: dist-hq-pulse 2.4s ease-in-out infinite;
  z-index: 10;
}
.dist-hq-marker img { display: none; }   /* on cache le logo, le point suffit */
@keyframes dist-hq-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 0 0 4px rgba(1,109,182,0.5); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,0.6), 0 0 0 10px rgba(1,109,182,0.05); }
}

/* Pings personnalisés (override jqvmap) */
.dist-map-container .jqvmap-region {
  fill: #d7dde2;
  stroke: #fff;
  stroke-width: 0.5;
  transition: fill 0.2s ease;
  cursor: default;
}
.dist-map-container .jqvmap-region.dist-active {
  fill: #016db6;
  cursor: pointer;
}
.dist-map-container .jqvmap-region.dist-active:hover {
  fill: #0091e8;
}
.dist-map-container .jqvmap-region.dist-highlight {
  fill: #ff7e00;
}

/* Label survol */
.jqvmap-label {
  background: #016db6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 4px 10px !important;
  font-size: 0.85rem !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* === FILTRES === */
.dist-filters {
  text-align: center;
  margin: 1.5rem 0;
}
.dist-filters .btn-filter {
  background: #fff;
  border: 1px solid #016db6;
  color: #016db6;
  padding: 6px 16px;
  margin: 4px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.dist-filters .btn-filter:hover {
  background: #e6f2fb;
}
.dist-filters .btn-filter.active {
  background: #016db6;
  color: #fff;
}

/* === GRILLE DE CARTES === */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.dist-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e9ec;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.dist-card:hover {
  box-shadow: 0 4px 16px rgba(1,109,182,0.12);
  transform: translateY(-2px);
  border-color: #016db6;
}
.dist-card.dist-card-hidden { display: none; }
.dist-card.dist-card-highlight {
  border-color: #ff7e00;
  box-shadow: 0 4px 20px rgba(255,126,0,0.2);
}

.dist-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  min-height: 60px;
}
.dist-card-logo {
  max-width: 130px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.dist-card-logo-placeholder {
  width: 130px;
  height: 50px;
}
.dist-card-flag {
  display: inline-block;
  background: #016db6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.dist-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #016db6;
  margin: 0 0 0.25rem;
}
.dist-card-contact {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.dist-card-address {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
  margin: 0.25rem 0 0.75rem;
}

.dist-card-info {
  margin-top: auto;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}
.dist-card-info i {
  width: 18px;
  color: #016db6;
  margin-right: 6px;
}
.dist-card-info a {
  color: #016db6;
  text-decoration: none;
  word-break: break-word;
}
.dist-card-info a:hover {
  text-decoration: underline;
  color: #0091e8;
}

/* Lien email obfusqué (avant déchiffrage par le JS) */
.ep-email {
  color: #016db6;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-word;
}
.ep-email:hover { color: #0091e8; }
.ep-email::before { content: '\f0e0'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 6px; opacity: 0.8; }

/* ============================================
   PAGE HIGH RELIABILITY — single-page avec ancres
   ============================================ */
.hr-wrap {
  font-family: var(--srt-font);
  color: var(--srt-color-text);
  max-width: 100%;
  padding: 0;
}

/* HERO */
.hr-hero {
  position: relative;
  width: 100%;
  margin: 0 0 1.5rem;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #016db6 0%, #0091e8 100%);
}
.hr-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hr-hero-overlay {
  padding: 12px 24px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(1,109,182,0.92) 100%);
  color: #fff;
}
.hr-hero-tags {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 6px;
}
.hr-hero-tags span {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hr-hero-sub {
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
  max-width: 700px;
  opacity: 0.95;
}

/* ANCRES NAV (sticky top) */
.hr-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 2rem;
  padding: 8px 12px;
  background: var(--srt-color-bg-soft);
  border-radius: 6px;
  border-bottom: 2px solid var(--srt-color-primary);
}
.hr-anchors a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--srt-color-muted);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.hr-anchors a:hover {
  background: var(--srt-color-primary);
  color: #fff;
}

/* SECTIONS */
.hr-section {
  margin: 0 0 2.5rem;
  scroll-margin-top: 80px;
}
.hr-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--srt-color-primary);
  margin: 0 0 0.5rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--srt-color-primary);
  display: inline-block;
}
.hr-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--srt-color-text);
  margin: 1.2rem 0 0.5rem;
}
.hr-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--srt-color-primary);
  margin: 0 0 0.4rem;
}
.hr-section p { font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.8rem; }
.hr-section-intro {
  font-size: 0.95rem;
  color: var(--srt-color-muted);
  margin-bottom: 1.2rem !important;
  font-style: italic;
}
.hr-section-note {
  font-size: 0.85rem;
  color: var(--srt-color-muted);
  margin-top: 1rem !important;
  font-style: italic;
}
.hr-section-note a, .hr-section a { color: var(--srt-color-primary); text-decoration: none; font-weight: 500; }
.hr-section-note a:hover, .hr-section a:hover { text-decoration: underline; }

/* SCREENING GRID */
.hr-screening-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}
.hr-screening-card {
  background: #fff;
  border: 1px solid #e5e9ec;
  border-left: 4px solid var(--srt-color-primary);
  border-radius: 6px;
  padding: 14px 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hr-screening-card:hover {
  box-shadow: 0 4px 14px rgba(1,109,182,0.12);
  transform: translateY(-2px);
}
.hr-screening-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--srt-color-primary);
  text-transform: uppercase;
}
.hr-screening-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--srt-color-text);
  margin: 2px 0 6px;
}
.hr-screening-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--srt-color-muted);
}

/* CHIPS */
.hr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.hr-chip {
  display: inline-block;
  background: var(--srt-color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

/* LISTE */
.hr-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.hr-list li { margin-bottom: 4px; }
.hr-list strong { color: var(--srt-color-primary); }

/* CONSTRUCTION GRID */
.hr-construction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}
.hr-construction-card {
  background: var(--srt-color-bg-soft);
  border-radius: 6px;
  padding: 14px 16px;
}
.hr-construction-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--srt-color-muted);
  margin: 0;
}

/* PARTENAIRES */
.hr-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.hr-partner {
  background: #fff;
  border: 1px solid #e5e9ec;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}
.hr-partner strong {
  font-size: 0.95rem;
  color: var(--srt-color-primary);
  margin-bottom: 3px;
}
.hr-partner span {
  font-size: 0.8rem;
  color: var(--srt-color-muted);
  line-height: 1.4;
}

/* CTA PLAQUETTE */
.hr-section-cta {
  background: linear-gradient(135deg, var(--srt-color-primary) 0%, var(--srt-color-primary-light) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 24px 28px !important;
  margin-bottom: 2rem;
}
.hr-section-cta h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
  margin-bottom: 6px !important;
}
.hr-section-cta p { color: rgba(255,255,255,0.95); margin: 0; }
.hr-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hr-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--srt-color-primary) !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hr-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none !important;
}

/* CONTACT */
.hr-section-contact { background: var(--srt-color-bg-soft); border-radius: 8px; padding: 20px 24px !important; }
.hr-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 12px;
  border: 1px solid #e5e9ec;
}
.hr-contact-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.hr-contact-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--srt-color-text);
}
.hr-contact-role {
  font-size: 0.85rem;
  color: var(--srt-color-primary);
  font-weight: 500;
  margin: 2px 0 6px;
}
.hr-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--srt-color-muted);
}
.hr-contact-links i { color: var(--srt-color-primary); margin-right: 4px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hr-section h2 { font-size: 1.2rem; }
  .hr-hero-sub { font-size: 0.9rem; }
  .hr-cta-block { flex-direction: column; align-items: flex-start; }
  .hr-anchors { padding: 6px 8px; }
  .hr-anchors a { font-size: 0.74rem; }
}

/* ============================================
   PAGE CONTACT — bande équipe compacte
   ============================================ */
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem;
  font-family: 'Montserrat', 'Work Sans', sans-serif;
}
.contact-header { text-align: center; margin-bottom: 1.5rem; }
.contact-title {
  font-size: 1.6rem;
  color: #016db6;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.contact-sub {
  font-size: 0.95rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e9ec;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  border-color: #016db6;
  box-shadow: 0 2px 10px rgba(1, 109, 182, 0.08);
}

.contact-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
}

.contact-info { flex: 1; min-width: 0; }

.contact-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2530;
  margin: 0;
  line-height: 1.25;
}

.contact-role {
  font-size: 0.74rem;
  color: #016db6;
  margin: 0.1rem 0 0.25rem;
  line-height: 1.3;
}

.contact-links {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}
.contact-links i { color: #016db6; margin-right: 3px; }
.contact-links .contact-mails { word-break: break-word; }
.contact-links .ep-email { color: #016db6; }
.contact-links .ep-email::before { content: '\f0e0'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 3px; opacity: 0.7; font-size: 0.75rem; }

/* Formulaire (injecté par form_contact.php) : on lui donne une présentation mise en avant */
.contact-wrap + form,
form[action*="contact.php"] {
  max-width: 900px;
  margin: 1rem auto;
  padding: 1.5rem;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #dist-world-map { height: 320px; }
  .dist-grid { grid-template-columns: 1fr; }
  .dist-filters .btn-filter { font-size: 0.85rem; padding: 5px 12px; }
}

@media (max-width: 480px) {
  .dist-wrap { padding: 0.5rem; }
  .dist-map-container { padding: 0.5rem; }
}
