/* ===== v7 — photos au ratio natif, panneaux verts vides, typo corps d’état ===== */

/* Justified rows: flex-grow = aspect ratio, images height:auto, no crop */
.page-home .edito,
.edito{
  padding:0;
  gap:12px;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.edito-row{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  gap:12px;
  width:100%;
  margin:0;
  box-sizing:border-box;
}
.edito-cell{
  flex:var(--ar, 1) 1 0%;
  min-width:0;
  margin:0;
  position:relative;
  overflow:visible;
  background:transparent;
}
.page-home .edito-cell img,
.page-home .edito-cell .wahou-img,
.edito-row .edito-cell img,
.edito-row .edito-cell .wahou-img{
  position:static !important;
  inset:auto !important;
  display:block;
  width:100%;
  height:auto !important;
  max-width:100%;
  object-fit:unset !important;
  object-position:center center;
}

/* Kill leftover crop layouts if any remain */
.page-home .edito-full,
.page-home .edito-split,
.page-home .edito-trio,
.page-home .edito-couple,
.page-home .edito-duo{
  height:auto !important;
  min-height:0 !important;
}

/* Pure green squares — no text, no inner frame */
.page-home .edito-panel,
.edito-row .edito-panel{
  flex:var(--ar, 1) 1 0%;
  min-width:0;
  min-height:0;
  height:auto;
  aspect-ratio:var(--ar, 1);
  background:#1F3A32;
  color:transparent;
  padding:0 !important;
  display:block;
  text-align:left;
  position:relative;
  overflow:hidden;
}
.page-home .edito-panel::before,
.page-home .edito-panel .kicker,
.page-home .edito-panel__title,
.page-home .edito-panel__lead{
  display:none !important;
  content:none;
}
.page-home .edito-panel.is-in,
.page-home .edito-panel{
  opacity:1;
  transform:none;
}

/* Light fade-in only (no clip-path crop, no Ken Burns) */
.edito-cell{
  opacity:0;
  transform:translate3d(0,.4rem,0);
  transition:opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.edito-cell.is-in{
  opacity:1;
  transform:none;
}

/* ---------- Nos corps d’état : Bodoni roman + grille Jost 300 ---------- */
.page-home .band--corps{
  padding:clamp(3.75rem, 10vh, 6.25rem) 0;
}
.page-home .band--corps .kicker{
  display:block;
  margin:0 auto 1.35rem;
  opacity:.72;
  letter-spacing:.24em;
  text-transform:uppercase;
  font-family:var(--font);
  font-weight:300;
  font-style:normal;
  font-size:.62rem;
  text-align:center;
  color:#f3efe6;
}
.page-home .band--corps .corps-title{
  font-family:var(--display);
  font-style:normal;
  font-weight:500;
  font-size:clamp(2.6rem, 7vw, 5.6rem);
  line-height:1.05;
  letter-spacing:-.02em;
  color:#f3efe6;
  margin:0 auto 2.75rem;
  text-align:center;
}
.page-home .corps-grid{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:56rem;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  column-gap:0;
  row-gap:0;
}
.page-home .corps-grid li{
  font-family:var(--font);
  font-style:normal;
  font-weight:300;
  font-size:clamp(.68rem, 1.05vw, .8rem);
  line-height:1.35;
  letter-spacing:.22em;
  text-transform:uppercase;
  text-align:center;
  color:#f3efe6;
  padding:1.2rem .85rem;
  border-right:1px solid rgba(243,239,230,.2);
  border-bottom:1px solid rgba(243,239,230,.2);
}
.page-home .corps-grid li:nth-child(3n){border-right:none}
.page-home .corps-grid li:nth-child(n+7){border-bottom:none}

@media (max-width:720px){
  .edito-row{
    flex-direction:column;
    gap:12px;
  }
  .edito-cell,
  .edito-row .edito-panel,
  .page-home .edito-panel{
    flex:none;
    width:100%;
  }
  .edito-cell img,
  .edito-cell .wahou-img{
    width:100%;
    height:auto !important;
  }
  .page-home .edito-panel,
  .edito-row .edito-panel{
    aspect-ratio:1;
    width:100%;
    height:auto;
    min-height:0;
  }
  .page-home .corps-grid{
    grid-template-columns:1fr;
    max-width:22rem;
  }
  .page-home .corps-grid li{
    border-right:none;
    border-bottom:1px solid rgba(243,239,230,.2);
    padding:.95rem .25rem;
    letter-spacing:.2em;
  }
  .page-home .corps-grid li:nth-child(n+7){border-bottom:1px solid rgba(243,239,230,.2)}
  .page-home .corps-grid li:last-child{border-bottom:none}
  .page-home .band--corps .corps-title{margin-bottom:2rem}
}

@media (prefers-reduced-motion: reduce){
  .edito-cell,
  .page-home .edito-panel{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
  }
}
