
.category-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0.5rem 0.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-card {
  flex: 0 0 auto;
  width: calc(25% - 0.75rem);
  min-width: 140px;
  max-width: 200px;
}
.cat-nav-btn {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f59e0b;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  z-index: 2;
  margin-top: -25px;
}
.cat-nav-btn:hover { background: rgba(245,158,11,0.2); border-color: #f59e0b; }
.cat-nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.results-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-size-wrap { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted,#888); }
.page-size-wrap select { background: var(--card-bg,#1a1a1a); border: 1px solid rgba(255,255,255,0.15); color: var(--text,#fff); padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; outline: none; }
.page-size-wrap select:focus { border-color: #f59e0b; }
.section-label { display: flex; align-items: center; /*gap: 0.6rem;*/ margin-top: 1.8rem;margin-left:102em;}
.cat-search-wrap { display: flex; align-items: center; gap: 0.4rem; margin-left: 0.5rem; }
.cat-search-btn { background: none; border: none; color: #f59e0b; cursor: pointer; font-size: 1rem; padding: 0.2rem 0.4rem; border-radius: 6px; transition: background 0.2s; }
.cat-search-btn:hover { background: rgba(245,158,11,0.15); }
.cat-search-input { display: none; border: 1px solid #f59e0b; border-radius: 8px; padding: 0.3rem 0.7rem; font-size: 0.85rem; background: var(--card-bg,#1a1a1a); color: var(--text,#fff); width: 180px; outline: none; }
.cat-search-input.open { display: block; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.6rem; padding: 2rem 1rem; flex-wrap: wrap; }
.pag-label { font-size: 0.9rem; color: var(--text-muted,#888); }
.pag-size-select { background: var(--card-bg,#1a1a1a); border: 1px solid rgba(255,255,255,0.15); color: var(--text,#fff); padding: 0.35rem 0.6rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; outline: none; transition: border-color 0.2s; }
.pag-size-select:focus { border-color: #f59e0b; }
.pag-arrow { background: var(--card-bg,#1a1a1a); border: 1px solid rgba(255,255,255,0.15); color: var(--text,#fff); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all 0.2s; }
.pag-arrow:hover:not(:disabled) { background: rgba(245,158,11,0.2); border-color: #f59e0b; color: #f59e0b; }
.pag-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.pag-current { background: #f59e0b; color: #000; font-weight: 700; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* Logo fabricant */
.mfa-logo-preview { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 28px; }
.mfa-logo-preview img { height: 24px; object-fit: contain; display: none; }
.mfa-logo-preview span { font-size: 0.85rem; color: var(--text-muted,#888); }

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-input {
  width: 100%;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text, #fff);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.autocomplete-input:focus { border-color: #f59e0b; }
.autocomplete-input:disabled { opacity: 0.4; cursor: not-allowed; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.autocomplete-dropdown.open { display: block; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.ac-item:hover, .ac-item.selected { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ac-item img { height: 20px; object-fit: contain; flex-shrink: 0; }
.ac-loading { padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--text-muted,#888); }
.filter-reset-field {
  background: none; border: none; color: var(--text-muted,#888);
  cursor: pointer; font-size: 0.8rem; margin-top: 4px;
  padding: 0; text-decoration: underline;
}
.filter-reset-field:hover { color: #f59e0b; }

#subCategoryBar {
  background: var(--card-bg, #000000);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.sub-cat-label { font-size:0.8rem; color:#f59e0b; font-weight:600; width:100%; margin-bottom:0.4rem; }
.sub-cat-grid { display:flex; flex-wrap:wrap; gap:0.4rem; }
.sub-cat-chip {
  display:flex; align-items:center; gap:0.4rem;
  padding:0.35rem 0.75rem;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:20px; font-size:0.82rem;
  cursor:pointer; transition:all 0.2s; color:var(--text,#fff);
}
.sub-cat-chip:hover { background:rgba(245,158,11,0.15); border-color:#f59e0b; color:#f59e0b; }
.sub-cat-chip.active { background:rgba(245,158,11,0.2); border-color:#f59e0b; color:#f59e0b; font-weight:600; }
.sub-cat-grid-modal { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:0.3rem; }
.sub-cat-chip-modal {
  display:flex; align-items:center; gap:0.35rem;
  padding:0.3rem 0.65rem;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px; font-size:0.8rem;
  cursor:pointer; transition:all 0.2s; color:var(--text,#fff);
}
.sub-cat-chip-modal:hover { background:rgba(245,158,11,0.15); border-color:#f59e0b; color:#f59e0b; }
.sub-cat-chip-modal.active { background:rgba(245,158,11,0.2); border-color:#f59e0b; color:#f59e0b; font-weight:600; }




/* ── Catégorie "Toutes" ── */
.category-card--all .cat-icon {
  font-size: 1.6rem;
  color: #f59e0b;
}
.category-card.active {
  border-color: #f59e0b !important;
  background: rgba(245,158,11,0.12) !important;
}
.category-card.active .cat-name {
  color: #f59e0b;
}

/* ── Cat image cliquable ── */
.cat-img {
  width: 40px; height: 40px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.cat-img:hover { transform: scale(1.15); }

/* ── Pagination numérotée ── */
.pag-number {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text, #fff);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pag-number:hover { background: rgba(245,158,11,0.2); border-color: #f59e0b; color: #f59e0b; }
.pag-number.active { background: #f59e0b; color: #000; font-weight: 700; border-color: #f59e0b; }
.pag-ellipsis { color: var(--text-muted,#888); padding: 0 4px; }

/* ── RGPD notice ── */
.rgpd-notice {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.rgpd-notice i { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }

/* ── Close notice ── */
.close-notice {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #4ADE80;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.close-notice i { flex-shrink: 0; margin-top: 2px; }

/* ── Timeline ── */
.request-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.4s;
  margin-top:18px;
}
.timeline-item.done,
.timeline-item.active { opacity: 1; }

/* Ligne verticale */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 48px;
  width: 2px;
  height: calc(100% - 3px);
  background: rgba(255,255,255,0.1);
}
.timeline-item.done:not(:last-child)::after { background: #4ADE80; }
.timeline-item.active:not(:last-child)::after { background: linear-gradient(#f59e0b, rgba(255,255,255,0.1)); }

.tl-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--card-bg, #1a1a1a);
  color: var(--text-muted, #888);
  transition: all 0.4s;
}
.timeline-item.done .tl-icon {
  border-color: #4ADE80;
  color: #4ADE80;
  background: rgba(74,222,128,0.1);
}
.timeline-item.active .tl-icon {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  animation: pulse-tl 1.5s infinite;
}
@keyframes pulse-tl {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}
.tl-content { flex: 1; }
.tl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #fff);
  margin-bottom: 2px;
}
.timeline-item.active .tl-title { color: #f59e0b; }
.timeline-item.done  .tl-title  { color: #4ADE80; }
.tl-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
}

/* ── Modal request plus large ── */
.modal--request { max-width: 480px; }


#imgLightbox { display:none; position:fixed; inset:0; z-index:9999; }
#imgLightbox.open { display:flex; align-items:center; justify-content:center; }
.img-lb-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.92); cursor:pointer; }
.img-lb-box { position:relative; z-index:1; display:flex; align-items:center; gap:1rem; }
.img-lb-img { max-width:80vw; max-height:85vh; object-fit:contain; border-radius:8px; transition:transform 0.3s ease; }
.img-lb-img.zoomed { transform:scale(2.5); cursor:zoom-out !important; }
.img-lb-close { position:absolute; top:-40px; right:0; background:none; border:none; color:#fff; font-size:1.4rem; cursor:pointer; }
.img-lb-nav { background:rgba(255,255,255,0.15); border:none; color:#fff; width:44px; height:44px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background 0.2s; }
.img-lb-nav:hover { background:rgba(245,158,11,0.6); }
.img-lb-counter { position:absolute; bottom:-32px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,0.7); font-size:0.85rem; }
.result-image-overlay { pointer-events:none; }



/* ============================================================
   PATCH CSS — Images SVG des cartes + barre recherche fluide
   Ajouter à la fin de styles.css
   ============================================================ */

/* ── Image SVG dans les cartes résultats ── */
.result-image {
  position: relative;
  min-height: 130px;
  background-color: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

/* Mode image normale (background) */
.result-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}
.result-card:hover .result-image-bg {
  transform: scale(1.05);
}

/* Mode SVG — image centrée avec fond coloré */
.result-image--svg {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border-right: 1px solid var(--border);
}

.result-image-svg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.result-card:hover .result-image-svg {
  transform: scale(1.08);
  opacity: 0.5;
}

/* Overlay commun */
.result-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Overlay gradient pour images normales seulement */
.result-image:not(.result-image--svg) .result-image-overlay {
  background: linear-gradient(to right, transparent 60%, var(--surface));
}


/* ── Barre de recherche catégories — ouverture fluide ── */
.cat-search-input {
    display: block !important;
    width: 0;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    margin-top: 66px;
    margin-left: -14em;
    margin-bottom: -3px;
    background: var(--card-bg, #1a1a1a);
    color: var(--text, #fff);
    outline: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
}

.cat-search-input.open {
  width: 180px;
  opacity: 1;
}

/* Animation du bouton loupe */
.cat-search-btn {
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.cat-search-btn:hover {
  transform: scale(1.1);
}

/* ── Pagination style ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
}

.pag-label {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
}

.pag-size-select {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text, #fff);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  font-weight: 600;
}
.pag-size-select:focus { border-color: #f59e0b; }

.pag-arrow {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text, #fff);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-weight: 600;
}
.pag-arrow:hover:not(:disabled) {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}
.pag-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

.pag-current {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-family: 'Syne', sans-serif;
}
/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
     .modal {
        max-width: 85%;
        border-radius: 2em;
        /* padding: 0.25rem 2rem 0.5rem; */
        margin: 0;
        position: fixed;
        
        animation: slideModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .btn-modal-primary {
    width: 100%;
    background: var(--amber);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 4rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
}

/* Petit mobile (max-width: 480px) - optionnel *
/* Version fluide avec des pourcentages */
@media (max-width: 768px) {
  .hero-content {
    left: 13%;
  }
  
  .hero-bottom {
    left: -1% !important;
    bottom: 2rem;
    width: 90%;
  }
  
  .hero-title {
    white-space: normal;
    max-width: 90%;
    font-size: clamp(1.2rem, 6vw, 2.2rem);
  }
}

@media (max-width: 480px) {

  
  .hero-bottom {
    left: 4%;
    flex-direction: column;
    align-items: flex-start;
  }
  
     .hero-title {
        font-size: 30px;
        max-width: 92%;
    }
}


/* ── Overlay popup ── */
.geo-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: geoFadeIn 0.3s ease;
}
.geo-popup-overlay.open {
  display: flex;
}
 
@keyframes geoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
 
/* ── Boîte ── */
.geo-popup-box {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: geoSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
@keyframes geoSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
 
/* ── Icône ── */
.geo-popup-icon {
  width: 72px;
  height: 72px;
  background: rgba(245,158,11,0.12);
  border: 2px solid rgba(245,158,11,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #f59e0b;
  animation: geoPulse 2s infinite;
}
 
@keyframes geoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}
 
/* ── Texte ── */
.geo-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 0.75rem;
  font-family: 'Syne', sans-serif;
}
 
.geo-popup-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #aaa);
  line-height: 1.6;
  margin-bottom: 2rem;
}
 
/* ── Boutons ── */
.geo-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
 
.geo-btn-accept {
  background: #f59e0b;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: 'Syne', sans-serif;
}
.geo-btn-accept:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}
 
.geo-btn-decline {
  background: transparent;
  color: var(--text-muted, #aaa);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.geo-btn-decline:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text, #fff);
}
 
/* ── Badge localisation ── */
.geo-badge {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #f59e0b;
  z-index: 1000;
  backdrop-filter: blur(8px);
  animation: geoFadeIn 0.4s ease;
  cursor: pointer;
}
.geo-badge:hover {
  background: rgba(245,158,11,0.25);
}
 
/* ── État chargement ── */
.geo-btn-accept.loading {
  background: #666;
  pointer-events: none;
}
.geo-btn-accept.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsive pour category-scroll-wrap */
@media (max-width: 768px) {
    .category-scroll-wrap {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .category-scroll-wrap::-webkit-scrollbar {
        height: 2px;
    }
    
    .category-scroll-wrap::-webkit-scrollbar-thumb {
        background: #f59e0b;
        border-radius: 10px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .category-scroll-wrap {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
}