
/* ===========================================================
   TYPO (ciblée RC)
=========================================================== */
.rc-search-page, .rc-search-page *,
.rc-searchbar, .rc-searchbar *,
.rc, .rc *{
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===========================================================
   HERO RECHERCHE MOULINET (PAGE /recherche-moulinet)
=========================================================== */
.rc-search-page h1{ display:none; }

.rc-search-page .rc-hero-search{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 260px 0 160px;
  text-align: center;
  overflow: visible;
  z-index: 1;
}
.rc-search-page .rc-hero-search::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.12) 100%),
    url('/wp-content/themes/rc-theme/images/HeroSearch.webp') center/cover no-repeat;
}

.rc-search-page .rc-hero-search .rc-results-title{
  margin: 0 20px 26px;
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
  color:#fff;
}
.rc-search-page .rc-hero-search .rc-results-title span{ color:var(--rc-accent); }

/* Barre de recherche (Hero recherche) */
.rc-search-page .form-recherche-moulinet--hero{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  z-index: 2;
}
.rc-search-page .form-recherche-moulinet--hero #autocomplete-input{
  height: 80px;
  padding: 0 24px;
  font-size: 20px;
  border-radius: 40px;
  border: 1px solid #E5E7EB;
  background:#fff;
  color:#002833;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  outline:none;
  -webkit-appearance:none;
}
.rc-search-page .form-recherche-moulinet--hero #autocomplete-input:focus{
  border-color:var(--rc-primary);
  box-shadow: 0 0 0 4px rgba(0,78,102,.12);
}
.rc-search-page .form-recherche-moulinet--hero button[type="submit"]{
  height: 80px;
  min-width: 80px;
  border-radius: 40px;
  border:none;
  background:var(--rc-primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .2s ease, transform .1s ease;
}
.rc-search-page .form-recherche-moulinet--hero button[type="submit"]:hover{ background:var(--rc-accent); }
.rc-search-page .form-recherche-moulinet--hero button[type="submit"] svg{ width: 32px; height: 32px; }

/* Autocomplete (Hero recherche) */
.rc-search-page .form-recherche-moulinet--hero #autocomplete-results{
  position:absolute;
  left:0;
  right: calc(80px + 12px);
  top: calc(100% + 8px);
  z-index: 9999;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:12px;
  max-height:320px;
  overflow-y:auto;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  display:none;
  opacity:0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  pointer-events: none;
}
.rc-search-page .form-recherche-moulinet--hero #autocomplete-results.show{
  display:block;
  opacity:1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.rc-search-page .form-recherche-moulinet--hero #autocomplete-results ul{ list-style:none; margin:0; padding:6px 0; }
.rc-search-page .form-recherche-moulinet--hero #autocomplete-results li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:8px;
  cursor:pointer;
  color:#002833;
  font-size:1rem;
}
.rc-search-page .form-recherche-moulinet--hero #autocomplete-results li:hover{ background:#F6F8FA; }

/* ===========================================================
   ZONE RESULTATS (recherche)
=========================================================== */
.rc-search-page .rc-results-zone{
  background:#0B2F38;
  padding:56px 0 80px;
  position: relative;
  z-index: 0;
}
.rc-search-page .rc-results-inner{
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
}
.rc-search-page .rc-search-results{
  max-width:1180px;
  margin:0 auto;
}
.rc-results-zone .rc-search-results p,
.rc-results-zone .rc-search-results .woocommerce-result-count{
  color:#fff !important;
}

/* ===========================================================
   TABLEAU RESULTATS (recherche) + HOTFIX structure
=========================================================== */
.rc-search-page .results-table{
  width: 100%;
  margin-top: 18px;
  font-size: .95rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  min-width: 680px;
  border-collapse: collapse !important;
  border: none !important;
}
.rc-search-page .results-table thead tr { background:var(--rc-primary); color:#fff; }
.rc-search-page .results-table th,
.rc-search-page .results-table td{
  padding:12px 10px;
  text-align:left;
  vertical-align:middle;
  border:none;
}
.rc-search-page .results-table tbody tr{ border-bottom:1px solid rgba(0,56,76,0.25); }
.rc-search-page .results-table tbody tr:last-child{ border-bottom:none; }

.rc-search-page .results-table thead tr th:first-child{ border-top-left-radius:12px; }
.rc-search-page .results-table thead tr th:last-child{ border-top-right-radius:12px; }
.rc-search-page .results-table tbody tr:last-child td:first-child{ border-bottom-left-radius:12px; }
.rc-search-page .results-table tbody tr:last-child td:last-child{ border-bottom-right-radius:12px; }

.rc-search-page .results-table .thumbcell{ width:90px; text-align:center; }
.rc-search-page .results-table .thumbcell img{ max-height:50px; margin:auto; display:block; }

.rc-search-page .results-table td.col-nom{
  font-weight:600;
  font-size:1.05rem;
  color:#002833;
}
.rc-search-page .results-table td.col-nom a{ color:#002833; text-decoration:none; }

@media(max-width:600px){
  .rc-search-page .results-table th,
  .rc-search-page .results-table td{ padding:10px 8px; font-size:13px; }
  .rc-search-page .results-table td.col-nom{ font-size:14px; }
}

/* HOTFIX structure table si des styles globaux la cassent */
.rc-search-page table.results-table,
.rc-search-page .results-table{
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}
.rc-search-page .results-table thead{ display: table-header-group !important; }
.rc-search-page .results-table tbody{ display: table-row-group !important; }
.rc-search-page .results-table tr{ display: table-row !important; }
.rc-search-page .results-table th,
.rc-search-page .results-table td{
  display: table-cell !important;
  vertical-align: middle !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pagination (recherche) */
.rc-pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  margin:20px 0 0;
}
.rc-pagination a{
  display:inline-block;
  min-width:40px;
  height:40px;
  line-height:40px;
  text-align:center;
  border-radius:8px;
  background:#fff;
  color:var(--rc-primary);
  border:1px solid #E5E7EB;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.rc-pagination a:hover{
  background:var(--rc-accent);
  color:#fff;
  border-color:var(--rc-accent);
}
.rc-pagination a.is-active{
  background:var(--rc-primary);
  color:#fff;
  border-color:var(--rc-primary);
}

/* ===========================================================
   BARRE DE RECHERCHE (autre page)
=========================================================== */
.rc-searchbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  max-width:880px;
  margin:0 auto;
  position:relative;
}
.rc-searchbar #autocomplete-input{
  height:80px;
  padding:0 24px;
  font-size:20px;
  border-radius:40px;
  border:1px solid #E5E7EB;
  background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  outline:none;
}
.rc-searchbar #autocomplete-input:focus{
  border-color:var(--rc-primary);
  box-shadow:0 0 0 4px rgba(0,78,102,.12);
}
.rc-searchbar .rc-btn{
  height:80px;
  min-width:80px;
  border-radius:40px;
  border:none;
  background:var(--rc-primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.2s background;
}
.rc-searchbar .rc-btn:hover{ background:var(--rc-accent); }

.rc-searchbar #autocomplete-results{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 8px);
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:12px;
  max-height:320px;
  overflow-y:auto;
  z-index:9999;
  display:none;
  opacity:0;
  transform:translateY(4px);
  transition:.2s opacity,.2s transform;
  pointer-events:none;
}
.rc-searchbar #autocomplete-results.show{
  display:block;
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
@media(max-width:540px){
  .rc-searchbar #autocomplete-input{ height:68px; font-size:18px; }
  .rc-searchbar .rc-btn{ height:68px; min-width:68px; }
}

/* ===========================================================
