/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

:root{
  --primary: #FF6634;
  --text: #111;
  --bg: #fff;
  --muted: #666;
  --cardW: 250px;
}
/* Si tu as un header sticky, évite que l’ancre soit cachée */
.offre-card[id^="offre-"]{
  scroll-margin-top: 95px; /* ajuste selon ton header */
}
/* Base */
.offres-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: var(--text);
}

.offres-page h1,
.offres-page h2{
  margin: 0 0 10px;
  line-height: 1.15;
}

.offres-page p{
  margin: 0 0 12px;
  color: var(--muted);
}

/* HERO */
.hero-offres{
  background: var(--bg);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 22px 22px;
  margin-bottom: 18px;
}

.hero-offres h1{
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-offres p{
  font-size: 16px;
  max-width: 80ch;
}

/* Layout */
.offres-layout{
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 320px 18px 1fr;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

/* Filtres */
.offres-filtres{
  background: var(--bg);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: 90px; /* adapte selon ton header sticky */
}

.filters-form{
  display: -ms-grid;
  display: grid;
  gap: 14px;
}

.filter-row{
  display: -ms-grid;
  display: grid;
  gap: 8px;
}

.filter-row label{
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.filter-row input[type="search"],
.filter-row select{
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.filter-row input[type="search"]:focus,
.filter-row select:focus{
  border-color: var(--primary);
  -webkit-box-shadow: 0 0 0 3px rgba(255,102,52,.18);
          box-shadow: 0 0 0 3px rgba(255,102,52,.18);
}

.filter-row.checkbox label{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: 600;
  color: var(--text);
}

.filter-row.checkbox input{
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.filter-actions{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.btn-filter{
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: var(--text);
  color: #fff;
}

.btn-filter:hover{ opacity: .92; }

.btn-reset{
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  color: var(--text);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn-reset:hover{
  border-color: var(--primary);
  color: var(--primary);
}

/* Note à droite */
.offres-side-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #e0e0e0;
  background: #fafafa;
}

.offres-side-note a{
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  -webkit-text-decoration-color: rgba(255,102,52,.35);
          text-decoration-color: rgba(255,102,52,.35);
}

.offres-side-note a:hover{
  color: var(--primary);
}

/* Liste */
.offres-liste{
  display: -ms-grid;
  display: grid;
  gap: 14px;
}

.offres-meta{
  background: var(--bg);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 14px 16px;
}

.offres-meta strong{
  color: var(--text);
  font-weight: 900;
}

.offres-empty{
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 16px;
}

/* Card offre */
.offre-card{
  background: var(--bg);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 16px;
}

.offre-head{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 14px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 10px;
}

.offre-title{
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.offre-badges{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.badge{
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e7e7e7;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
}

.badge-secteur{
  border-color: rgba(255,102,52,.35);
}

.badge-secteur i{ color: var(--primary); }

.badge-date i{ color: var(--muted); }

.offre-excerpt{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.offre-details summary{
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
  list-style: none;
}

.offre-details summary::-webkit-details-marker{ display:none; }

.offre-details summary::after{
  content: " ▾";
  color: var(--primary);
  font-weight: 900;
}

.offre-details[open] summary::after{
  content: " ▴";
}

.offre-full{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: var(--text);
}

.offre-jointe{
  margin-top: 12px;
}

.offre-jointe a{
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
}

.offre-jointe a:hover{
  text-decoration: underline;
}

/* Pagination */
.pagination{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 12px 14px;
}

.page-link{
  text-decoration: none;
  font-weight: 900;
  color: var(--text);
  border: 1px solid #e7e7e7;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
}

.page-link:hover{
  border-color: var(--primary);
  color: var(--primary);
}

.page-current{
  font-weight: 800;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px){
  .offres-layout{
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .offres-filtres{
    position: static;
    top: auto;
  }
  .offre-head{
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .offre-badges{
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}