/* Grille 2 colonnes */
.aco-jobs-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px){
  .aco-jobs-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px){
  .aco-job-card{
    flex-direction: column !important;
  }
  .aco-job-content {
    gap: 16px;
  }
}

@media (min-width: 767px){
  .aco-job-content {
    gap: 12px;
  }
}

@media (max-width: 1366px){
  .aco-job-card {
    flex-direction: column !important;
  }
  .aco-job-logo {
    justify-content: flex-start !important;
  }
}

/* Carte */
.aco-job-card{
  display:flex;
  gap: 18px;
  border: 1px solid #e7e7ea;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Colonne logo */
.aco-job-logo{
  width: 210px;
  min-width: 210px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.aco-job-logo img{
  max-width: 180px;
  height: auto;
  display:block;
  opacity: 0.95;
}

/* Contenu à droite */
.aco-job-content{
  display:flex;
  flex-direction:column;
  min-width: 0; /* important pour éviter overflow */
  flex: 1;
  justify-content: space-around;
}

.aco-job-title{
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.aco-job-location{
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.aco-job-excerpt{
  margin: 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 4;      /* nombre de lignes affichées */
  -webkit-box-orient: vertical;
  overflow: hidden;
  
  line-height: 1.55;
}

/* Tags */
.aco-job-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}

.aco-job-tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f6;
  font-size: 12px;
}

/* Actions en bas à droite */
.aco-job-actions{
  display:flex;
  justify-content:flex-end;      /* à droite */
}

.aco-job-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration:none !important;
  background: #17b5b2; /* adapte à ta charte */
  color: #fff;
  font-weight: 600;
}

.aco-job-btn:hover {
    text-decoration: underline;
    background-color: #055E60;
    color: white;
}

.aco-job-plus{
  font-size: 20px;
  line-height: 1;
}

/* ===== SINGLE JOB PAGE ===== */

.aco-job-hero{
  background: #0BBCC1; /* adapte à ta charte */
  padding: 64px 0px;
}

.aco-job-hero__inner{
  max-width: 85%;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.aco-job-hero__title{
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.aco-job-hero__meta{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: rgba(255,255,255,0.95);
}

.aco-job-hero__location{
  font-size: 14px;
}

.aco-job-hero__status{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.aco-job-hero__status.is-inactive{
  opacity: 0.85;
}

.aco-job-hero__tags{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aco-job-hero__tag{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.aco-job-hero__right{
  padding-top: 6px;
}

.aco-job-apply-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  background: #055E60;
  color: #fff;
  white-space: nowrap;
}

.aco-job-apply-btn:hover {
  color: white;
}

/* page container */
.aco-job-page{
  max-width: 85%;
  margin: 0 auto;
  padding: 26px 16px 60px;
}

.aco-job-topline{
  margin-bottom: 14px;
}

.aco-job-back{
  text-decoration: none;
  font-weight: 600;
  color: #0BBCC1;
}

.aco-job-back:hover {
  text-decoration: underline;
  color: #0BBCC1;
}

.aco-job-article{
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: row;
  gap: 16px;
}

/* contenu WP */
.aco-job-content :first-child{
  margin-top: 0;
}

/* sticky share */
.aco-job-share{
  position: relative;
  width: 25%;
}

.aco-job-share__box{
  position: sticky;
  top: 90px; /* ajuste si ton header est sticky */
  padding: 18px;
}

.aco-job-share__title{
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.aco-share-btn{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  background: #0BBCC1;
  color: #fff;
  margin-top: 16px;
}

.aco-share-btn:hover {
  background-color: #055E60;
  color: white;
}
/* =========================================================
   RESPONSIVE – Breakpoints demandés
   Base = desktop (ton CSS actuel)
   ========================================================= */

/* ===== ≤ 1366px (laptops / petits desktops) ===== */
@media (max-width: 1366px){
  .aco-job-hero{
    padding: 56px 16px;
  }

  .aco-job-hero__inner{
    max-width: 1200px;     /* évite le trop large */
    padding: 0 16px;
  }

  .aco-job-page{
    max-width: 80%;
  }

  .aco-job-article{
    padding: 32px;
  }
}

/* ===== ≤ 1200px (laptop/tablette paysage) ===== */
@media (max-width: 1200px){
  .aco-job-hero{
    padding: 48px 16px;
  }

  .aco-job-hero__inner{
    max-width: 100%;
    padding: 0 16px;
  }

  .aco-job-page{
    max-width: 90%;
    padding: 22px 16px 50px;
  }

  .aco-job-apply-btn{
    padding: 18px 20px;
  }

  .aco-job-article{
    padding: 28px;
  }

  .aco-job-share{
    width: 32%;
  }
}

/* ===== ≤ 1024px (tablettes) ===== */
@media (max-width: 1024px){
  /* on réduit un peu le hero */
  .aco-job-hero{
    padding: 40px 16px;
  }

  .aco-job-hero__title{
    font-size: 2rem;
  }

  .aco-job-page{
    max-width: 92%;
  }

  /* share un peu moins large */
  .aco-job-share{
    width: 34%;
  }

  /* sticky un peu plus bas si header */
  .aco-job-share__box{
    top: 80px;
  }
}

/* ===== ≤ 880px (petites tablettes / grands mobiles) ===== */
@media (max-width: 880px){
  /* Hero en colonne (comme tu veux sur capture mobile/tablette) */
  .aco-job-hero__inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .aco-job-hero__right{
    padding-top: 0;
    width: auto;
  }

  .aco-job-apply-btn{
    width: auto;
    padding: 16px;
  }

  /* Layout contenu/share en colonne */
  .aco-job-article{
    flex-direction: column;
    gap: 20px;
  }

  .aco-job-share{
    width: 100%;
  }

  /* Option: on garde sticky ? sur 880px souvent non => on désactive */
  .aco-job-share__box{
    position: static;
    padding: 0;
  }

  .aco-share-btn{
    justify-content: center;
  }

  .aco-job-page{
    max-width: 100%;
    padding: 18px 16px 40px;
  }
}

/* ===== ≤ 767px (mobiles) ===== */
@media (max-width: 767px){
  .aco-job-hero{
    padding: 32px 16px;
  }

  .aco-job-hero__title{
    font-size: 1.6rem;
    line-height: 1.15;
  }

  .aco-job-hero__meta{
    margin-top: 10px;
    gap: 8px 10px;
  }

  .aco-job-article{
    padding: 16px;
  }

  .aco-job-back{
    display: inline-block;
    padding: 6px 0;
  }
  .aco-job-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }
    .aco-job-hero__right{
    padding-top: 0;
    width: 100%;
  }

  .aco-job-apply-btn{
    width: 100%;
    padding: 16px;
  }
}

/* ===== ≥ 2400px (très grands écrans) ===== */
@media (min-width: 2400px){
  /* on évite que tout s'étale trop */
  .aco-job-hero__inner{
    max-width: 1900px;
  }

  .aco-job-page{
    max-width: 60%;
  }

  .aco-job-hero__title{
    font-size: 2.6rem;
  }

  .aco-job-apply-btn{
    padding: 26px 28px;
  }
}

/* Bonus accessibilité */
.aco-job-apply-btn:focus-visible,
.aco-share-btn:focus-visible,
.aco-job-back:focus-visible{
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}
