:root{
  --bg:#090a0d;
  --fg:#fafcff;
  --muted:rgba(250,252,255,.68);
  --line:rgba(250,252,255,.14);

  --wrap:1120px;
  --gutter:24px;

  --heroH: 90vh;
  --heroOverlay: .22;   /* ↓ baisse/monte ici */
  --heroOverlayBottom: .55;

  --title: clamp(44px, 8vw, 132px);
  --kicker: 12px;
  --p: clamp(15px, 1.3vw, 18px);

  --gap: clamp(14px, 2.2vw, 22px);
  --t: 240ms cubic-bezier(.2,.8,.2,1);
}

.ab-case{ background:var(--bg); color:var(--fg); }
.ab-case a{ color:inherit; text-decoration:none; }

/* HERO */
.ab-caseHero{
  position: relative;
  min-height: var(--heroH);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.ab-caseHero__media{
  position:absolute;
  inset:0;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(.98) contrast(1.05) brightness(.92);
}

.ab-caseHero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(90% 70% at 50% 35%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.60) 100%),
    linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.88) 100%);
  opacity: var(--heroOverlay);
}

.ab-caseHero__overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.9) 100%);
  opacity: var(--heroOverlayBottom);
}

.ab-caseHero__inner{
  position:relative;
  z-index:1;
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: var(--heroH);
  padding: clamp(20px, 4vw, 56px) 0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: 10px;
}

.ab-caseHero__kicker{
  font-size: var(--kicker);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,252,255,.70);
}

.ab-caseHero__title{
  margin:0;
  font-size: var(--title);
  line-height: .85;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-transform: uppercase;
}

.ab-caseHero__tagline{
  margin:0;
  max-width: 72ch;
  font-size: var(--p);
  line-height: 1.55;
  color: rgba(250,252,255,.74);
}

/* INFO (wrap classique, seul bloc texte) */
.ab-caseInfo{
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3.2vw, 46px) 0;
}

.ab-caseInfo__inner{
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(18px, 3vw, 34px);
}

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

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

.ab-caseMeta{
  margin:0;
  padding:0;
  display:grid;
  gap: 10px;
}

.ab-caseMetaRow{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(250,252,255,.08);
}

.ab-caseMetaRow:last-child{ border-bottom:none; }

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

.ab-caseMetaRow dd{
  margin:0;
  color: rgba(250,252,255,.88);
}

/* GALLERY — full bleed */
.ab-gallery{
  display: grid;
  gap: var(--gap);
  padding: var(--gap) 0;
}

/* chaque visuel prend toute la largeur */
.ab-shot{
  margin:0;
  width: 100%;
}

.ab-shot img{
  width: 100%;
  height: auto;
  display:block;
}

/* option: micro “cinema” hover sur desktop */
@media (hover:hover){
  .ab-shot img{
    transform: translateZ(0);
    transition: transform var(--t), filter var(--t);
    filter: saturate(.98) contrast(1.02);
  }
  .ab-shot:hover img{
    transform: scale(1.01);
    filter: saturate(1) contrast(1.06);
  }
}

/* VIDEO */
.ab-caseVideo{
  padding: clamp(24px, 3.5vw, 56px) 0 clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--line);
}

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

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

/* 16:9 responsive embed */
.ab-embed{
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(250,252,255,.12);
  background: rgba(250,252,255,.03);
  overflow: hidden;
}

.ab-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* NEXT */
.ab-caseNext{
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 0 0 clamp(40px, 7vw, 90px);
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ab-nextLink{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(250,252,255,.14);
  background: rgba(250,252,255,.04);
  color: rgba(250,252,255,.86);
  transition: transform var(--t), background var(--t), border-color var(--t);
}

.ab-nextLink:hover{
  transform: translateY(-2px);
  background: rgba(250,252,255,.08);
  border-color: rgba(250,252,255,.22);
}

.ab-nextMini{ opacity:.85; }

/* Responsive */
@media (max-width: 900px){
  .ab-caseInfo__inner{ grid-template-columns: 1fr; }
}
/* =========================
   MAGAZINE GALLERY (ref image 2)
========================= */

:root{
  --mag-gap: clamp(14px, 2vw, 22px);
  --mag-radius: 0px;            /* mets 16px si tu veux arrondir */
  --mag-border: rgba(255,255,255,.10);
  --mag-bg: rgba(255,255,255,.02);

  --mag-board-w: 62%;           /* largeur board (desktop) */
  --mag-grid-cols: 2;           /* 2 = comme la ref, 3 si tu as beaucoup d’images */
  --mag-grid-ar: 16/10;         /* ratio des vignettes à droite */
}

/* container */
.ab-mag{
  width: 100%;
  padding: var(--mag-gap) 0;
}

/* ROW 1 : board + grid */
.ab-magRow--hero{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--mag-board-w) 1fr;
  gap: var(--mag-gap);
  align-items: start;
}

/* board */
.ab-magBoard{
  margin: 0;
  border: 1px solid var(--mag-border);
  background: var(--mag-bg);
  border-radius: var(--mag-radius);
  overflow: hidden;
}

.ab-magBoard img{
  display: block;
  width: 100%;
  height: auto;
}

/* right grid */
.ab-magGrid{
  display: grid;
  grid-template-columns: repeat(var(--mag-grid-cols), minmax(0, 1fr));
  gap: var(--mag-gap);
}

.ab-magShot{
  margin: 0;
  border: 1px solid var(--mag-border);
  background: var(--mag-bg);
  border-radius: var(--mag-radius);
  overflow: hidden;
  aspect-ratio: var(--mag-grid-ar);
}

.ab-magShot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* important pour un rendu “magazine grid” */
}

/* micro-hover clean */
@media (hover:hover){
  .ab-magBoard,
  .ab-magShot{
    transform: translateZ(0);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1),
                border-color 240ms cubic-bezier(.2,.8,.2,1),
                filter 240ms cubic-bezier(.2,.8,.2,1);
  }
  .ab-magBoard:hover,
  .ab-magShot:hover{
    transform: scale(1.01);
    border-color: rgba(255,255,255,.20);
  }
}

/* ROW “flow” : suite en dessous (optionnel) */
.ab-magRow--flow{
  width: min(1120px, calc(100% - 48px));
  margin: calc(var(--mag-gap) * 1.5) auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--mag-gap);
}

.ab-flowShot{
  margin: 0;
  grid-column: span 6;
  border: 1px solid var(--mag-border);
  background: var(--mag-bg);
  border-radius: var(--mag-radius);
  overflow: hidden;
}

.ab-flowShot--full{
  grid-column: 1 / -1;
}

.ab-flowShot img{
  width: 100%;
  height: auto;
  display: block;
}

/* responsive */
@media (max-width: 900px){
  .ab-magRow--hero{
    grid-template-columns: 1fr;
  }
  .ab-magGrid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .ab-flowShot{ grid-column: 1 / -1; }
}

@media (max-width: 520px){
  .ab-magGrid{
    grid-template-columns: 1fr; /* vignettes en pile */
  }
}
/* =========================
   CASE PAGE — MOBILE FIXES
   Scoped to .ab-case only
========================= */

.ab-case{
  background: var(--bg);
  color: var(--fg);
}

/* ---------- HERO: default (desktop/tablet) stays as-is ---------- */

/* ---------- MOBILE: hero becomes 16:9 + spacing after hero ---------- */
@media (max-width: 768px){

  /* 1) HERO in 16:9 (instead of tall 90vh) */
  .ab-caseHero{
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .ab-caseHero__inner{
    min-height: 0 !important;
    height: 100% !important;
    padding: 16px 0 !important; /* keeps text readable on top of hero */
  }

  /* 2) More breathing space between hero and intro */
  .ab-caseInfo{
    padding-top: 28px !important;
    padding-bottom: 26px !important;
  }

  /* Optional: tighten huge title a bit on small screens */
  .ab-caseHero__title{
    letter-spacing: -0.06em;
    line-height: .88;
  }

  /* Tagline spacing */
  .ab-caseHero__tagline{
    margin-top: 4px;
  }
}

/* ---------- GLOBAL (all screens): add a clean gap before the "CASE" block ---------- */
.ab-caseVideo{
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 5vw, 64px);
}

/* ---------- NEXT NAV: more room + better buttons ---------- */
.ab-caseNext{
  /* 3) Space between "CASE" section and footer buttons */
  margin-top: clamp(18px, 4vw, 42px);

  /* 4) Extra breathing space after footer (+ iOS safe area) */
  padding-bottom: calc(clamp(34px, 7vw, 90px) + env(safe-area-inset-bottom));
}

/* Buttons: allow wrap + more text room */
.ab-nextLink{
  white-space: normal;              /* allow 2 lines if needed */
  line-height: 1.15;
  max-width: 100%;
}

/* Mobile: buttons become 2 equal full-width pills, no truncation */
@media (max-width: 560px){
  .ab-caseNext{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  .ab-nextLink{
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;             /* more room for text */
    font-size: 13px;
    letter-spacing: .06em;
  }
}
/* =========================
   CASE FOOTER NAV — FINAL FIX
========================= */

.ab-caseNext{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  margin-top: 32px;
  padding-bottom: env(safe-area-inset-bottom);
}

/* boutons */
.ab-nextLink{
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* 👉 espace réel APRÈS le footer */
.ab-caseNext::after{
  content: "";
  display: block;
  height: 48px; /* ← ajuste ici si tu veux + ou - d’air */
}

/* mobile */
@media (max-width: 560px){
  .ab-caseNext{
    flex-direction: row !important;
  }

  .ab-nextLink{
    font-size: 13px;
    padding: 12px 14px;
  }
}
/* =========================
   CASE FOOTER NAV — Desktop vs Mobile
========================= */

/* Base (desktop) */
.ab-caseNext{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding: 0 0 clamp(40px, 7vw, 90px); /* ✅ padding bas desktop */
}

/* Pas d’espace artificiel sur desktop */
.ab-caseNext::after{
  content: none;
}

/* Mobile uniquement : espace réel après boutons */
@media (max-width: 560px){
  .ab-caseNext{
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .ab-nextLink{
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .ab-caseNext::after{
    content:"";
    display:block;
    height: 60px; /* ✅ air sous les boutons mobile */
  }
}