/* ==========================================================================
   Page « Qui suis-je ? »
   ========================================================================== */

body.about { background: var(--paper); }

/* --------------------------------------------------------------------------
   En-tête photo
   -------------------------------------------------------------------------- */
.ah {
  position: relative;
  color: #f4f3ee;
  isolation: isolate;
}
/* Comme les pages « works » d'AUGE : la photo est fixée derrière la page.
   Elle est entière (proportion 3:2), et se fond doucement dans le noir.
   Le contenu monte par-dessus en défilant, avec un dégradé (pas de coupure
   nette). En remontant tout en haut, la photo se dézoome et apparaît au
   complet ; le logo se centre et la barre du bas apparaît (about.js). */
.ah__photo {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #121212; /* le noir uni sous la photo */
}
.ah__zoom {
  position: absolute;
  inset: 0 0 auto;
  height: min(100vh, 66.667vw);
  transform: scale(var(--s, 1));
  transform-origin: 50% 35%;
  will-change: transform;
  overflow: hidden; /* l'image agrandie ne dépasse pas sous le fondu */
}
.ah__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%; /* garde Jean-Christophe (à gauche) dans le cadre */
}
/* fondu vers un noir uni en bas de la photo */
.ah__zoom::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 30%;
  background: linear-gradient(180deg, #12121200, #121212);
  pointer-events: none;
}
/* l'espace où l'on voit la photo, avant le contenu (tout l'écran) */
.ah__spacer { height: 100vh; height: 100svh; }

/* Barre du bas, visible seulement tout en haut de la page */
body.about .bar.ah__bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 39;
  color: #f4f3ee;
  background: linear-gradient(180deg, #12121200, #121212b0);
  opacity: var(--top, 0);
  translate: 0 calc((1 - var(--top, 0)) * 100%);
  pointer-events: none;
}
body.about .bar.ah__bar.is-on { pointer-events: auto; }

.ah__meta {
  position: fixed;
  top: 16px;
  right: calc(var(--gutter) + 60px);
  z-index: 41;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  mix-blend-mode: difference;
  color: #fff;
  opacity: calc(1 - var(--top, 0));
}

/* Le contenu commence en transparence : le début du texte est posé sur la
   photo, puis le fond devient noir uni (dégradé doux, pas de coupure) */
.ah__content {
  position: relative;
  padding: 0 var(--gutter) 8vh;
  background: linear-gradient(180deg, #12121200 0, #121212a6 10vh, #121212e6 22vh, #121212 34vh);
}
.ah__content::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 14vh;
  background: linear-gradient(180deg, #12121200, #12121230);
  pointer-events: none;
}
.ah__intro { padding: 2vh 0 2vh; text-shadow: 0 2px 40px #0008; }
.tl-in { display: inline-block; }
.ah__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
  opacity: .8;
}
.ah__big {
  margin: 0;
  max-width: 15.5em;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.ah__big em.s { font-size: 1.08em; line-height: .9; }

.ah__cols {
  display: grid;
  grid-template-columns: 1fr 2fr 1.2fr;
  gap: var(--gutter);
  margin-top: 12vh;
  align-items: start;
}
.ah__p { max-width: 46ch; font-size: 13px; line-height: 1.55; opacity: .9; }
.ah__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  margin: 0;
  font-size: 12px;
}
.ah__facts dt { opacity: .6; }
.ah__facts dd { margin: 0; }

.ah__cta {
  display: inline-block;
  margin-top: 14vh;
  font-size: clamp(42px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -.03em;
  transition: color .3s;
}
.ah__cta:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Section blanche avec grille pointillée (style Podium)
   -------------------------------------------------------------------------- */
.pod {
  position: relative;
  background: var(--paper);
  padding: 140px var(--gutter) 160px;
  overflow: hidden;
}
.pod__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: #111;
}
.pod__lines .d { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 14 10; }
.pod__lines .d2 { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 7 6; opacity: .55; }
.pod__lines .sq { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 2; }
.pod__lines .rings { animation: ringspin 120s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringspin { to { transform: rotate(360deg); } }

.pod__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1300px, 100%);
  margin: 0 auto;
}

.box {
  position: relative;
  padding: clamp(28px, 4vw, 64px);
}
/* petits points aux coins comme sur le modèle */
.box::before,
.box::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--ink);
}
.box::before { left: -2px; top: -2px; }
.box::after { right: -2px; bottom: -2px; }

.box__label {
  margin: 0 0 22px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.box__list,
.box__rows { list-style: none; margin: 0; padding: 0; }
.box__list li,
.box__inline {
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: 800;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.24;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.box__list--sm li { font-size: clamp(14px, 1.15vw, 17px); }
.box__inline { word-spacing: .08em; }

.box__rows li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px dashed #0006;
  font-size: 13px;
}
.box__rows li:last-child { border-bottom: 1px dashed #0006; }
.box__rows b {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
}
.box__rows span:last-child { grid-column: 2; color: #333; }
.box__rows span:first-child { grid-row: span 2; font-variant-numeric: tabular-nums; }
.box__rows a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.box__rows a:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }

/* Services : petite animation rigolote — les mots tombent en se dandinant,
   et chacun s'incline et se surligne au survol */
.box--services .box__list li {
  width: fit-content;
  padding: 0 6px;
  margin-left: -6px;
  border-radius: 4px;
  opacity: 0;
  transform-origin: 20% 80%;
  transition: background .2s, transform .45s cubic-bezier(.34, 1.8, .64, 1);
  cursor: default;
}
.box--services.is-in .box__list li {
  opacity: 1;
  animation: svc-drop 1s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * 85ms + .2s) backwards;
}
@keyframes svc-drop {
  0% { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * 3)); }
  60% { opacity: 1; transform: translateY(6px) rotate(calc(var(--r) * -1)); }
  100% { opacity: 1; transform: none; }
}
.box--services .box__list li:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(var(--r)) scale(1.08);
}
.box--services .box__list li:hover::after { content: " ✦"; }

/* Même petit effet au survol : distinctions, parcours et outils */
.box--tools .box__list li,
.box__rows li {
  border-radius: 4px;
  transition: background .2s, color .2s, transform .45s cubic-bezier(.34, 1.8, .64, 1);
  cursor: default;
}
.box--tools .box__list li { width: fit-content; padding: 0 6px; margin-left: -6px; }
.box__rows li { padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
/* sur la couleur d'accent, tout le texte de la ligne passe en blanc */
.box__rows li:hover span, .box__rows li:hover a { color: inherit; }
.box__rows li:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(calc(var(--r) * .35)) scale(1.03);
}
.box--tools .box__list li:hover {
  background: var(--ink);
  color: var(--accent);
  transform: rotate(var(--r)) scale(1.08);
}
.box--tools .box__list li:hover::after,
.box__rows li:hover b::after { content: " ✦"; }
@media (prefers-reduced-motion: reduce) {
  .box--services .box__list li { opacity: 1; animation: none !important; }
}

.box--awards { background: #f3f1e6; grid-column: 1; grid-row: 1 / 3; }
.box--clients { background: #dcdcdc; grid-column: 2; grid-row: 1 / 2; margin-top: 120px; }
.box--school { background: #e6e6e1; grid-column: 2; grid-row: 2 / 4; margin-top: 90px; }
.box--services { background: #fbf6f5; grid-column: 1; grid-row: 3 / 5; margin-top: 90px; }
.box--tools { background: var(--accent); grid-column: 2; grid-row: 4 / 6; margin-top: 90px; }
.box { align-self: start; }
.box--tools .box__list { columns: 2; column-gap: 28px; }

/* --------------------------------------------------------------------------
   Coulisses
   -------------------------------------------------------------------------- */
.bts {
  position: relative;
  background: var(--bg);
  padding-top: 90px;
}
.bts__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 20px;
  padding: 0 var(--gutter);
}
.bts__head .box__label { grid-column: 1 / -1; margin: 0; }
.bts__title {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 86;
  font-weight: 800;
  font-size: clamp(54px, 10vw, 180px);
  line-height: .85;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.bts__title em.s { text-transform: none; font-size: .95em; }
.bts__hint { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.bts__strip { height: min(78vh, 720px); margin-top: 10px; }

.end {
  background: var(--bg);
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.end__cta {
  font-size: clamp(42px, 8vw, 140px);
  line-height: 1;
  letter-spacing: -.03em;
  transition: background .3s;
}
.end__cta:hover { background: var(--accent); color: var(--on-accent); }
body.about .bar { background: var(--bg); }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .ah__meta { right: auto; left: calc(var(--gutter) + 90px); top: 19px; }
  .ah__cols { grid-template-columns: 1fr; margin-top: 8vh; }
  .ah__cols .ah__tag { margin: 0; }
  .pod { padding: 80px var(--gutter) 100px; }
  .pod__grid { grid-template-columns: 1fr; }
  .box { grid-column: 1 !important; grid-row: auto !important; margin-top: 0 !important; width: 100% !important; }
  .box--tools .box__list { columns: 1; }
  .box__rows li { grid-template-columns: 1fr; }
  .box__rows span:first-child { grid-row: auto; }
  .box__rows span:last-child { grid-column: 1; }
  .bts__head { grid-template-columns: 1fr; }
  .bts__strip { height: 70vh; }
}
