/* ═══════════════════════════════════════════════════════════
   EHTYMAG Annuaire — directory.css
   Palette : #0F0F0F · #F5F0E8 · #D4A843
   Typo    : Playfair Display (titres) + Outfit (corps)
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #F5F0E8;
  color: #0F0F0F;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #D4A843; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Conteneur ─────────────────────────────────────────── */
.eh-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 480px) {
  .eh-container { padding: 0 24px; }
}

/* ─── Hero de page ──────────────────────────────────────── */
.eh-page-hero {
  background: #0F0F0F;
  color: #F5F0E8;
  padding: 60px 24px 48px;
  text-align: center;
}
.eh-page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.eh-page-hero p {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #aaa;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Barre de filtres ──────────────────────────────────── */
.eh-filters {
  background: #fff;
  border-bottom: 1px solid #e0dbd0;
  padding: 16px 16px;
  position: sticky;
  top: 68px; /* hauteur du header */
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (min-width: 480px) {
  .eh-filters { padding: 20px 24px; }
}
.eh-filters form {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.eh-filters select { min-width: 0; }
.eh-filters select,
.eh-filters input[type="text"] {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 9px 14px;
  background: #fff;
  color: #0F0F0F;
  outline: none;
  transition: border-color .2s;
}
.eh-filters select:focus,
.eh-filters input[type="text"]:focus { border-color: #D4A843; }
.eh-filters select { min-width: 200px; }
.eh-filters input[type="text"] { flex: 1; min-width: 180px; }
.eh-filters button[type="submit"] {
  background: #D4A843;
  color: #0F0F0F;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.eh-filters button[type="submit"]:hover { background: #c09535; }
.eh-filters .eh-reset-link {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

/* ─── Grille de fiches ──────────────────────────────────── */
.eh-directory-main {
  padding: 40px 0 80px;
}
.eh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

/* ─── Carte d'entreprise ────────────────────────────────── */
.eh-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e0d5;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.eh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.eh-card-logo {
  height: 120px;
  background: #f0ece3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eh-card-logo img {
  max-height: 80px;
  max-width: 80%;
  object-fit: contain;
}
.eh-card-logo .eh-card-logo-placeholder {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #D4A843;
  letter-spacing: 0.05em;
}
.eh-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.eh-card-sector {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #D4A843;
  margin-bottom: 6px;
}
.eh-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.eh-card h2 a { color: #0F0F0F; }
.eh-card h2 a:hover { color: #D4A843; text-decoration: none; }
.eh-card-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #faf8f4;
  border-top: 1px solid #e5e0d5;
  font-size: 12px;
  color: #888;
}
.eh-card-city::before { content: '📍 '; }
.eh-card-link {
  font-weight: 600;
  font-size: 12px;
  color: #D4A843;
}

/* ─── Secteurs nav ──────────────────────────────────────── */
.eh-sectors-nav {
  background: #fff;
  border-bottom: 1px solid #e5e0d5;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eh-sectors-nav::-webkit-scrollbar { display: none; }
@media (min-width: 480px) {
  .eh-sectors-nav { padding: 16px 24px; }
}
.eh-sectors-nav ul {
  max-width: 1140px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.eh-sectors-nav li a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #555;
  background: #f0ece3;
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-block;
  transition: background .2s, color .2s;
}
.eh-sectors-nav li a:hover,
.eh-sectors-nav li.active a {
  background: #D4A843;
  color: #0F0F0F;
  text-decoration: none;
}

/* ─── Page fiche single ─────────────────────────────────── */
.eh-single-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}
.eh-single-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.eh-single-logo-box {
  width: 140px;
  min-width: 140px;
  height: 140px;
  background: #f0ece3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e5e0d5;
}
.eh-single-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.eh-single-logo-box .eh-single-logo-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #D4A843;
}
.eh-single-meta { flex: 1; }
.eh-single-meta h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
}
.eh-single-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.eh-single-tag {
  background: #D4A843;
  color: #0F0F0F;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}
.eh-single-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.eh-single-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
}
.eh-single-contact-item a { color: #D4A843; }
.eh-single-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.eh-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0F0F0F;
  color: #F5F0E8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background .2s;
}
.eh-social-chip:hover { background: #D4A843; color: #0F0F0F; text-decoration: none; }

.eh-single-desc {
  background: #fff;
  border: 1px solid #e5e0d5;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 32px;
}
.eh-single-desc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  margin-bottom: 14px;
  color: #0F0F0F;
}
.eh-single-desc p { font-size: 15px; line-height: 1.8; color: #333; }

/* ─── Galerie photos ────────────────────────────────────── */
.eh-gallery {
  margin-bottom: 40px;
}
.eh-gallery h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  margin-bottom: 16px;
}
.eh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.eh-gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s;
}
.eh-gallery-grid img:hover { transform: scale(1.03); }

/* ─── Formulaire d'inscription ──────────────────────────── */
.eh-form-wrap {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 24px;
}
.eh-form-wrap h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 8px;
}
.eh-form-wrap .eh-form-subtitle {
  color: #666;
  margin-bottom: 32px;
  font-size: 15px;
}
.eh-notice {
  background: #fff8e1;
  border: 1px solid #D4A843;
  border-left: 4px solid #D4A843;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #5a4a00;
}
.eh-form-section {
  background: #fff;
  border: 1px solid #e5e0d5;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}
.eh-form-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ece3;
}
.eh-field { margin-bottom: 18px; }
.eh-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eh-field label .req { color: #D4A843; }
.eh-field input[type="text"],
.eh-field input[type="email"],
.eh-field input[type="url"],
.eh-field input[type="tel"],
.eh-field select,
.eh-field textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 11px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #0F0F0F;
  background: #faf9f7;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.eh-field input:focus,
.eh-field select:focus,
.eh-field textarea:focus {
  border-color: #D4A843;
  box-shadow: 0 0 0 3px rgba(212,168,67,.12);
}
.eh-field textarea { min-height: 120px; resize: vertical; }
.eh-field small { display: block; margin-top: 4px; color: #888; font-size: 12px; }

.eh-sector-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.eh-sector-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background .15s;
}
.eh-sector-checkboxes label:hover { background: #f0ece3; }
.eh-sector-checkboxes input[type="checkbox"] { accent-color: #D4A843; }

.eh-social-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.eh-paypal-box {
  background: #0F0F0F;
  color: #F5F0E8;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
}
.eh-paypal-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #D4A843;
  margin-bottom: 10px;
}
.eh-paypal-box p { font-size: 14px; color: #aaa; margin-bottom: 20px; }

.eh-btn {
  display: inline-block;
  background: #D4A843;
  color: #0F0F0F;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.eh-btn:hover { background: #c09535; text-decoration: none; }
.eh-btn-full { width: 100%; text-align: center; }
.eh-btn-submit {
  margin-top: 8px;
  padding: 16px 40px;
  font-size: 16px;
}

/* ─── Messages d'état ───────────────────────────────────── */
.eh-alert {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.eh-alert-success {
  background: #e6f9ee;
  border: 1px solid #5cb85c;
  color: #1a5e1a;
}
.eh-alert-error {
  background: #fdecea;
  border: 1px solid #e74c3c;
  color: #5e1a1a;
}

/* ─── Pagination ────────────────────────────────────────── */
.eh-pagination {
  text-align: center;
  margin: 48px 0 0;
}
.eh-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.eh-pagination .page-numbers a,
.eh-pagination .page-numbers span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  color: #0F0F0F;
  background: #fff;
  border: 1px solid #e0dbd0;
  transition: background .2s;
  text-decoration: none;
}
.eh-pagination .page-numbers a:hover { background: #D4A843; border-color: #D4A843; }
.eh-pagination .page-numbers .current { background: #D4A843; border-color: #D4A843; }
.eh-pagination .page-numbers .dots { border: none; background: none; color: #888; }

/* ─── Page aucun résultat ───────────────────────────────── */
.eh-no-results-page {
  background: #0F0F0F;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.eh-no-results-inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.eh-no-results-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(212,168,67,.08);
  border: 1px solid rgba(212,168,67,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.eh-no-results-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4A843;
  margin-bottom: 14px;
}
.eh-no-results-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  color: #F5F0E8;
  margin-bottom: 16px;
  line-height: 1.15;
}
.eh-no-results-sub {
  font-size: 15px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 400px;
}
.eh-no-results-sub strong { color: #bbb; font-weight: 600; }
.eh-no-results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.eh-no-results-btn-primary {
  display: inline-block;
  background: #D4A843;
  color: #0F0F0F;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.eh-no-results-btn-primary:hover { background: #e8c76a; text-decoration: none; }
.eh-no-results-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #888;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #333;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.eh-no-results-btn-secondary:hover { border-color: #555; color: #ccc; text-decoration: none; }
@media (max-width: 480px) {
  .eh-no-results-actions { flex-direction: column; align-items: stretch; }
  .eh-no-results-btn-primary,
  .eh-no-results-btn-secondary { text-align: center; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .eh-grid { grid-template-columns: 1fr; }
  .eh-single-header { gap: 20px; }
  .eh-single-logo-box { width: 100px; min-width: 100px; height: 100px; }
  .eh-social-row { grid-template-columns: 1fr; }
  .eh-sector-checkboxes { grid-template-columns: 1fr; }
  .eh-single-contacts { flex-direction: column; }
  .eh-filters form { flex-direction: column; }
  .eh-filters select,
  .eh-filters input[type="text"],
  .eh-filters button { width: 100%; }
}
