/* ===========================
   AMF - Autorité des Marchés Financiers
   Reproduction fidèle du site
=========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --amf-navy: #1a2e5a;
  --amf-red: #c8102e;
  --amf-dark-blue: #0d1f3c;
  --amf-mid-blue: #1d3461;
  --amf-light-gray: #f4f4f4;
  --amf-border: #ddd;
  --amf-text: #333;
  --amf-link: #1a2e5a;
  --sidebar-active-bg: #c8102e;
  --btn-primary: #1a2e5a;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--amf-text);
  background: #fff;
}

a {
  color: var(--amf-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===========================
   TOP BAR
=========================== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--amf-border);
  padding: 6px 40px;
  display: flex;
  justify-content: flex-end;
}
.topbar-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.topbar-links a {
  color: #444;
  font-weight: 400;
}
.topbar-links a:hover { color: var(--amf-red); }
.topbar-links .lang {
  font-weight: 600;
  color: var(--amf-navy);
}

/* ===========================
   HEADER
=========================== */
.header {
  background: #fff;
  border-bottom: 2px solid var(--amf-border);
  padding: 10px 40px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.logo-a { color: var(--amf-navy); }
.logo-m { color: var(--amf-red); font-size: 40px; }
.logo-f { color: var(--amf-navy); }

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  color: var(--amf-navy);
  letter-spacing: 1px;
  line-height: 1.5;
  border-left: 2px solid var(--amf-border);
  padding-left: 14px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.nav-item:hover { border-bottom-color: var(--amf-navy); }
.nav-item.active { border-bottom-color: var(--amf-navy); }

.nav-small {
  font-size: 10px;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-bold {
  font-size: 13px;
  font-weight: 700;
  color: var(--amf-navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nav-link {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amf-navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.nav-link:hover { border-bottom-color: var(--amf-navy); text-decoration: none; }

.nav-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--amf-navy);
}
.nav-icon:hover { color: var(--amf-red); }

/* ===========================
   HERO BANNER
=========================== */
.hero {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #b8c5d6 0%, #8a9bb0 40%, #6a7d96 70%, #5a6d86 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect fill='rgba(90,109,134,0.3)' width='100%25' height='100%25'/%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-img-text {
  position: relative;
  font-family: 'Georgia', serif;
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-address {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.hero-address small {
  font-size: 11px;
  font-weight: 400;
  display: block;
}

/* ===========================
   PAGE LAYOUT
=========================== */
.page-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--amf-border);
  padding-top: 20px;
}
.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--amf-navy);
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}
.sidebar-item:hover { background: var(--amf-light-gray); }
.sidebar-item.top-item {
  background: #fff;
  border: none;
  font-weight: 400;
}
.sidebar-item.active-sidebar {
  background: var(--amf-red);
  color: #fff;
  font-weight: 600;
}
.sidebar-item.active-sidebar:hover { background: #a80d26; }
.arrow, .arrow-up { font-size: 18px; }

/* cache le honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.sidebar-sub {
  padding: 11px 20px 11px 30px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-sub:hover { background: var(--amf-light-gray); color: var(--amf-navy); }

/* ===========================
   CONTENT AREA
=========================== */
.content {
  flex: 1;
  padding: 20px 40px 40px;
  max-width: 960px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--amf-navy); }
.breadcrumb a:hover { text-decoration: underline; }
.bc-home { font-size: 15px; }

/* Title */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--amf-navy);
  margin-bottom: 18px;
  line-height: 1.3;
}

/* Intro text */
.intro-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--amf-text);
  margin-bottom: 24px;
}
.intro-text a {
  color: var(--amf-red);
  text-decoration: underline;
}

/* Download button row */
.download-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.btn-download {
  background: var(--amf-navy);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-download:hover { background: #0d1e40; }

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--amf-border);
  margin-bottom: 30px;
  background: #fff;
}
.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: none;
  outline: none;
  font-family: inherit;
}
.search-select {
  padding: 12px 14px;
  font-size: 14px;
  border: none;
  border-left: 1px solid var(--amf-border);
  outline: none;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  min-width: 180px;
  -webkit-appearance: auto;
}
.search-btn {
  background: var(--amf-navy);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: #0d1e40; }

/* Results table */
.results-table {
  margin-bottom: 30px;
  overflow-x: auto;
}
.results-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.results-table thead tr {
  background: var(--amf-navy);
  color: #fff;
}
.results-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.results-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--amf-border);
  vertical-align: top;
}
.results-table tbody tr:hover { background: var(--amf-light-gray); }

.tag-agrée {
  display: inline-block;
  background: #2a7a2a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.badge {
  display: inline-block;
  background: var(--amf-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--amf-navy);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.page-num:hover {
  background: var(--amf-light-gray);
  text-decoration: none;
}
.page-num.current {
  color: var(--amf-red);
  font-weight: 700;
  border-bottom: 2px solid var(--amf-red);
}
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--amf-navy);
  font-size: 18px;
  text-decoration: none;
}
.page-arrow:hover { color: var(--amf-red); }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--amf-navy);
  color: #fff;
  padding: 50px 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.footer-col {
  flex: 1;
}
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.footer-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-link-item a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.footer-link-item a:hover { text-decoration: underline; }
.footer-icon {
  font-size: 20px;
  opacity: 0.85;
}

/* Social buttons */
.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 16px 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom a {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}
.footer-bottom a:hover { color: #fff; }

/* ===========================
   RESPONSIVE (basic)
=========================== */
@media (max-width: 900px) {
  .page-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--amf-border); }
  .content { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .main-nav { gap: 2px; }
  .nav-link { font-size: 11px; padding: 8px 8px; }
}

 * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'Source Sans 3', Arial, sans-serif; color: #333; background: #fff; font-size: 15px; }

    /* TOPBAR */
    .topbar { background: #1a2e5a; color: #fff; font-size: 12px; padding: 6px 0; }
    .topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: flex-end; gap: 20px; }
    .topbar a { color: #ccc; text-decoration: none; }
    .topbar a:hover { color: #fff; }

    /* HEADER */
    .site-header { background: #fff; border-bottom: 3px solid #c8102e; padding: 12px 0; }
    .header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
    .logo-area img { height: 60px; }
    .logo-area { display: flex; align-items: center; }
    .header-right { display: flex; align-items: center; gap: 20px; }
    .header-search { display: flex; border: 1px solid #ccc; }
    .header-search input { border: none; padding: 6px 10px; font-size: 14px; width: 200px; outline: none; }
    .header-search button { background: #1a2e5a; border: none; color: #fff; padding: 6px 12px; cursor: pointer; }
    .lang-btn { background: none; border: 1px solid #1a2e5a; color: #1a2e5a; padding: 5px 12px; cursor: pointer; font-size: 13px; }

    /* NAV */
    .main-nav { background: #1a2e5a; }
    .nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; }
    .main-nav a { color: #fff; text-decoration: none; display: block; padding: 14px 16px; font-size: 14px; font-weight: 600; }
    .main-nav a:hover { background: #c8102e; }

    /* HERO */
    .hero { background: linear-gradient(135deg, #1a2e5a 0%, #2a4a8a 100%); color: #fff; padding: 30px 0; position: relative; }
    .hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .hero h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
    .hero p { font-size: 14px; opacity: .85; }

    /* CONTENT AREA */
    .content-area { max-width: 1200px; margin: 0 auto; padding: 30px 20px; display: flex; gap: 30px; }

    /* SIDEBAR */
    .sidebar { width: 240px; flex-shrink: 0; }
    .sidebar-title { background: #1a2e5a; color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
    .sidebar-nav a { display: block; padding: 9px 14px; font-size: 13px; color: #333; text-decoration: none; border-bottom: 1px solid #e8e8e8; border-left: 3px solid transparent; }
    .sidebar-nav a:hover { background: #f5f5f5; border-left-color: #1a2e5a; }
    .sidebar-nav a.active { background: #f0f4ff; border-left-color: #c8102e; color: #c8102e; font-weight: 600; }

    /* MAIN */
    .main-content { flex: 1; min-width: 0; }
    .breadcrumb { font-size: 12px; color: #666; margin-bottom: 16px; }
    .breadcrumb a { color: #1a2e5a; text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .page-title { font-size: 24px; font-weight: 700; color: #1a2e5a; margin-bottom: 12px; border-bottom: 2px solid #c8102e; padding-bottom: 10px; }
    .intro-text { font-size: 14px; line-height: 1.6; color: #555; margin-bottom: 20px; }

    /* DOWNLOAD */
    .download-bar { display: flex; align-items: center; gap: 12px; background: #f7f7f7; border: 1px solid #ddd; padding: 12px 16px; margin-bottom: 20px; }
    .download-bar span { font-size: 13px; color: #555; flex: 1; }
    .btn-download { background: #1a2e5a; color: #fff; border: none; padding: 8px 18px; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
    .btn-download:hover { background: #c8102e; }

    /* SEARCH BOX */
    .search-section { margin-bottom: 24px; }
    .search-section label { display: block; font-size: 13px; font-weight: 600; color: #1a2e5a; 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; }
    .search-input:focus { border-color: #1a2e5a; }
    .btn-search { background: #1a2e5a; color: #fff; border: none; padding: 10px 20px; font-size: 14px; cursor: pointer; font-family: inherit; }
    .btn-search:hover { background: #c8102e; }
    .btn-reset { background: #fff; color: #1a2e5a; border: 1px solid #1a2e5a; padding: 10px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
    .btn-reset:hover { background: #f0f0f0; }

    /* FILTER PILLS */
    .filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
    .filter-pill { background: #f0f0f0; border: 1px solid #ccc; padding: 5px 12px; font-size: 12px; cursor: pointer; border-radius: 2px; color: #333; }
    .filter-pill:hover, .filter-pill.active { background: #1a2e5a; color: #fff; border-color: #1a2e5a; }

    /* RESULTS COUNT */
    .results-count { font-size: 13px; color: #666; margin-bottom: 12px; }
    .results-count strong { color: #1a2e5a; }

    /* TABLE */
    .results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .results-table thead th { background: #1a2e5a; color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; white-space: nowrap; }
    .results-table tbody tr { border-bottom: 1px solid #e5e5e5; cursor: pointer; transition: background .15s; }
    .results-table tbody tr:hover { background: #f0f4ff; }
    .results-table td { padding: 10px 12px; vertical-align: top; }
    .results-table td:first-child { font-weight: 600; color: #1a2e5a; }

    /* BADGE */
    .badge { display: inline-block; padding: 2px 7px; font-size: 11px; font-weight: 600; border-radius: 2px; white-space: nowrap; }
    .badge-psfp { background: #e8f4fd; color: #1a6fa8; border: 1px solid #b3d7f0; }
    .badge-psan { background: #e6f4ea; color: #2e7d32; border: 1px solid #a5d6a7; }
    .badge-mica { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
    .badge-biens { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }

    /* NO RESULT */
    .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; }
    .pagination button { border: 1px solid #ddd; background: #fff; color: #1a2e5a; padding: 6px 12px; font-size: 13px; cursor: pointer; }
    .pagination button:hover { background: #f0f0f0; }
    .pagination button.active { background: #1a2e5a; color: #fff; border-color: #1a2e5a; }
    .pagination button:disabled { opacity: .4; cursor: not-allowed; }

    /* ===== DETAIL PAGE ===== */
    #detail-view { display: none; }
    .detail-header { background: #1a2e5a; color: #fff; padding: 20px; margin-bottom: 24px; }
    .detail-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
    .detail-header .subtitle { font-size: 14px; opacity: .8; }
    .back-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #1a2e5a; border: none; padding: 8px 16px; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; margin-bottom: 20px; }
    .back-btn:hover { background: #f0f0f0; }
    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
    .detail-card { background: #f8f9fc; border: 1px solid #e0e4ef; padding: 20px; }
    .detail-card h3 { font-size: 13px; font-weight: 700; color: #1a2e5a; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; border-bottom: 2px solid #c8102e; padding-bottom: 6px; }
    .detail-row { display: flex; margin-bottom: 10px; font-size: 13px; }
    .detail-label { color: #666; width: 160px; flex-shrink: 0; font-weight: 600; }
    .detail-value { color: #222; }
    .detail-value a { color: #1a2e5a; }
    .services-list { list-style: none; }
    .services-list li { padding: 6px 10px; background: #fff; border-left: 3px solid #1a2e5a; margin-bottom: 6px; font-size: 13px; color: #333; }
    .status-active { color: #2e7d32; font-weight: 600; }
    .status-radiation { color: #c8102e; font-weight: 600; }

    /* FOOTER */
    .site-footer { background: #1a2e5a; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
    .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; border-bottom: 1px solid #3a4e7a; padding-bottom: 8px; }
    .footer-col a { display: block; color: #ccc; text-decoration: none; font-size: 13px; margin-bottom: 6px; }
    .footer-col a:hover { color: #fff; }
    .footer-bottom { max-width: 1200px; margin: 20px auto 0; padding: 16px 20px 0; border-top: 1px solid #3a4e7a; font-size: 12px; text-align: center; color: #888; }

    /* =============================================
   CORRECTIFS MOBILE – à coller à la fin de amf.css
   ============================================= */

/* Conteneur du tableau : scroll horizontal sur mobile */
#tableContainer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Header search : rétrécit proprement */
.header-search input {
  width: 140px;
}

/* Search row : passe en colonne sur petit écran */
@media (max-width: 640px) {
  .search-row {
    flex-direction: column;
  }
  .search-input {
    width: 100%;
  }
  .btn-search,
  .btn-reset {
    width: 100%;
    text-align: center;
  }
}

/* Filter pills : wrapping correct sur mobile */
.filter-row {
  flex-wrap: wrap;
}

/* Content area : empile sidebar + main sur mobile */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .sidebar {
    width: 100%;
  }

  /* Nav principale : scroll horizontal plutôt que wrapping cassé */
  .nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: block;
    padding: 0;
  }
  .main-nav a {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 14px;
  }

  /* Header : logo + search ne débordent pas */
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-search {
    flex: 1;
    min-width: 0;
  }
  .header-search input {
    width: 100%;
    min-width: 0;
  }

  /* Topbar : centré sur mobile */
  .topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Hero : hauteur réduite */
  .hero img {
    height: 160px;
    object-fit: cover;
  }

  /* Page title */
  .page-title {
    font-size: 20px;
  }

  /* Download bar : passe en colonne */
  .download-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-download {
    align-self: stretch;
    justify-content: center;
  }

  /* Détail : 1 seule colonne */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Tableau : on cache les colonnes moins importantes sur très petit écran */
  .results-table td:nth-child(4),
  .results-table th:nth-child(4),
  .results-table td:nth-child(6),
  .results-table th:nth-child(6) {
    display: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Très petit écran (< 400px) : masquer encore plus de colonnes */
@media (max-width: 400px) {
  .results-table td:nth-child(2),
  .results-table th:nth-child(2),
  .results-table td:nth-child(5),
  .results-table th:nth-child(5) {
    display: none;
  }
  .lang-btn {
    display: none;
  }
}