/* =========================
   ÉDITO — CLEAN (scopé)
========================= */

.ab-edito{
  --ed-wrap: 1120px;
  --ed-gutter: 24px;

  --ed-line: rgba(250,252,255,.12);
  --ed-muted: rgba(250,252,255,.68);
  --ed-card: rgba(250,252,255,.04);

  --ed-radius: 18px;
  --ed-gap: clamp(14px, 2vw, 22px);
  --ed-pad: clamp(18px, 2.4vw, 28px);

  --ed-title: clamp(44px, 7vw, 108px);
  --ed-h2: clamp(18px, 2.2vw, 28px);
  --ed-p: clamp(15px, 1.3vw, 18px);

  --ed-overlay: .30;
  --ed-overlayBottom: .55;

  /* compense le header fixed global */
  padding-top: 72px;
}

.ab-edWrap{
  width: min(var(--ed-wrap), calc(100% - (var(--ed-gutter) * 2)));
  margin: 0 auto;
}

/* HEAD */
.ab-edHead{
  padding: clamp(56px, 6vw, 92px) 0 clamp(18px, 2.5vw, 28px); /* + d’air sous le header */
  border-bottom: 1px solid var(--ed-line);
}

.ab-edKicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ed-muted);
  margin-bottom: 10px;
}

.ab-edTitle{
  margin: 0 0 10px;
  font-size: var(--ed-title);
  line-height: .9;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.ab-edLede{
  margin: 0;
  max-width: 74ch;
  color: var(--ed-muted);
  font-size: var(--ed-p);
  line-height: 1.55;
}

/* Pills */
.ab-edPills{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ab-pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250,252,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(250,252,255,.72);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  user-select: none;
}
.ab-pill.is-active{
  color: rgba(250,252,255,.92);
  background: rgba(250,252,255,.08);
  border-color: rgba(250,252,255,.22);
}

/* GRID */
.ab-edGrid{
  padding: var(--ed-pad) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--ed-gap);
  align-items: start;       /* ✅ stop stretch */
}

.ab-edItem{ align-self: start; } /* ✅ chaque carte garde sa hauteur */


/* ITEM */
.ab-edItem{
  grid-column: span 4;
  border: 1px solid rgba(250,252,255,.12);
  border-radius: var(--ed-radius);
  background: var(--ed-card);
  overflow: hidden;
}

.ab-edItem > summary{ list-style: none; }
.ab-edItem > summary::-webkit-details-marker{ display:none; }

/* SUMMARY CARD */
.ab-edCard{
  display: block;
  cursor: pointer;
}

/* FRAME (zone 9:16 + overlays) */
.ab-edFrame{
  position: relative;
}

/* MEDIA 9:16 — NO CROP */
.ab-edMedia{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.ab-edMedia__el{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;       /* ✅ pas de crop */
  object-position: center;
  transform: none;
  filter: saturate(.98) contrast(1.05) brightness(.92);
}

/* Overlay */
.ab-edOverlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 35%, rgba(0,0,0,.08) 0%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.80) 100%);
  opacity: var(--ed-overlay);
  pointer-events: none;
}
.ab-edOverlay::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 44%, rgba(0,0,0,.9) 100%);
  opacity: var(--ed-overlayBottom);
}

/* HUD */
.ab-edHud{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,252,255,.76);
  z-index: 2;
  pointer-events: none;
}

.ab-edTag{
  border: 1px solid rgba(250,252,255,.18);
  background: rgba(0,0,0,.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* Bottom title */
.ab-edBottom{
  position: absolute;
  left: 12px;
  right: 40px;
  bottom: 12px;
  z-index: 2;
  pointer-events: none;
}

.ab-edName{
  margin: 0;
  font-size: var(--ed-h2);
  line-height: 1.05;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Plus icon */
.ab-edChevron{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(250,252,255,.18);
  background: rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  color: rgba(250,252,255,.88);
  z-index: 2;
  pointer-events: none;
}

.ab-edItem[open] .ab-edChevron{ transform: rotate(45deg); }

/* BODY */
.ab-edBody{
  border-top: 1px solid rgba(250,252,255,.10);
  padding: 14px 14px 16px;
}

.ab-edText{
  margin: 0 0 12px;
  color: var(--ed-muted);
  font-size: var(--ed-p);
  line-height: 1.6;
  max-width: 72ch;
}

.ab-edDl{
  margin: 0;
  display: grid;
  gap: 8px;
}
.ab-edDl > div{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(250,252,255,.08);
}
.ab-edDl > div:last-child{ border-bottom: none; }

.ab-edDl dt{
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,252,255,.55);
}
.ab-edDl dd{
  margin: 0;
  color: rgba(250,252,255,.90);
}

.ab-edOut{
  color: rgba(250,252,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px){
  .ab-edItem{ grid-column: span 6; }
}
@media (max-width: 560px){
  .ab-edItem{ grid-column: span 12; }
  .ab-edTag{ max-width: 54%; }
}
/* ✅ PATCH FINAL — FORCE 9:16 NO CROP */
.ab-edito .ab-edMedia{
  aspect-ratio: 9 / 16 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.ab-edito .ab-edMedia__el{
  position: static !important;      /* annule absolute */
  inset: auto !important;           /* annule inset:0 */
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;   /* ✅ no crop */
  object-position: center !important;
  transform: none !important;       /* annule scale */
}
/* =========================
   ÉDITO — MOBILE PATCH (FORCÉ)
   A COLLER TOUT EN BAS DU CSS
========================= */
@media (max-width: 560px){

  /* 0) Sécurité box model */
  .ab-edito, .ab-edito *{ box-sizing: border-box; }

  /* 1) Intro cachée sous le header fixed */
  .ab-edito{
    padding-top: 40px !important;  /* augmente ici si nécessaire */
  }

  .ab-edHead{
    padding-top: 48px !important;
    padding-bottom: 24px !important;
  }

  /* 2) Pills : éviter dépassement -> 1 ligne scrollable */
  .ab-edito .ab-edPills{
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding: 0 2px 10px !important;
    margin-top: 14px !important;
    scrollbar-width: none;
  }
  .ab-edito .ab-edPills::-webkit-scrollbar{ display:none; }

  .ab-edito .ab-pill{
    flex: 0 0 auto !important;
    max-width: 78vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    padding: 8px 10px !important;
  }

  /* 3) Marges dans les détails (texte collé à gauche) */
  .ab-edito .ab-edBody{
    padding: 18px 18px 22px !important;
  }

  .ab-edito .ab-edText{
    margin: 0 0 16px !important;
    padding: 0 !important;
    line-height: 1.65 !important;
  }

  .ab-edito .ab-edDl{
    margin: 0 !important;
    padding: 0 !important;
  }

  .ab-edito .ab-edDl > div{
    grid-template-columns: 74px 1fr !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  /* 4) Air visuel dans la card (évite texte collé aux coins arrondis) */
  .ab-edito .ab-edHud{
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
  }
  .ab-edito .ab-edBottom{
    left: 16px !important;
    right: 56px !important;
    bottom: 16px !important;
  }
  .ab-edito .ab-edChevron{
    right: 14px !important;
    bottom: 14px !important;
  }
}