/* ============================================================
   BOUKLE — Annuaire des Opérateurs
   style.css — Version 1.0.0
   CSS3 Vanilla | Palette Boukle | Google Fonts Inter
   ============================================================ */

/* ── 0. IMPORTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── 1. DESIGN TOKENS ───────────────────────────────────── */
:root {
  /* Palette Boukle */
  --green-primary  : #1f883d;
  --green-dark     : #085041;
  --green-light    : #E1F5EE;
  --green-mid      : #14795A;
  --green-hover    : #17896A;
  --accent-orange  : #F4A261;
  --accent-red     : #E63946;
  --accent-amber   : #F59E0B;

  /* Neutres */
  --white          : #FFFFFF;
  --bg             : #F7F9F8;
  --surface        : #FFFFFF;
  --border         : #E2EAE7;
  --border-hover   : #B8D5CC;
  --text-primary   : #222222;
  --text-secondary : #556B64;
  --text-muted     : #8BA59C;

  /* Typographie */
  --font           : 'Inter', system-ui, -apple-system, sans-serif;
  --fs-xs          : 0.70rem;
  --fs-sm          : 0.80rem;
  --fs-base        : 0.925rem;
  --fs-md          : 1rem;
  --fs-lg          : 1.125rem;
  --fs-xl          : 1.375rem;
  --fs-2xl         : 1.75rem;
  --fs-3xl         : 2.25rem;

  /* Espacements */
  --space-1  : 4px;
  --space-2  : 8px;
  --space-3  : 12px;
  --space-4  : 16px;
  --space-5  : 20px;
  --space-6  : 24px;
  --space-8  : 32px;
  --space-10 : 40px;
  --space-12 : 48px;
  --space-16 : 64px;

  /* Arrondis */
  --radius-sm  : 6px;
  --radius     : 8px;
  --radius-md  : 10px;
  --radius-lg  : 14px;
  --radius-xl  : 20px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-xs  : 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm  : 0 2px 8px rgba(0,0,0,.08);
  --shadow-md  : 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg  : 0 8px 32px rgba(0,0,0,.12);
  --shadow-card-hover: 0 8px 28px rgba(29,158,117,.15);

  /* Transitions */
  --ease       : cubic-bezier(.4,0,.2,1);
  --duration   : 200ms;
  --duration-md: 300ms;

  /* Layout */
  --container-max : 1380px;
  --header-h      : 72px;
}

/* ── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family  : var(--font);
  font-size    : var(--fs-base);
  color        : var(--text-primary);
  background   : var(--bg);
  line-height  : 1.6;
  min-height   : 100vh;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
ul, ol { list-style: none; }

/* ── 3. UTILITAIRES ─────────────────────────────────────── */
.container {
  width    : 100%;
  max-width: var(--container-max);
  margin   : 0 auto;
  padding  : 0 var(--space-6);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden;   clip: rect(0,0,0,0);
}

.text-center { text-align: center; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.gap-2       { gap: var(--space-2); }
.gap-3       { gap: var(--space-3); }

/* ── 4. HEADER ──────────────────────────────────────────── */
.site-header {
  position    : sticky;
  top         : 0;
  z-index     : 100;
  background  : var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow  : 0 1px 3px rgba(0,0,0,.05);
}

.header-inner {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  min-height     : var(--header-h);
  padding        : var(--space-3) 0;
  gap            : var(--space-4);
}

.logo-section {
  --logo-wordmark-w: 130px;
  --logo-wordmark-h: calc(var(--logo-wordmark-w) * 114 / 627);
  --logo-tagline-h : calc(0.65rem * 1.2);
  --logo-lockup-h  : calc(var(--logo-wordmark-h) + var(--logo-tagline-h) + 2px);

  display    : flex;
  align-items: center;
  gap        : var(--space-2);
  flex-shrink: 0;
}

.logo-green-wrap {
  display    : flex;
  align-items: center;
  flex-shrink: 0;
  width      : var(--logo-lockup-h);
  height     : var(--logo-lockup-h);
}

.logo-green {
  display   : block;
  width     : 100%;
  height    : 100%;
  object-fit: contain;
}

.logo-text-block {
  display        : flex;
  flex-direction : column;
  justify-content: center;
  gap            : 2px;
  min-height     : 0;
}

.logo-wrap {
  display    : inline-block;
  align-items: center;
  flex-shrink: 0;
  transition : opacity var(--duration) var(--ease);
}

.logo-wrap:hover { opacity: .85; }
.logo-title-row {
  display    : flex;
  align-items: center;
  gap        : var(--space-3);
}

.logo-divider {
  width     : 1px;
  height    : 20px;
  background: var(--border);
}

.logo-annuaire-label {
  font-size     : var(--fs-xl);
  font-weight   : 700;
  color         : var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.logo-img {
  width     : var(--logo-wordmark-w);
  height    : auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-tagline {
  font-size     : 0.7rem;
  color         : var(--text-secondary);
  font-weight   : 400;
  letter-spacing: 0;
  text-transform: none;
  white-space   : nowrap;
  line-height   : 1.2;
}

/* Green circle inside the logo lockup: keep same size as the wordmark height and place left */

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-green-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-green {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-block {
  display        : flex;
  flex-direction : column;
  justify-content: center;
  gap            : 6px;
}

.logo-img {
  width     : var(--logo-wordmark-w);
  height    : auto;
  object-fit: contain;
}

.header-stats {
  display    : flex;
  align-items: center;
  gap        : var(--space-8);
  flex-shrink: 0;
}

.header-stat {
  text-align: center;
}

.header-stat-number {
  font-size  : var(--fs-2xl);
  font-weight: 800;
  color      : var(--green-dark);
  display    : block;
  line-height: 1;
}

.header-stat-label {
  font-size  : var(--fs-sm);
  color      : var(--text-secondary);
  margin-top : var(--space-1);
  display    : block;
  font-weight: 500;
  white-space: nowrap;
}

.header-badge {
  display    : flex;
  align-items: center;
  gap        : var(--space-1);
  background : var(--green-light);
  border     : 1px solid var(--green-primary);
  border-radius: var(--radius-full);
  padding    : var(--space-1) var(--space-3);
  color      : var(--green-dark);
  font-size  : var(--fs-xs);
  font-weight: 500;
  transition : all var(--duration) var(--ease);
}

.header-badge:hover {
  background : var(--green-primary);
  color      : var(--white);
  border-color: var(--green-primary);
}

.header-badge .dot {
  width : 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.8); }
}

/* ── 5. SEARCH & FILTERS ────────────────────────────────── */
.filters-sticky-sentinel {
  height    : 1px;
  visibility: hidden;
  pointer-events: none;
}

.search-filters {
  --filters-inset: max(var(--space-6), calc((100vw - var(--container-max)) / 2));

  border-bottom: none;
  box-shadow: none;
  padding: var(--space-6) var(--filters-inset) 0;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: transparent;
  transition: padding 450ms cubic-bezier(.22, 1, .36, 1),
              background-color 450ms cubic-bezier(.22, 1, .36, 1),
              box-shadow 450ms cubic-bezier(.22, 1, .36, 1);
}

.search-filters.is-stuck {
  padding: 0;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(8, 80, 65, .08);
}

.filters-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);

  width        : 100%;
  padding      : var(--space-5) var(--space-6);

  background   : var(--white);
  border-radius: var(--radius-xl);
  box-shadow   : var(--shadow-sm);
  border       : 1px solid var(--border);
  margin-bottom: var(--space-5);

  transition: border-radius 450ms cubic-bezier(.22, 1, .36, 1),
              box-shadow    450ms cubic-bezier(.22, 1, .36, 1),
              border-color  450ms cubic-bezier(.22, 1, .36, 1);
  will-change : border-radius;
}

@media (prefers-reduced-motion: reduce) {
  .search-filters,
  .filters-inner {
    transition: none;
  }
}

.search-filters.is-stuck .filters-inner {
  border-radius: 0;
  border-left  : none;
  border-right : none;
  border-top   : none;
  box-shadow   : none;
  margin-bottom: var(--space-5);
}

/* Barre de recherche */
.search-bar-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left    : var(--space-4);
  top     : 50%;
  transform: translateY(-50%);
  color   : var(--text-muted);
  pointer-events: none;
  transition: color var(--duration) var(--ease);
}

#search-input {
  width         : 100%;
  padding       : 14px var(--space-4) 14px calc(var(--space-4) + 28px);
  border        : 2px solid var(--border);
  border-radius : var(--radius-lg);
  font-size     : var(--fs-md);
  font-family   : var(--font);
  color         : var(--text-primary);
  background    : linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  transition    : border-color var(--duration) var(--ease),
                  box-shadow   var(--duration) var(--ease),
                  background   var(--duration) var(--ease);
  outline       : none;
}

#search-input::placeholder { color: var(--text-muted); }

#search-input:focus {
  border-color : var(--green-primary);
  box-shadow   : 0 0 0 4px rgba(29,158,117,.12);
  background   : var(--white);
}

#search-input:focus + .search-icon,
.search-bar-wrap:focus-within .search-icon {
  color: var(--green-primary);
}

/* Hide native search clear button */
input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

/* Toolbar filtres */
.filters-toolbar {
  display      : flex;
  align-items  : flex-end;
  gap          : var(--space-3);
  flex-wrap    : nowrap;
  padding      : 0;
  background   : transparent;
  border       : none;
  border-radius: 0;
  box-shadow   : none;
}

.filters-toolbar__fields {
  display  : flex;
  gap      : var(--space-3);
  flex     : 1 1 auto;
  min-width: 0;
}

.filters-toolbar__divider {
  width      : 1px;
  height     : 42px;
  background : linear-gradient(180deg, transparent, var(--border-hover), transparent);
  flex-shrink: 0;
  align-self : center;
}

.filters-toolbar__actions {
  display    : flex;
  align-items: center;
  gap        : var(--space-2);
  flex-shrink: 0;
}

.filters-toolbar__results {
  flex-shrink: 0;
  margin-left: auto;
  align-self : flex-end;
}

.filter-results-group {
  display       : flex;
  flex-direction: column;
  gap           : 6px;
}

.filter-results-label {
  display       : inline-flex;
  align-items   : center;
  gap           : 5px;
  font-size     : var(--fs-xs);
  font-weight   : 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  visibility    : hidden;
  user-select   : none;
}

.filter-group {
  display       : flex;
  flex-direction: column;
  gap           : 6px;
  flex          : 1 1 0;
  min-width     : 0;
}

.filter-group label {
  display       : inline-flex;
  align-items   : center;
  gap           : 5px;
  font-size     : var(--fs-xs);
  font-weight   : 700;
  color         : var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.filter-group label svg {
  color       : var(--green-primary);
  flex-shrink : 0;
  opacity     : .9;
}

.filter-group select {
  width        : 100%;
  min-height   : 42px;
  padding      : var(--space-2) var(--space-3);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size    : var(--fs-sm);
  font-family  : var(--font);
  font-weight  : 500;
  color        : var(--text-primary);
  background   : var(--white);
  outline      : none;
  cursor       : pointer;
  appearance   : none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231D9E75' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat  : no-repeat;
  background-position: right var(--space-3) center;
  padding-right      : var(--space-8);
  box-shadow         : 0 1px 2px rgba(8,80,65,.04);
  transition         : border-color var(--duration) var(--ease),
                       box-shadow   var(--duration) var(--ease),
                       transform    var(--duration) var(--ease);
}

.filter-group select:hover {
  border-color: var(--border-hover);
  box-shadow  : 0 2px 6px rgba(29,158,117,.08);
}

.filter-group select:focus {
  border-color: var(--green-primary);
  box-shadow  : 0 0 0 3px rgba(29,158,117,.12);
}

/* Carte toggle vérifié */
.filter-verified-card {
  display      : flex;
  align-items  : center;
  gap          : var(--space-3);
  min-height   : 42px;
  padding      : 0 var(--space-3);
  background   : var(--white);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow   : 0 1px 2px rgba(8,80,65,.04);
  transition   : border-color var(--duration) var(--ease),
                 box-shadow   var(--duration) var(--ease);
}

.filter-verified-card:has(input:checked) {
  border-color: rgba(29,158,117,.45);
  background  : linear-gradient(180deg, var(--white) 0%, var(--green-light) 100%);
  box-shadow  : 0 2px 8px rgba(29,158,117,.12);
}

.filter-verified-label {
  display       : inline-flex;
  align-items   : center;
  gap           : 5px;
  font-size     : var(--fs-xs);
  font-weight   : 700;
  color         : var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space   : nowrap;
  user-select   : none;
}

.filter-verified-label svg {
  color: var(--green-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: background-color var(--duration) var(--ease);
  border-radius: var(--radius-full);
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: transform var(--duration) var(--ease);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.toggle-switch input:checked + .toggle-label {
  background-color: var(--green-primary);
}

.toggle-switch input:checked + .toggle-label:before {
  transform: translateX(22px);
}

.toggle-switch input:focus + .toggle-label {
  box-shadow: 0 0 0 3px rgba(29,158,117,.2);
}

/* Bouton reset */
.btn-reset {
  display      : inline-flex;
  align-items  : center;
  gap          : var(--space-2);
  min-height   : 42px;
  padding      : 0 var(--space-4);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background   : var(--white);
  color        : var(--text-secondary);
  font-size    : var(--fs-sm);
  font-weight  : 600;
  white-space  : nowrap;
  transition   : all var(--duration) var(--ease);
  flex-shrink  : 0;
  box-shadow   : 0 1px 2px rgba(8,80,65,.04);
}

.btn-reset-icon {
  display        : grid;
  place-items    : center;
  width          : 22px;
  height         : 22px;
  border-radius  : 50%;
  background     : var(--green-light);
  color          : var(--green-dark);
  flex-shrink    : 0;
  padding        : 0;
  transition     : background var(--duration) var(--ease),
                   color      var(--duration) var(--ease);
}

.btn-reset-icon svg {
  display: block;
}

.btn-reset:hover {
  border-color: var(--green-primary);
  color       : var(--green-dark);
  background  : var(--green-light);
  box-shadow  : 0 2px 8px rgba(29,158,117,.12);
}

.btn-reset:hover .btn-reset-icon {
  background: var(--green-primary);
  color     : var(--white);
}

/* Compteur résultats */
.results-count {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  box-sizing     : border-box;
  height         : 42px;
  margin         : 0;
  padding        : 0 var(--space-4);
  background     : var(--green-light);
  border-radius  : var(--radius-md);
  border         : 1px solid rgba(29,158,117,.2);
  font-size      : var(--fs-sm);
  color          : var(--green-dark);
  font-weight    : 600;
  white-space    : nowrap;
  line-height    : 1;
}

.results-count span {
  font-size   : var(--fs-lg);
  font-weight : 800;
  color       : var(--green-primary);
  margin-right: var(--space-1);
  line-height : 1;
}

.active-filters {
  display    : flex;
  align-items: center;
  gap        : var(--space-2);
  flex-wrap  : wrap;
  min-height : 0;
  padding    : var(--space-3) var(--space-4);
  background : var(--bg);
  border     : 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
}

.active-filters:not(:has(.filter-tag)) {
  display: none;
}

.active-filters::before {
  content    : 'Filtres actifs :';
  font-size  : var(--fs-xs);
  font-weight: 700;
  color      : var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-right: var(--space-1);
}

.filter-tag {
  display    : inline-flex;
  align-items: center;
  gap        : var(--space-1);
  background : var(--green-primary);
  color      : var(--white);
  border-radius: var(--radius-full);
  padding    : 2px var(--space-3);
  font-size  : var(--fs-xs);
  font-weight: 500;
}

.filter-tag button {
  background: transparent; border: none;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 var(--space-1);
  transition: color var(--duration) var(--ease);
}
.filter-tag button:hover { color: var(--white); }

/* ── 7. OPERATORS GRID ──────────────────────────────────── */
.operators-section {
  padding: 0 0 var(--space-10);
}

.section-header {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  margin-bottom  : var(--space-6);
}

.section-title {
  font-size  : var(--fs-xl);
  font-weight: 700;
  color      : var(--text-primary);
}

.operators-grid {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  gap                  : var(--space-5);
}

/* Responsive Grid - Manager Document Specs */
@media (max-width: 1024px) {
  .operators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .operators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .operators-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 8. OPERATOR CARD ───────────────────────────────────── */
.operator-card {
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow     : hidden;
  display      : flex;
  flex-direction: column;
  transition   : transform var(--duration-md) var(--ease),
                 box-shadow var(--duration-md) var(--ease),
                 border-color var(--duration-md) var(--ease);
  cursor       : default;
  animation    : card-in .3s var(--ease) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.operator-card:hover {
  transform   : translateY(-4px);
  box-shadow  : var(--shadow-card-hover);
  border-color: var(--green-primary);
}

/* Bande top colorée selon type - harmonisé en vert unique */
.card-top-bar {
  display: none;
  height    : 4px;
  background: var(--green-primary);
}

.operator-card.type-recycleur .card-top-bar {
  background: var(--green-primary);
}

.operator-card.type-collecteur .card-top-bar {
  background: var(--green-primary);
}

/* Card Header */
.card-header {
  display    : flex;
  align-items: flex-start;
  gap        : var(--space-3);
  padding    : var(--space-4) var(--space-4) 0;
}

.card-logo {
  width        : 52px; height: 52px;
  border-radius: var(--radius);
  background   : var(--white);
  display      : flex; align-items: center; justify-content: center;
  flex-shrink  : 0;
  overflow     : hidden;
  border       : 1px solid var(--border);
  padding      : 4px;
}

.card-logo img {
  width      : 100%;
  height     : 100%;
  object-fit : contain;
}

.card-logo-icon {
  color: var(--green-primary);
}

.card-meta {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size    : var(--fs-base);
  font-weight  : 700;
  color        : var(--text-primary);
  line-height  : 1.3;
  margin-bottom: var(--space-2);
  /* Truncate to 2 lines */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badges {
  display    : flex;
  align-items: center;
  gap        : 2px;
  flex-wrap  : wrap;
}

/* Badges génériques */
.badge {
  display      : inline-flex;
  align-items  : center;
  gap          : 3px;
  padding      : 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size    : var(--fs-xs);
  font-weight  : 600;
  white-space  : nowrap;
}

.badge-verified {
  display       : inline-flex;
  align-items   : center;
  gap           : 6px;
  padding       : 0;
  margin-right  : 8px;
  background    : none;
  border        : none;
  color         : var(--green-dark);
  font-weight   : 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.badge-verified svg {
  flex-shrink: 0;
}

.badge-collecteur {
  background: #;
  color     : #047857;
  border    : 1px solid #6EE7B7;
}

.badge-recycleur {
  background: var(--green-light);
  color     : var(--green-dark);
  border    : 1px solid #A7D9C9;
}

.badge-collecteurs_recycleurs {
  background: linear-gradient(135deg, #E1F5EE 0%, #EFF6FF 100%);
  color     : #0F5132;
  border    : 1px solid #B8D5CC;
}

.badge-danger {
  background: #FEF2F2;
  color     : #DC2626;
  border    : 1px solid #FECACA;
}

/* Card Body */
.card-body {
  padding: var(--space-4);
  flex   : 1;
  display: flex;
  flex-direction: column;
  gap    : var(--space-3);
}

/* Info items */
.card-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-info-item {
  display    : flex;
  align-items: flex-start;
  gap        : var(--space-2);
  font-size  : var(--fs-sm);
  color      : var(--text-secondary);
  line-height: 1.4;
}

.card-info-item.address-truncated {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.card-info-item.address-truncated:hover {
  white-space: normal;
  overflow: visible;
}

.card-info-item svg {
  flex-shrink: 0;
  margin-top : 2px;
  color      : var(--green-primary);
}

.card-info-item strong {
  font-weight: 600;
  color      : var(--text-primary);
}

/* Déchets tags */
.waste-tags {
  display  : flex;
  flex-wrap: wrap;
  gap      : var(--space-1);
}

.waste-tag {
  padding      : 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size    : var(--fs-xs);
  font-weight  : 500;
  background   : var(--bg);
  color        : var(--text-secondary);
  border       : 1px solid var(--border);
  transition   : all var(--duration) var(--ease);
}

.waste-tag:hover {
  background  : var(--green-light);
  color       : var(--green-dark);
  border-color: var(--green-primary);
}

.waste-tag.danger {
  background: #FEF2F2;
  color     : #DC2626;
  border    : 1px solid #FECACA;
}

.waste-tag.hidden {
  display: none !important;
}

.waste-tag.overflow-more {
  background: var(--green-soft, #DCF7EE);
  color: var(--green-dark);
  border: 1px solid var(--green-primary);
  cursor: pointer;
}

.waste-tag.overflow-more.opened {
  background: var(--green-light);
}

/* Bloc agrément dangereux (legacy cards) */
.agrement-block {
  background   : #FEF2F2;
  border       : 1.5px solid #FECACA;
  border-radius: var(--radius);
  padding      : var(--space-3);
  margin-top   : var(--space-2);
}

.agrement-block.conforme      { background:#ECFDF5; border-color:#A7F3D0; }
.agrement-block.non_conforme  { background:#FEF2F2; border-color:#FECACA; }
.agrement-block.en_cours      { background:#FFFBEB; border-color:#FDE68A; }

/* Conformité modal — minimalist */
.compliance-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.compliance-kicker {
  font-size     : var(--fs-xs);
  font-weight   : 600;
  color         : var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.compliance-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

.compliance-row {
  display        : flex;
  align-items    : baseline;
  justify-content: space-between;
  gap            : var(--space-4);
  padding-bottom : var(--space-3);
  border-bottom  : 1px solid var(--border);
}

.compliance-row:last-child {
  padding-bottom: 0;
  border-bottom : none;
}

.compliance-row dt {
  font-size  : var(--fs-sm);
  font-weight: 500;
  color      : var(--text-secondary);
}

.compliance-row dd {
  margin     : 0;
  font-size  : var(--fs-sm);
  font-weight: 600;
  color      : var(--text-primary);
  text-align : right;
}

.compliance-row-status dd {
  font-weight: 700;
}

.compliance-status {
  display    : inline-flex;
  align-items: center;
  gap        : 6px;
  background : none;
  padding    : 0;
  font-weight: 700;
}

.compliance-status svg {
  flex-shrink: 0;
}

.compliance-status-conforme {
  color: #059669;
}

.compliance-status-en_cours {
  color: #D97706;
}

.compliance-status-non_conforme {
  color: #DC2626;
}

.agrement-header {
  display    : flex;
  align-items: center;
  gap        : var(--space-2);
  margin-bottom: var(--space-2);
}

.agrement-label {
  font-size  : var(--fs-xs);
  font-weight: 700;
  color      : #DC2626;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.agrement-block.conforme .agrement-label     { color: #059669; }
.agrement-block.en_cours .agrement-label     { color: #D97706; }

.agrement-grid {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : var(--space-1) var(--space-3);
}

.agrement-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.agrement-field .af-label {
  font-size  : 0.65rem;
  color      : var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.agrement-field .af-value {
  font-size  : var(--fs-xs);
  font-weight: 700;
  color      : var(--text-primary);
}

.statut-pill {
  display      : inline-flex;
  align-items  : center;
  gap          : 3px;
  padding      : 0;
  border-radius: 0;
  font-size    : var(--fs-xs);
  font-weight  : 700;
  background   : none;
}

.statut-conforme    { color:#059669; }
.statut-non_conforme{ color:#DC2626; }
.statut-en_cours    { color:#D97706; }

.compliance-status-active    { color:#059669; }
.compliance-status-expired   { color:#DC2626; }
.compliance-status-revoked   { color:#DC2626; }
.compliance-status-suspended{ color:#DC2626; }
.compliance-status-pending   { color:#D97706; }
.compliance-status-conforme  { color:#059669; }
.compliance-status-non_conforme { color:#DC2626; }

/* Card Footer */
.card-footer {
  padding        : 0 var(--space-4) var(--space-4);
  display        : flex;
  gap            : var(--space-2);
  margin-top     : auto;
  flex-wrap      : wrap;
}

.card-footer .btn {
  flex: 1;
  min-width: calc(50% - var(--space-1));
}

.card-footer .btn-compliance {
  font-size: var(--fs-xs);
  padding: var(--space-2) var(--space-3);
}

.btn {
  flex        : 1;
  display     : flex;
  align-items : center;
  justify-content: center;
  gap         : var(--space-2);
  padding     : var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size   : var(--fs-sm);
  font-weight : 600;
  border      : 2px solid transparent;
  transition  : all var(--duration) var(--ease);
  white-space : nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color     : var(--white);
  border-color: var(--green-primary);
}

.btn-outline {
  background: transparent;
  color     : var(--green-primary);
  border-color: var(--green-primary);
}

/* ── 9. LOAD MORE BUTTON ───────────────────────────────── */
/* ── 9. LOAD MORE BUTTON ───────────────────────────────── */
.btn-load-more {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-3) var(--space-6);
  width: fit-content;
  min-width: 200px;
  background: var(--green-primary);
  border: 2px solid var(--green-primary);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-load-more:hover {
  background: var(--white);
  color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}

.btn-load-more:focus-visible {
  outline: 3px solid rgba(29,158,117,0.18);
  outline-offset: 2px;
}

/* ── 10. EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align : center;
  padding    : var(--space-16) var(--space-6);
}

.empty-icon {
  width : 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display : flex; align-items: center; justify-content: center;
  margin  : 0 auto var(--space-5);
  color   : var(--green-primary);
}

.empty-state h3 {
  font-size  : var(--fs-lg);
  font-weight: 700;
  color      : var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color    : var(--text-secondary);
  font-size: var(--fs-base);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.empty-success {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.empty-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
}

.empty-success h3 {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-success p {
  color: var(--text-secondary);
  margin: 0 auto;
}

.contact-form {
  max-width: 400px;
  margin: var(--space-6) auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── 10. NEWS SECTION ───────────────────────────────────── */
.news-section {
  background  : var(--white);
  border-top  : 2px solid var(--border);
  padding     : var(--space-12) 0;
}

.news-header {
  display        : flex;
  justify-content: space-between;
  align-items    : center;
  margin-bottom  : var(--space-8);
}
.news-filter-bar {
  display    : flex;
  align-items: center;
  gap        : var(--space-3);
  flex-shrink: 0;
}

.news-type-select {
  min-height   : 42px;
  min-width    : 200px;
  padding      : var(--space-2) var(--space-3);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size    : var(--fs-sm);
  font-family  : var(--font);
  font-weight  : 500;
  color        : var(--text-primary);
  background   : var(--white);
  outline      : none;
  cursor       : pointer;
  appearance   : none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23085041' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat  : no-repeat;
  background-position: right var(--space-3) center;
  padding-right      : var(--space-8);
  transition: border-color var(--duration) var(--ease),
              box-shadow   var(--duration) var(--ease);
}

.news-type-select:hover {
  border-color: var(--border-hover);
}

.news-type-select:focus {
  border-color: var(--green-primary);
  box-shadow  : 0 0 0 3px rgba(29,158,117,.12);
}

@media (max-width: 600px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .news-filter-bar {
    width: 100%;
  }
  .news-type-select {
    flex: 1;
    min-width: 0;
  }
}

.section-eyebrow {
  font-size    : var(--fs-xs);
  font-weight  : 700;
  color        : var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.news-header h2 {
  font-size  : var(--fs-xl);
  font-weight: 700;
  color      : var(--text-primary);
}

.news-grid {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  gap                  : var(--space-5);
}

.news-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.news-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}

.news-empty-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 450px;
  margin: 0;
}

.news-card {
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow     : hidden;
  background   : var(--surface);
  display      : flex;
  flex-direction: column;
  transition   : transform var(--duration-md) var(--ease),
                 box-shadow var(--duration-md) var(--ease);
}

.news-card:hover {
  transform : translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card-type-bar {
  height    : 3px;
}
.type-bar-actualite     { background: var(--green-primary); }
.type-bar-opportunite   { background: var(--accent-orange); }
.type-bar-appel_projet  { background: #8B5CF6; }
.type-bar-evenement     { background: #06B6D4; }
.type-bar-reglementation{ background: var(--accent-red); }

.news-card-body {
  padding: var(--space-4);
  flex   : 1;
  display: flex;
  flex-direction: column;
  gap    : var(--space-3);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
}

.news-type-badge {
  display      : inline-flex;
  align-items  : center;
  gap          : var(--space-1);
  padding      : 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size    : var(--fs-xs);
  font-weight  : 600;
  width        : fit-content;
}

.news-type-actualite      { background:#ECFDF5; color:#059669; }
.news-type-opportunite    { background:#FFF7ED; color:#C2410C; }
.news-type-appel_projet   { background:#F3E8FF; color:#7C3AED; }
.news-type-evenement      { background:#ECFEFF; color:#0E7490; }
.news-type-reglementation { background:#FEF2F2; color:#DC2626; }

.news-card-title {
  font-size  : var(--fs-base);
  font-weight: 700;
  color      : var(--text-primary);
  line-height: 1.4;
  display    : -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow   : hidden;
}

.news-card-desc {
  font-size  : var(--fs-sm);
  color      : var(--text-secondary);
  line-height: 1.6;
  display    : -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow   : hidden;
  flex       : 1;
}

.news-card-footer {
  padding    : 0 var(--space-4) var(--space-4);
  display    : flex;
  align-items: center;
  justify-content: flex-start;
  gap        : var(--space-3);
}

.news-date {
  font-size : var(--fs-xs);
  color     : var(--text-muted);
  font-weight: 500;
}
.news-detail-link {
  font-size     : var(--fs-xs);
  font-weight   : 700;
  color         : var(--text-secondary);
  text-decoration: none;
  margin-left   : auto;
  transition    : color var(--duration) var(--ease);
}

.news-detail-link:hover {
  color: var(--green-dark);
}

.btn-link {
  display    : flex;
  align-items: center;
  gap        : var(--space-1);
  color      : var(--green-primary);
  font-size  : var(--fs-sm);
  font-weight: 600;
  border     : none;
  background : none;
  padding    : 0;
  transition : gap var(--duration) var(--ease);
}

.btn-link:hover { gap: var(--space-2); }

/* ── 11. FOOTER ─────────────────────────────────────────── */
/* Footer removed from index; scroll top button remains active. */

/* ── 12. MODAL CONTACT ──────────────────────────────────── */
.modal-overlay {
  position  : fixed; inset: 0; z-index: 1000;
  background: rgba(8,80,65,.5);
  backdrop-filter: blur(4px);
  display   : flex; align-items: center; justify-content: center;
  opacity   : 0; visibility: hidden;
  transition: opacity var(--duration-md) var(--ease),
              visibility var(--duration-md) var(--ease);
  padding   : var(--space-5);
}

.modal-overlay.open {
  opacity   : 1;
  visibility: visible;
}

.modal {
  background   : var(--white);
  border-radius: var(--radius-xl);
  max-width    : 480px;
  width        : 100%;
  overflow     : hidden;
  transform    : scale(.96) translateY(10px);
  transition   : transform var(--duration-md) var(--ease);
  box-shadow   : var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  background : var(--green-dark);
  padding    : var(--space-5) var(--space-6);
  display    : flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size  : var(--fs-md);
  font-weight: 700;
  color      : var(--white);
}

.modal-close {
  background   : rgba(255,255,255,.15);
  border       : none;
  border-radius: 50%;
  width        : 32px; height: 32px;
  flex-shrink  : 0;
  display      : flex; align-items: center; justify-content: center;
  color        : var(--white);
  line-height  : 0;
  cursor       : pointer;
  transition   : background var(--duration) var(--ease);
}

.modal-close:hover { background: rgba(255,255,255,.25); }

.modal-body {
  padding: var(--space-6);
}

.modal-annonces {
  max-width: 560px;
}

.annonces-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.annonces-section-title {
  font-size    : var(--fs-xs);
  font-weight  : 700;
  color        : var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: var(--space-3);
  display      : flex;
  align-items  : center;
  gap          : var(--space-2);
}

.annonces-count {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  min-width      : 22px;
  height         : 22px;
  padding        : 0 6px;
  border-radius  : var(--radius-full);
  background     : var(--green-primary);
  color          : var(--white);
  font-size      : var(--fs-xs);
  font-weight    : 800;
}

.annonces-activity-desc {
  font-size    : var(--fs-sm);
  color        : var(--text-primary);
  line-height  : 1.65;
  margin-bottom: var(--space-3);
}

.annonces-activity-meta {
  display  : flex;
  flex-wrap: wrap;
  gap      : var(--space-2);
  margin-bottom: var(--space-3);
}

.annonces-meta-pill {
  display      : inline-flex;
  align-items  : center;
  padding      : 4px var(--space-3);
  border-radius: var(--radius-full);
  background   : var(--green-light);
  border       : 1px solid rgba(29,158,117,.18);
  color        : var(--green-dark);
  font-size    : var(--fs-xs);
  font-weight  : 600;
}

.annonces-waste-tags {
  display  : flex;
  flex-wrap: wrap;
  gap      : var(--space-2);
}

.annonces-waste-tag {
  display      : inline-flex;
  padding      : 3px var(--space-2);
  border-radius: var(--radius-sm);
  background   : var(--bg);
  border       : 1px solid var(--border);
  color        : var(--text-secondary);
  font-size    : var(--fs-xs);
  font-weight  : 500;
}

.annonces-waste-tag.danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.annonces-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.annonce-item {
  padding      : var(--space-4);
  background   : var(--bg);
  border       : 1px solid var(--border);
  border-radius: var(--radius-md);
  transition   : border-color var(--duration) var(--ease);
}

.annonce-item:hover {
  border-color: var(--border-hover);
}

.annonce-item-head {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  gap            : var(--space-2);
  margin-bottom  : var(--space-2);
}

.annonce-type {
  display      : inline-flex;
  padding      : 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size    : var(--fs-xs);
  font-weight  : 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.annonce-type-offre {
  background: #d1fae5;
  color     : #059669;
  border    : 1px solid #10b981;
}

.annonce-type-demande {
  background: #dbeafe;
  color     : #2563eb;
  border    : 1px solid #3b82f6;
}

.annonce-type-unknown {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.annonce-date {
  font-size: var(--fs-xs);
  color    : var(--text-muted);
}

.annonce-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.annonce-detail-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  font-size: var(--fs-xs);
}

.annonce-title {
  font-size    : var(--fs-sm);
  font-weight  : 700;
  color        : var(--text-primary);
  margin-bottom: var(--space-1);
  line-height  : 1.4;
}

.annonce-desc {
  font-size  : var(--fs-sm);
  color      : var(--text-secondary);
  line-height: 1.55;
}

.annonces-empty {
  text-align: center;
  padding   : var(--space-6) var(--space-4);
}

.annonces-empty-icon {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  width          : 56px;
  height         : 56px;
  margin         : 0 auto var(--space-4);
  border-radius  : 50%;
  background     : var(--green-light);
  color          : var(--green-primary);
}

.annonces-empty-title {
  font-size    : var(--fs-md);
  font-weight  : 700;
  color        : var(--green-dark);
  margin-bottom: var(--space-2);
}

.annonces-empty-text {
  font-size  : var(--fs-sm);
  color      : var(--text-secondary);
  line-height: 1.6;
  max-width  : 320px;
  margin     : 0 auto;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info-item {
  display    : flex;
  align-items: flex-start;
  gap        : var(--space-4);
  padding    : var(--space-4);
  background : var(--bg);
  border-radius: var(--radius);
  border     : 1px solid var(--border);
  transition : border-color var(--duration) var(--ease),
               background   var(--duration) var(--ease);
}

.contact-info-item:hover {
  border-color: var(--green-primary);
  background  : var(--green-light);
}

.contact-icon {
  width : 40px; height: 40px;
  background: var(--green-light);
  border-radius: var(--radius);
  display : flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color   : var(--green-primary);
}

.contact-info-item:hover .contact-icon {
  background: var(--green-primary);
  color     : var(--white);
}

.ci-label {
  font-size  : var(--fs-xs);
  color      : var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  display    : block;
  margin-bottom: 2px;
}

.ci-value {
  font-size  : var(--fs-base);
  font-weight: 600;
  color      : var(--text-primary);
  word-break : break-all;
}

/* ── 13. LOADER / SKELETON ──────────────────────────────── */
.skeleton-grid {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  gap                  : var(--space-5);
}

.skeleton-card {
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding      : var(--space-5);
  overflow     : hidden;
}

.skeleton-line {
  height       : 14px;
  border-radius: var(--radius-sm);
  background   : linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation    : shimmer 1.4s infinite;
  margin-bottom: var(--space-3);
}

.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.circle {
  width : 52px; height: 52px;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 14. SCROLL TO TOP ──────────────────────────────────── */
.scroll-top {
  position  : fixed;
  bottom    : var(--space-6);
  right     : var(--space-6);
  width     : 44px; height: 44px;
  background: var(--green-primary);
  border    : none; border-radius: 50%;
  display   : flex; align-items: center; justify-content: center;
  color     : var(--white);
  box-shadow: var(--shadow-md);
  opacity   : 0; visibility: hidden;
  transform : translateY(10px);
  transition: all var(--duration-md) var(--ease);
  z-index   : 50;
}

.scroll-top.visible {
  opacity   : 1;
  visibility: visible;
  transform : translateY(0);
}

.scroll-top:hover {
  background: var(--green-dark);
  transform : translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── 15. RESPONSIVE ─────────────────────────────────────── */

/* Laptop ≤ 1200px → 3 col */
@media (max-width: 1200px) {
  .operators-grid,
  .news-grid,
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters-toolbar {
    overflow-x: auto;
    scrollbar-width: thin;
    gap: var(--space-2);
  }

  .filter-group {
    flex: 0 1 135px;
  }
}

/* Tablet ≤ 900px → 2 col */
@media (max-width: 900px) {
  .operators-grid,
  .news-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-stats { gap: var(--space-6); }

  .filters-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
    gap      : var(--space-3);
  }

  .filters-toolbar__fields {
    flex     : 1 1 100%;
    flex-wrap: wrap;
  }

  .filters-toolbar__divider {
    display: none;
  }

  .filters-toolbar__actions {
    flex     : 1 1 auto;
    flex-wrap: wrap;
  }

  .filters-toolbar__results {
    margin-left: 0;
    flex       : 1 1 100%;
  }

  .filter-group {
    flex     : 1 1 calc(50% - var(--space-2));
    min-width: 140px;
  }

  .results-count {
    width: 100%;
    justify-content: center;
  }

  .header-badge { display: none; }
}

/* Mobile ≤ 580px → 1 col */
@media (max-width: 580px) {
  :root { --space-6: 16px; }

  .operators-grid,
  .news-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    gap      : var(--space-3);
  }

  .header-stats {
    gap       : var(--space-4);
    margin-left: auto;
  }

  .header-stat-number { font-size: var(--fs-xl); }

  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .logo-tagline { font-size: 0.65rem; }
  
  /* Mobile-specific enhancements */
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero {
    padding: var(--space-8) var(--space-4);
  }
  
  .hero-title {
    font-size: var(--fs-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-base);
  }
  
  /* Card adjustments */
  .card {
    padding: var(--space-4);
  }
  
  .card-header {
    gap: var(--space-2);
  }
  
  .card-logo {
    width: 48px;
    height: 48px;
  }
  
  .card-logo-img {
    max-width: 40px;
    max-height: 40px;
  }
  
  .card-title {
    font-size: var(--fs-md);
  }
  
  .card-info {
    gap: var(--space-2);
  }
  
  .card-info-item {
    font-size: var(--fs-sm);
  }
  
  .card-footer {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .card-footer-row {
    flex-direction: column;
    width: 100%;
  }
  
  .card-footer-row .btn {
    width: 100%;
  }
  
  /* Modal adjustments */
  .modal-overlay {
    padding: var(--space-3);
  }
  
  .modal-card {
    max-height: calc(100vh - var(--space-6));
    overflow-y: auto;
  }
  
  .modal-header {
    padding: var(--space-4);
  }
  
  .modal-body {
    padding: var(--space-4);
  }
  
  .modal-close {
    width: 36px;
    height: 36px;
  }
  
  /* Contact modal */
  .contact-info-list {
    gap: var(--space-3);
  }
  
  .contact-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  
  .contact-icon {
    display: none;
  }
  
  /* Compliance modal */
  .compliance-list {
    gap: var(--space-3);
  }
  
  .compliance-item {
    padding: var(--space-3);
  }
  
  /* Annonces modal */
  .annonces-list {
    gap: var(--space-3);
  }
  
  .annonce-card {
    padding: var(--space-3);
  }
  
  /* Filter adjustments */
  .filters-toolbar {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .filters-toolbar__fields {
    flex-direction: column;
    width: 100%;
  }
  
  .filters-toolbar__actions {
    width: 100%;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group label {
    font-size: var(--fs-sm);
  }
  
  .filter-group select,
  .filter-group input {
    font-size: var(--fs-sm);
    padding: var(--space-2);
  }
  
  /* Button adjustments */
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
  }
  
  .btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
  }
  
  /* Badge adjustments */
  .badge-pill {
    font-size: var(--fs-xs);
    padding: 2px var(--space-2);
  }
  
  /* Waste tags */
  .waste-tag {
    font-size: var(--fs-xs);
    padding: 2px var(--space-2);
  }
  
  /* Footer adjustments */
  .footer {
    padding: var(--space-8) var(--space-4);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .footer-section {
    width: 100%;
  }
  
  /* Scroll to top button */
  .scroll-top {
    width: 40px;
    height: 40px;
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

/* Extra small mobile ≤ 400px */
@media (max-width: 400px) {
  :root {
    --space-4: 12px;
    --space-6: 12px;
  }
  
  .hero-title {
    font-size: var(--fs-xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-sm);
  }
  
  .card-title {
    font-size: var(--fs-sm);
  }
  
  .card-info-item {
    font-size: var(--fs-xs);
  }
  
  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
  }
  
  .modal-card {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .modal-overlay {
    padding: 0;
  }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card-footer-row .btn,
  .modal-close,
  .scroll-top,
  .filter-group select,
  .filter-group input {
    min-height: 44px;
    min-width: 44px;
  }
  
  .card {
    min-height: 200px;
  }
  
  .card-footer-row .btn {
    min-height: 48px;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    overflow-x: hidden;
  }
  
  .operators-grid,
  .news-grid {
    overflow-x: hidden;
  }
  
  .card {
    overflow: hidden;
  }
  
  .modal-overlay {
    padding: 0;
  }
  
  .modal-card {
    border-radius: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: var(--space-4) var(--space-6);
  }
  
  .hero-title {
    font-size: var(--fs-xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-sm);
  }
  
  .modal-card {
    max-height: calc(100vh - var(--space-4));
  }
}

/* Tablet portrait optimizations */
@media (min-width: 581px) and (max-width: 768px) {
  .operators-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .modal-card {
    max-width: calc(100vw - var(--space-8));
  }
}

/* ── 16. ACCESSIBILITÉ ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

:focus-visible {
  outline       : 3px solid var(--green-primary);
  outline-offset: 3px;
  border-radius : var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
    background-color: #0c3d23;
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;   /* Alignement en haut */
}

.footer-col h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-brand h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 10px;      /* Plus petit */
    line-height: 1.7;
    max-width: 520px;     /* Largeur limitée */
}

.footer-email a {
    color: #a8d5ba;
    text-decoration: none;
    font-weight: 500;
}

.footer-email a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 0 20px 0;
    }
}