/* =========================================================
   TATEA — S05 « La méthode » : 4 mises en page dans la grille commune (pilotées par le défilement)
   A le panneau · B la pile · C la frise · D la grille
   Même départ sous le titre, même colonne de texte (--col), même bouton jaune en bas à gauche,
   même bleu nuit et même arrondi (--r) que les niveaux de la S04.
   ========================================================= */
[data-mt] .cv__list { display: none; }
.mtx img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.mtx) button { font: inherit; color: inherit; text-align: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* la grille commune */
.mtx { position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--top) + var(--tth, 110px) + var(--tg)); bottom: calc(var(--bh6, 0px) + var(--bot));
  display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "intro vis" "side vis" "foot vis"; gap: 16px var(--gap); }
.mtx .mt__intro { grid-area: intro; margin: 0; font-size: var(--intro); line-height: 1.45; color: var(--text); max-width: 38ch; }
.mtx__vis { grid-area: vis; position: relative; min-height: 0; }
.mtx .cv__foot { grid-area: foot; display: grid; justify-items: start; }

/* les textes communs */
.mtx__k { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--gold-strong); }
.mtx__fig { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.mtx__fig b { font-size: clamp(44px, 4.6vw, 76px); font-weight: 500; line-height: .9; letter-spacing: -.03em; color: var(--gold-strong); }
.mtx__fig span { max-width: 14ch; font-size: 13px; line-height: 1.25; color: rgb(255 255 255 / .62); }
.mtx h3, .mtx__tt { margin: clamp(14px, 2.4vh, 24px) 0 0; font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.mtx__d { margin: 10px 0 0; max-width: 40ch; font-size: clamp(14px, 1.05vw, 16.5px); line-height: 1.45; color: rgb(255 255 255 / .74); }

/* la liste des 5 points (A et C), dans la colonne de texte */
.mtx__list { grid-area: side; align-self: center; margin: 0; padding: 0; list-style: none; }
.mtx__list li { border-top: 1px solid rgb(22 33 61 / .12); }
.mtx__list button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 11px 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.25; color: rgb(22 33 61 / .38); transition: color .35s; }
.mtx__list i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: rgb(22 33 61 / .3); transition: color .35s; }
.mtx__list li.on button { color: var(--ink); }
.mtx__list li.on i { color: var(--gold); }

/* ---------- A : le panneau ---------- */
.mtx__pn { position: absolute; inset: 0; display: grid; grid-template-columns: 48% 1fr; overflow: hidden; border-radius: var(--r); background: var(--night); color: #fff; }
.mtx__ph { position: relative; overflow: hidden; }
.mtx__im { position: absolute; inset: 0; overflow: hidden; will-change: opacity; }
.mtx__im img { will-change: transform; }
.mtx__tx { position: relative; }
.mtx__c { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 48px); will-change: transform, opacity; }

/* ---------- B : la pile ---------- */
.mtx--b .mtx__vis { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(14px, 1.6vw, 24px); }
.mtx__pile { position: relative; min-height: 0; padding-top: 3%; }
.mtx__card { --dim: 0; position: absolute; left: 0; right: 0; top: 3%; bottom: 0; display: grid; grid-template-columns: 1fr 48%; overflow: hidden; border-radius: var(--r);
  background: var(--night); color: #fff; box-shadow: 0 -18px 40px -26px rgb(11 22 38 / .6); transform-origin: 50% 0; will-change: transform; }
.mtx__card::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: calc(var(--dim) * .55); pointer-events: none; }
.mtx__cph { position: relative; overflow: hidden; order: 2; }
.mtx__ctx { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 48px); }
.mtx__dots { display: grid; align-content: center; gap: 8px; }
.mtx__dots button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgb(22 33 61 / .08); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgb(22 33 61 / .5); transition: background-color .35s, color .35s; }
.mtx__dots button.on { background: var(--gold); color: var(--ink); }

/* ---------- C : la frise ---------- */
.mtx--c .mtx__vis { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(14px, 2.4vh, 24px); }
.mtx__stage { position: relative; overflow: hidden; border-radius: var(--r); background: var(--night); color: #fff; }
.mtx__stage .mtx__im::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 22 38 / .92) 0%, rgb(11 22 38 / .7) 38%, rgb(11 22 38 / 0) 72%); }
.mtx__ov { position: absolute; left: 0; top: 0; bottom: 0; width: min(54%, 520px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 48px); will-change: transform, opacity; }
.mtx__bar { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 14px; }
.mtx__bar::before, .mtx__fill { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: rgb(22 33 61 / .12); }
.mtx__fill { display: block; background: var(--gold); transform-origin: left; will-change: transform; }
.mtx__bar button { display: grid; gap: 4px; padding-right: 8px; font-size: clamp(14px, 1.05vw, 16px); font-weight: 500; color: rgb(22 33 61 / .42); transition: color .35s; }
.mtx__bar i { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; }
.mtx__bar button.on { color: var(--ink); }
.mtx__bar button.on i { color: var(--gold); }

/* ---------- D : la grille ---------- */
.mtx__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtx__tile { --on: 0; position: relative; overflow: hidden; display: block; border-radius: var(--r); background: #fff; color: var(--ink); grid-column: span 2; }
.mtx__tile:nth-child(-n+2) { grid-column: span 3; }
.mtx__tim, .mtx__tbg { position: absolute; inset: 0; opacity: var(--on); will-change: opacity; }
.mtx__tim img { transform: scale(calc(1.1 - .1 * var(--on))); }
.mtx__tbg { background: linear-gradient(0deg, rgb(11 22 38 / .95) 30%, rgb(11 22 38 / .55)); }
.mtx__tin { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 1.8vw, 26px); }
.mtx__tin .mtx__k { margin-bottom: auto; color: var(--gold); }
.mtx__tile .mtx__fig b { font-size: clamp(34px, 3.2vw, 54px); color: var(--gold); }
.mtx__tile .mtx__fig span { color: rgb(22 33 61 / .55); }
.mtx__tt { display: block; margin-top: 10px; font-size: clamp(17px, 1.35vw, 22px); }
.mtx__tile .mtx__d { display: block; max-width: 44ch; color: rgb(22 33 61 / .7); font-size: clamp(13px, .95vw, 15px); }
/* la case en cours : textes en blanc sur la photo (en fondu, même valeur --on) */
.mtx__tile .mtx__fig span, .mtx__tile .mtx__d, .mtx__tt { transition: color .3s; }
.mtx__tile.is-on, .mtx__tile.is-on .mtx__tt { color: #fff; }
.mtx__tile.is-on .mtx__fig span { color: rgb(255 255 255 / .65); }
.mtx__tile.is-on .mtx__d { color: rgb(255 255 255 / .78); }
.mtx__tile.is-on .mtx__fig b, .mtx__tile.is-on .mtx__k { color: var(--gold-strong); }

/* ---------- tablette en paysage ---------- */
@media (min-width: 900px) and (max-width: 1180px) {
  .mtx__pn { grid-template-columns: 42% 1fr; }
  .mtx__card { grid-template-columns: 1fr 40%; }
  .mtx__ov { width: 68%; }
  .mtx__tile .mtx__d { display: none; }
  .mtx__tile.is-on .mtx__d { display: block; }
}

/* ---------- téléphone et tablette en portrait : intro, visuel, bouton l'un sous l'autre ---------- */
@media (max-width: 899px) {
  .mtx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "intro" "vis" "foot"; gap: 12px; }
  .mtx__list { display: none; }
  .mtx__fig b { font-size: 40px; }
  .mtx h3, .mtx__tt { margin-top: 10px; font-size: 21px; }
  .mtx__d { font-size: 14px; }
  .mtx__pn { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40% minmax(0, 1fr); }
  .mtx__c { justify-content: flex-start; padding: 18px; }
  .mtx--b .mtx__vis { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .mtx__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40% minmax(0, 1fr); }
  .mtx__cph { order: 0; }
  .mtx__ctx { justify-content: flex-start; padding: 18px; }
  .mtx__dots { display: flex; justify-content: center; }
  .mtx__dots button { width: 36px; height: 36px; }
  .mtx__ov { width: auto; right: 0; padding: 18px; }
  .mtx__stage .mtx__im::after { background: linear-gradient(0deg, rgb(11 22 38 / .95) 0%, rgb(11 22 38 / .75) 50%, rgb(11 22 38 / .1) 85%); }
  .mtx__bar span { display: none; }
  .mtx__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(5, auto); gap: 6px; align-content: stretch; }
  .mtx__tile, .mtx__tile:nth-child(-n+2) { grid-column: auto; }
  .mtx__tin { padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
  .mtx__tin .mtx__k { display: none; }
  .mtx__tile .mtx__fig b { font-size: 26px; }
  .mtx__tile .mtx__fig span { display: none; }
  .mtx__tt { margin: 0; font-size: 16px; }
  .mtx__tile .mtx__d { grid-column: 1 / -1; display: none; margin-top: 6px; }
  .mtx__tile.is-on .mtx__d { display: block; }
}

/* cadrage des photos (portraits : on garde le visage) */
.mtx img[src*="visage"] { object-position: 50% 10%; }
.mtx img[src*="fondateur"] { object-position: 50% 18%; }
.mtx__pile { overflow: hidden; border-radius: var(--r) var(--r) 0 0; }

/* ---------- E : les volets (2026-10-21) — 5 volets, celui qu'on survole s'ouvre ---------- */
.mtx__acc { position: absolute; inset: 0; display: flex; gap: 10px; }
.mtx .mtx__pan { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--night); color: #fff; text-align: left; transition: flex-grow .65s var(--ease); }
.mtx .mtx__pan.on { flex-grow: 6; cursor: default; }
.mtx__pim, .mtx__pbg { position: absolute; inset: 0; display: block; }
.mtx__pim img { transform: scale(1.08); transition: transform .8s var(--ease); }
.mtx__pan.on .mtx__pim img { transform: none; }
.mtx__pbg { background: rgb(11 22 38 / .62); transition: background .5s; }
.mtx__pan.on .mtx__pbg { background: linear-gradient(0deg, rgb(11 22 38 / .94) 8%, rgb(11 22 38 / .55) 48%, rgb(11 22 38 / .08) 82%); }
.mtx__pan:not(.on):hover .mtx__pbg, .mtx__pan:not(.on):focus-visible .mtx__pbg { background: rgb(11 22 38 / .4); }
.mtx__pnum { position: absolute; left: clamp(16px, 1.6vw, 24px); top: clamp(16px, 1.6vw, 24px); font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--gold); }
.mtx__pv { position: absolute; left: clamp(16px, 1.6vw, 24px); bottom: clamp(16px, 1.6vw, 24px); writing-mode: vertical-rl; transform: rotate(180deg); max-height: calc(100% - 70px); overflow: hidden; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s; }
.mtx__pan.on .mtx__pv { opacity: 0; }
.mtx__pbody { position: absolute; left: clamp(18px, 2vw, 32px); bottom: clamp(18px, 2vw, 32px); width: clamp(240px, 26vw, 400px); display: block; opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none; transition: opacity .2s, transform .3s; }
.mtx__pan.on .mtx__pbody { opacity: 1; transform: none; transition: opacity .5s .3s, transform .6s var(--ease) .3s; }
.mtx__pbody .mtx__fig { display: flex; }
.mtx__pt { display: block; margin-top: clamp(10px, 1.8vh, 18px); font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.mtx__pbody .mtx__d { display: block; }
@media (min-width: 900px) and (max-width: 1180px) { .mtx__pbody { width: clamp(220px, 24vw, 300px); } .mtx__pbody .mtx__fig b { font-size: 38px; } }
@media (max-width: 899px) {
  .mtx__acc { flex-direction: column; gap: 6px; }
  .mtx .mtx__pan.on { flex-grow: 5; }
  .mtx__pnum { top: 14px; left: 14px; }
  .mtx__pv { left: 46px; top: 12px; bottom: auto; writing-mode: horizontal-tb; transform: none; max-height: none; max-width: calc(100% - 64px); font-size: 15px; }
  .mtx__pbody { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .mtx__pbody .mtx__fig { display: none; }
  .mtx__pt { margin-top: 0; font-size: 19px; }
  .mtx__pbody .mtx__d { margin-top: 6px; font-size: 13.5px; }
}

/* 2026-10-21 : légende du chiffre plus grande et plus lisible, centrée sur le chiffre (« augmente la taille du texte qui est à côté du nombre ») */
.mtx__pbody .mtx__fig { align-items: center; gap: clamp(12px, 1.2vw, 20px); }
.mtx__pbody .mtx__fig span { max-width: 13ch; font-size: clamp(17px, 1.45vw, 23px); font-weight: 500; line-height: 1.2; color: rgb(255 255 255 / .92); }
