/* =====================================================
   REGISTRE PRESTATAIRES FINANCIERS
   Design identique au site AMF officiel
   Réécrit proprement — zéro doublon
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1a2e5a;
  --navy-dark:   #0d1e40;
  --navy-mid:    #2a4a8a;
  --red:         #c8102e;
  --red-dark:    #a80d26;
  --white:       #ffffff;
  --light-gray:  #f4f4f4;
  --border:      #ddd;
  --text:        #333;
  --text-muted:  #666;
  --link:        #1a2e5a;
}

/* ─── BASE ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ─── TOPBAR — blanc, liens discrets à droite ────────── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.topbar a, .topbar-lang {
  color: #333;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.topbar a:hover { color: var(--navy); text-decoration: none; }
.topbar-lang { font-weight: 600; color: var(--navy); }

/* ─── HEADER — blanc centré, bordure rouge bas ──────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 18px 0 16px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover { text-decoration: none; opacity: 0.92; }

/* Search + EN */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search-wrap {
  display: flex;
  border: 1px solid #ccc;
  overflow: hidden;
}
.header-search-input {
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  width: 200px;
  outline: none;
  font-family: inherit;
  color: var(--text);
}
.header-search-input::placeholder { color: #aaa; }
.header-search-btn {
  background: var(--navy);
  border: none;
  color: var(--white);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  min-width: 44px;
}
.header-search-btn:hover { background: var(--red); }
.lang-btn {
  background: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.lang-btn:hover { background: var(--navy); color: var(--white); }

/* ─── NAV — fond blanc, items double ligne + liens simples ── */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: stretch;
}

/* Item double ligne (ESPACE / PROFESSIONNELS) */
.nav-item--double {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
  line-height: 1.2;
}
.nav-item--double:hover { border-bottom-color: var(--navy); text-decoration: none; }
.nav-small {
  font-size: 9px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.nav-bold {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Lien nav simple (L'AMF, RÉGLEMENTATION…) */
.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.nav-link:hover { border-bottom-color: var(--navy); text-decoration: none; }

/* Icônes loupe/fermer à droite */
.nav-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.nav-icon-btn:hover { color: var(--red); }

/* ─── HERO / BANNIÈRE ───────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* overlay léger pour lisibilité */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,46,90,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

/* ─── LAYOUT PRINCIPAL ──────────────────────────────── */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ─── SIDEBAR ACCORDÉON — style AMF ─────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #e8e8e8;
}

/* Groupe accordéon */
.sb-group {
  border-bottom: 1px solid #e8e8e8;
}
.sb-group:last-child { border-bottom: none; }

/* Bouton titre du groupe */
.sb-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.sb-group-btn:hover { background: #f7f7f7; }

/* Groupe actif (rouge) */
.sb-group--active > .sb-group-btn,
.sb-group-btn--active {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600;
}
.sb-group-btn--active svg { stroke: var(--white); }

/* Chevron */
.sb-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: #999;
}
.sb-group-btn--active .sb-chevron { stroke: rgba(255,255,255,0.85); }
.sb-chevron--open { transform: rotate(0deg); }

/* Sous-items (cachés par défaut, visibles si .sb-group--open) */
.sb-sub {
  display: none;
  background: var(--white);
}
.sb-group--open .sb-sub { display: block; }

.sb-sub-link {
  display: block;
  padding: 12px 18px 12px 28px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.12s;
}
.sb-sub-link:hover {
  background: #f5f5f5;
  text-decoration: none;
}
.sb-sub-link--active {
  color: var(--red);
  font-weight: 600;
  border-left-color: var(--red);
  background: #fdf0f2;
}

/* ─── CONTENU PRINCIPAL ─────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* Titre de page */
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  line-height: 1.3;
}

/* Texte intro */
.intro-text {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 22px;
}
.intro-text strong { color: var(--text); }
.intro-text a { color: var(--red); text-decoration: underline; }

/* Barre téléchargement */
.download-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}
.btn-download {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-download:hover { background: var(--red); text-decoration: none; color: var(--white); }

/* ─── RECHERCHE ─────────────────────────────────────── */
.search-section {
  margin-bottom: 16px;
}
.search-section label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.search-row {
  display: flex;
  gap: 8px;
}
.search-input {
  flex: 1;
  border: 1px solid #aaa;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--navy); }
.btn-search {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--red); }
.btn-reset {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-reset:hover { background: var(--light-gray); }

/* ─── FILTRES ───────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-pill {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 13px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── COMPTEUR DE RÉSULTATS ─────────────────────────── */
.results-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.results-count strong { color: var(--navy); }

/* ─── TABLEAU — style AMF épuré ──────────────────────── */
#tableContainer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* Header : label discret, souligné, fond blanc */
.results-table thead th {
  background: transparent;
  color: var(--navy);
  padding: 8px 16px 10px;
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid #e0e0e0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
}

/* Lignes : séparateur léger, beaucoup d'espace */
.results-table tbody tr {
  border-bottom: 1px solid #ebebeb;
  cursor: pointer;
  transition: background 0.12s;
}
.results-table tbody tr:hover { background: #f7f9ff; }

.results-table td {
  padding: 18px 16px;
  vertical-align: middle;
}

/* Colonne Nom : nom en bleu marine + "AGRÉÉ" en dessous */
.results-table td:first-child {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.td-name-main {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  display: block;
}
.td-name-status {
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  display: block;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ─── BADGES CATÉGORIES — style AMF (fond blanc, bordure fine) ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  background: #fff;
  border: 1.5px solid;
}
/* PSAN/PSCA → bleu marine, comme dans le screenshot */
.badge-psan  { color: #1a3a6b; border-color: #1a3a6b; }
.badge-mica  { color: #1a3a6b; border-color: #1a3a6b; }
/* PSFP → bleu légèrement différent */
.badge-psfp  { color: #1a6fa8; border-color: #1a6fa8; }
/* Biens divers → texte discret */
.badge-biens { color: #555; border-color: #aaa; font-size: 10px; }

/* ─── AUCUN RÉSULTAT ────────────────────────────────── */
.no-result {
  text-align: center;
  padding: 50px 20px;
  color: #777;
}
.no-result .icon { font-size: 48px; margin-bottom: 12px; }
.no-result h3 { font-size: 18px; color: #555; margin-bottom: 8px; }
.no-result p { font-size: 14px; }

/* ─── PAGINATION ────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  min-width: 36px;
  transition: all 0.15s;
}
.pagination button:hover:not(:disabled) { background: var(--light-gray); }
.pagination button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 600;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── VUE DÉTAIL ────────────────────────────────────── */
#list-view  { display: block; }
#detail-view { display: none; }

/* ══════════════════════════════════════
   FICHE DÉTAIL — style AMF
══════════════════════════════════════ */

.fiche-back-wrap { padding: 14px 0 12px; }
.fiche-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #1a2e5a;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fiche-back-btn:hover { color: #c8102e; }

.fiche-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.fiche-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fiche-tag {
  display: inline-block;
  background: #1a7a6e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  text-transform: uppercase;
}
.fiche-meta-actions { display: flex; gap: 20px; }
.fiche-action-link {
  font-size: 12px;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fiche-action-link:hover { color: #1a2e5a; }

.fiche-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a2e5a;
  margin: 0 0 10px;
  line-height: 1.2;
}
.fiche-desc {
  font-size: 13.5px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 22px;
}

.fiche-bloc {
  border: 1px solid #d4d8e8;
  border-left: 4px solid #c8a84b;
  background: #fff;
  margin-bottom: 24px;
}
.fiche-bloc-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #e8ebf2;
  background: #fafbfd;
}
.fiche-bloc-cat {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e5a;
  margin-bottom: 2px;
}
.fiche-bloc-subcat {
  font-size: 13px;
  color: #666;
}

.fiche-champs { padding: 0; }
.fiche-champ {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid #edf0f7;
  padding: 11px 20px;
  gap: 16px;
}
.fiche-champ:last-child { border-bottom: none; }
.fiche-champ-label {
  width: 250px;
  flex-shrink: 0;
  font-weight: 700;
  color: #1a2e5a;
  font-size: 13px;
}
.fiche-champ-value {
  color: #222;
  flex: 1;
  font-size: 13px;
  word-break: break-word;
}
.fiche-champ-value a { color: #1a2e5a; text-decoration: underline; }
.fiche-champ-value a:hover { color: #c8102e; }

.fiche-services-list { list-style: none; margin: 0; padding: 0; }
.fiche-services-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
  color: #222;
  line-height: 1.5;
}
.fiche-services-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  min-width: 18px;
  height: 2px;
  background: #1a2e5a;
  margin-top: 9px;
  flex-shrink: 0;
}

.fiche-accompagner {
  border: 1px solid #d4d8e8;
  background: #fff;
}
.fiche-accompagner-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e5a;
  padding: 13px 20px 11px;
  border-bottom: 1px solid #e8ebf2;
}
.fiche-accompagner-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 13px;
  color: #1a2e5a;
  text-decoration: none;
  background: #f5f7fb;
  transition: background 0.15s;
}
.fiche-accompagner-link:hover { background: #eaecf6; }

.status-active{
display:inline-flex;
align-items:center;
gap:6px;
color:#2e7d32;
font-weight:600;
}

.icon-check{
width:16px;
height:16px;
fill:#2e7d32;
}

.status-radiation { color: #c8102e; font-weight: 700; }

@media (max-width: 640px) {
  .fiche-champ { flex-direction: column; gap: 3px; padding: 10px 14px; }
  .fiche-champ-label { width: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: #888; }
  .fiche-title { font-size: 21px; }
}

.site-footer {
  background: #1a2e5a;
  color: #b0bcda;
  margin-top: 40px;
}

/* ── Zone haute 3 colonnes ── */
.footer-top {
  border-bottom: 1px solid #2e4270;
}
.footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.footer-top-col {
  padding: 0 32px;
  border-right: 1px solid #2e4270;
}
.footer-top-col:first-child { padding-left: 0; }
.footer-top-col:last-child  { border-right: none; }

.footer-top-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2e4270;
}

/* Liens avec icône */
.footer-top-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b0bcda;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.footer-top-link svg { flex-shrink: 0; opacity: 0.9; }
.footer-top-link:hover { color: #fff; }
.footer-top-link:hover svg { opacity: 1; }

/* Réseaux sociaux */
.footer-top-col--social {}
.footer-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #3a5080;
  color: #fff;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.footer-social-btn:hover {
  background: #2a4070;
  border-color: #6080b0;
}

/* ── Zone légale basse ── */
.footer-legal {
  background: #131f3e;
}
.footer-legal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.footer-legal-inner a {
  color: #8899bb;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  padding: 4px 2px;
}
.footer-legal-inner a:hover { color: #fff; }
.footer-legal-sep {
  color: #3a4e6a;
  padding: 0 6px;
  font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top-inner { grid-template-columns: 1fr; padding: 28px 20px; }
  .footer-top-col   { border-right: none; border-bottom: 1px solid #2e4270; padding: 20px 0; }
  .footer-top-col:last-child { border-bottom: none; }
  .footer-top-col:first-child { padding-top: 0; }
}
@media (max-width: 600px) {
  .footer-legal-inner { padding: 12px 16px; font-size: 10px; }
  .footer-social-btn  { width: 38px; height: 38px; }
}


/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Logo : toujours fluide */
.logo-link svg {
  width: auto;
  max-width: 100%;
  height: 68px;
  display: block;
}

/* ≤ 1024px — tablette paysage */
@media (max-width: 1024px) {
  .header-inner  { padding: 0 20px; }
  .topbar-inner  { padding: 0 20px; }
  .nav-inner     { padding: 0 20px; }
  .content-area  { padding: 24px 20px 40px; }
}

/* ≤ 900px — tablette portrait */
@media (max-width: 900px) {
  .content-area {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px 36px;
  }
  .sidebar { width: 100%; }
}

/* ≤ 768px — mobile large */
@media (max-width: 768px) {
  /* Hero */
  .hero { height: 180px; }

  /* Topbar */
  .topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0 16px;
  }

  /* Header */
  .site-header { padding: 12px 0; }
  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .logo-link svg { height: 48px; }
  .header-right { gap: 8px; }
  .header-search-input { width: 130px; }

  /* Nav scrollable */
  .nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px;
    gap: 0;
    /* barre de scroll invisible mais fonctionnelle */
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-item--double { padding: 10px 10px; }
  .nav-link         { padding: 10px 10px; }
  .nav-bold         { font-size: 11px; }
  .nav-icons        { display: none; }

  /* Contenu */
  .page-title { font-size: 20px; }
  .download-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-download { align-self: stretch; justify-content: center; }

  /* Vue détail */
  .detail-grid { grid-template-columns: 1fr; }

  /* Footer */
}

/* ≤ 640px — mobile standard */
@media (max-width: 640px) {
  /* Recherche */
  .search-row { flex-direction: column; }
  .search-input, .btn-search, .btn-reset { width: 100%; }

  /* Tableau — masque colonne Activités */
  .results-table td:nth-child(4),
  .results-table th:nth-child(4) { display: none; }

  /* Vue détail — label + valeur en colonne */
  .detail-row      { flex-direction: column; gap: 2px; }
  .detail-label    { width: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
  .detail-value    { font-size: 13px; }
}

/* ≤ 480px — petit mobile */
@media (max-width: 480px) {
  /* Logo encore plus petit */
  .logo-link svg { height: 38px; }

  /* Topbar : masque liens secondaires, garde juste EN */
  .topbar-inner a:not(:last-child) { display: none; }
  .topbar-lang { display: block; }

  /* Header padding réduit */
  .header-inner { padding: 0 12px; }
  .site-header { padding: 10px 0; }

  /* Tableau — masque aussi Date sur très petit */
  .results-table td:nth-child(3),
  .results-table th:nth-child(3) { display: none; }

  /* Nom société peut prendre plus de place */
  .td-name-main { font-size: 13px; }
}

/* ≤ 380px — très petit (iPhone SE, Galaxy A) */
@media (max-width: 380px) {
  .header-search-wrap { display: none; }
  .lang-btn { padding: 5px 10px; font-size: 12px; }
  .hero { height: 120px; }
  .page-title { font-size: 18px; }
  .filter-pill { padding: 5px 10px; font-size: 11px; }
}

/* ===== SEARCH BAR STYLE AMF ===== */

.search-bar-amf{
display:flex;
align-items:center;
gap:0;
margin-bottom:20px;
border:1px solid #dcdcdc;
background:white;
}

.search-select{
border:none;
border-right:1px solid #ddd;
padding:12px 14px;
font-size:14px;
background:#f7f7f7;
min-width:220px;
outline:none;
font-family:inherit;
}

.search-input-amf{
flex:1;
border:none;
padding:12px 16px;
font-size:14px;
outline:none;
font-family:inherit;
}

.search-btn-amf{
background:#1a2e5a;
border:none;
width:60px;
height:44px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
transition:background .2s;
}

.search-btn-amf:hover{
background:#c8102e;
}

/* ===== BARRE RECHERCHE STYLE AMF ===== */

.search-bar{
display:flex;
align-items:stretch;
gap:0;
margin-bottom:20px;
width:100%;
border:1px solid #c8c8c8;
background:white;
}

.search-category{
border:none;
border-right:1px solid #ddd;
padding:12px 16px;
background:#f5f5f5;
font-size:14px;
min-width:240px;
font-family:inherit;
outline:none;
color:#333;
}

.search-input{
flex:1;
border:none;
padding:12px 18px;
font-size:14px;
outline:none;
font-family:inherit;
background:white;
}

.search-btn{
width:52px;
background:#1a2e5a;
border:none;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
transition:background .2s;
flex-shrink:0;
}

.search-btn:hover{
background:#c8102e;
}