/* Auteur et méthode : variation éditoriale du design system 8.2.0. */
:is(.profile-page, .method-page) {
  --profile-ink: #030712;
  --profile-charcoal: #0e1630;
  --profile-violet: #151435;
  --profile-paper: #f4efe5;
  --profile-gold: #e8c872;
  color: #f7f4ee;
  overflow: clip;
}
:is(.profile-page, .method-page) *, :is(.profile-page, .method-page) *::before, :is(.profile-page, .method-page) *::after { box-sizing: border-box; }
.profile-band { position: relative; isolation: isolate; }
.profile-band--ink { background: var(--profile-ink); }
.profile-band--paper { background: var(--profile-paper); color: #10182b; }
.profile-band--charcoal { background: var(--profile-charcoal); }
.profile-band--violet { background: var(--profile-violet); }
.profile-band--gold { background: var(--profile-gold); color: #1a1408; }
.profile-shell { width: min(100% - 48px, 1200px); margin-inline: auto; position: relative; }
.profile-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 12px;
  color: #1a1408;
  background: var(--profile-gold);
  font: 700 0.74rem/1.1 var(--font-sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.profile-band--paper .profile-kicker { background: #111a31; color: #fff; }
.profile-band--gold .profile-kicker { background: #1a1408; color: var(--profile-gold); }
.profile-page h1, .profile-page h2, .profile-page h3 { font-family: var(--font-sans); color: inherit; }
.profile-page h1 em, .profile-page h2 em { font-family: var(--font-display); font-weight: 500; color: var(--profile-gold); }
.profile-band--paper h2 em { color: #8e621e; }
.profile-band--gold h2 em { color: #482f0d; }
.profile-page a:focus-visible { outline: 3px solid #f9de92; outline-offset: 5px; }
.profile-band--paper a:focus-visible, .profile-band--gold a:focus-visible { outline-color: #17264b; }

.profile-hero { padding: clamp(134px, 11vw, 184px) 0 70px; }
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 74%;
  z-index: -1;
  background: radial-gradient(ellipse at 83% 24%, rgba(98, 76, 178, .28), transparent 55%),
              linear-gradient(125deg, transparent 37%, rgba(232, 200, 114, .035) 38%, transparent 39%);
  pointer-events: none;
}
.profile-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(36px, 5vw, 82px); align-items: center; }
.profile-hero__copy { animation: profile-arrive .65s ease-out both; }
.profile-page h1 { max-width: 780px; margin: 0; font-size: clamp(3.2rem, 6.1vw, 6.7rem); font-weight: 800; line-height: .99; letter-spacing: -.055em; }
.profile-lead { max-width: 650px; margin: 28px 0 30px; color: #d2d6e2; font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.55; }
.profile-hero__action { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; }
.profile-portrait-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 5 / 5.6;
  margin: 0;
  border: 1px solid rgba(232, 200, 114, .5);
  background: #0d1630;
  overflow: hidden;
  animation: profile-arrive .75s .12s ease-out both;
}
.profile-portrait-frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(232, 200, 114, .25); z-index: 1; pointer-events: none; }
.profile-portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .55s ease; }
.profile-portrait-frame:hover img { transform: scale(1.025); }
.profile-portrait-frame figcaption { position: absolute; inset: auto 0 0; padding: 56px 30px 26px; display: flex; justify-content: space-between; align-items: end; gap: 12px; background: linear-gradient(transparent, rgba(3, 7, 18, .9)); color: #fff; z-index: 2; }
.profile-portrait-frame figcaption strong { font-size: 1.2rem; }
.profile-portrait-frame figcaption span { max-width: 145px; text-align: right; font-size: .76rem; line-height: 1.35; color: #e0e3ec; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 600px; margin: 50px 0 0; border-top: 1px solid rgba(232, 200, 114, .38); }
.profile-stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 22px 28px 0 0; }
.profile-stats div + div { border-left: 1px solid rgba(232, 200, 114, .2); padding-left: 28px; }
.profile-stats dt { color: #bfc5d5; font: 600 .82rem/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: .09em; }
.profile-stats dd { margin: 0; color: var(--profile-gold); font: 800 clamp(2.6rem, 4.5vw, 4.4rem)/1 var(--font-sans); letter-spacing: -.05em; }

.profile-work, .profile-criteria, .profile-method { padding: clamp(76px, 8vw, 116px) 0; }
.profile-section-head { max-width: 760px; }
.profile-section-head h2, .profile-end h2 { margin: 0; font-size: clamp(2.4rem, 4.3vw, 4.6rem); line-height: 1.02; letter-spacing: -.047em; }
.profile-section-head > p:last-child { max-width: 720px; margin: 24px 0 0; color: #c5cada; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.62; }
.profile-band--paper .profile-section-head > p:last-child { color: #394253; }
.profile-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 42px; counter-reset: profile-card; }
.profile-work__card { min-width: 0; min-height: 290px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid #d7d1c5; background: #fffdfa; counter-increment: profile-card; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.profile-work__card:hover { transform: translateY(-5px); border-color: #9a7134; box-shadow: 0 14px 32px rgba(11, 21, 44, .12); }
.profile-card-index { color: #926a31; font: 700 .8rem/1 var(--font-mono); letter-spacing: .12em; }
.profile-card-index::before { content: counter(profile-card, decimal-leading-zero); }
.profile-work__card h3 { margin: 29px 0 12px; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.13; letter-spacing: -.025em; }
.profile-work__card p { margin: 0 0 28px; color: #394253; font-size: .98rem; line-height: 1.52; }
.profile-work__card a { margin-top: auto; color: #182b56; font-weight: 750; text-underline-offset: 4px; }
.profile-work__card a span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.profile-work__card a:hover span, .profile-method__link:hover span, .profile-end__link:hover span { transform: translate(3px, -3px); }

.profile-criteria__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.profile-criteria__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.profile-criteria__list li { padding: 20px 0; border-bottom: 1px solid rgba(232, 200, 114, .24); color: #e9ecf3; font-weight: 650; line-height: 1.32; }
.profile-criteria__list li::before { content: "↗"; margin-right: 10px; color: var(--profile-gold); font-family: var(--font-mono); }

.profile-method { background-image: radial-gradient(circle at 90% 14%, rgba(153, 102, 221, .16), transparent 37%); }
.profile-method__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 44px 0 30px; padding: 0; list-style: none; counter-reset: profile-step; }
.profile-method__steps li { min-width: 0; padding: 28px; border-top: 2px solid var(--profile-gold); background: rgba(255, 255, 255, .055); counter-increment: profile-step; }
.profile-method__steps li::before { content: counter(profile-step, decimal-leading-zero); display: block; margin-bottom: 25px; color: var(--profile-gold); font: 700 .85rem/1 var(--font-mono); }
.profile-method__steps h3 { margin: 0 0 13px; font-size: 1.42rem; line-height: 1.17; }
.profile-method__steps p { margin: 0; color: #cbd0df; line-height: 1.53; font-size: .96rem; }
.profile-method__link { display: inline-flex; min-height: 46px; align-items: center; gap: 8px; color: var(--profile-gold); font-weight: 750; text-underline-offset: 5px; }
.profile-method__link span, .profile-end__link span { display: inline-block; transition: transform .2s ease; }

.profile-end { padding: 65px 0 70px; }
.profile-end__grid { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.profile-end h2 { max-width: 760px; font-size: clamp(2.2rem, 3.5vw, 3.8rem); }
.profile-end__link { flex: none; display: inline-flex; min-height: 52px; align-items: center; gap: 12px; padding: 0 22px; background: #1a1408; color: #f7e7be; font-weight: 750; }
.profile-end__link:hover { color: #fff; }
.profile-page + [data-site-footer] { margin-top: 0; }

@keyframes profile-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .profile-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 32px; }
  .profile-page h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); }
  .profile-work__card { padding: 23px; }
  .profile-criteria__grid { gap: 36px; }
}
@media (max-width: 700px) {
  .profile-shell { width: min(100% - 36px, 540px); }
  .profile-hero { padding: 116px 0 62px; }
  .profile-hero__grid, .profile-criteria__grid { grid-template-columns: 1fr; }
  .profile-hero__grid { gap: 36px; }
  .profile-page h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .profile-lead { margin: 22px 0 25px; }
  .profile-portrait-frame { max-width: 480px; aspect-ratio: 1 / 1.05; }
  .profile-stats { margin-top: 36px; }
  .profile-stats div { padding-top: 20px; }
  .profile-work, .profile-criteria, .profile-method { padding: 68px 0; }
  .profile-work__grid, .profile-method__steps { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .profile-work__card { min-height: 0; }
  .profile-work__card h3 { margin-top: 21px; }
  .profile-criteria__list { margin-top: 0; }
  .profile-end { padding: 60px 0; }
  .profile-end__grid { display: block; }
  .profile-end__link { margin-top: 28px; }
}
@media (max-width: 420px) {
  .profile-shell { width: calc(100% - 32px); }
  .profile-page h1 { font-size: 2.65rem; }
  .profile-portrait-frame figcaption { padding: 46px 20px 20px; }
  .profile-stats dd { font-size: 2.7rem; }
  .profile-criteria__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-page *, .profile-page *::before, .profile-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* La page méthode garde le même langage, avec un rythme de lecture documentaire. */
.method-page { counter-reset: method-section; overflow: clip; }
.method-page h1, .method-page h2 { font-family: var(--font-sans); color: inherit; }
.method-page h1 em, .method-page h2 em { font-family: var(--font-display); font-weight: 500; color: var(--profile-gold); }
.method-page .profile-band--paper h2 em { color: #8e621e; }
.method-page .profile-band--gold h2 em { color: #482f0d; }
.method-page a:focus-visible { outline: 3px solid #f9de92; outline-offset: 5px; }
.method-page .profile-band--paper a:focus-visible, .method-page .profile-band--gold a:focus-visible { outline-color: #17264b; }
.method-hero { padding: clamp(134px, 11vw, 184px) 0 96px; background-image: radial-gradient(ellipse at 90% 25%, rgba(106, 79, 184, .24), transparent 55%); }
.method-hero__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(290px, .78fr); gap: clamp(40px, 7vw, 100px); align-items: end; }
.method-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.2rem, 5.7vw, 6.3rem); line-height: .99; letter-spacing: -.053em; }
.method-lead { max-width: 730px; margin: 30px 0 0; color: #d2d6e2; font-size: clamp(1.06rem, 1.4vw, 1.28rem); line-height: 1.58; }
.method-meta { margin: 26px 0 0; color: #bfc6d6; font-size: .84rem; letter-spacing: .02em; }
.method-meta time { color: var(--profile-gold); font-weight: 700; }
.method-hero__panel { padding: 28px; border: 1px solid rgba(232, 200, 114, .44); background: rgba(18, 26, 53, .88); animation: profile-arrive .7s .1s ease-out both; }
.method-hero__panel-label { margin: 0 0 12px; color: var(--profile-gold); font: 700 .82rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.method-hero__panel ol { counter-reset: method-stage; margin: 0; padding: 0; list-style: none; }
.method-hero__panel li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(232, 200, 114, .17); color: #f7f4ee; font-weight: 650; line-height: 1.32; counter-increment: method-stage; }
.method-hero__panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.method-hero__panel li::before { content: counter(method-stage, decimal-leading-zero); color: var(--profile-gold); font: 700 .82rem/1 var(--font-mono); }
.method-band { padding: clamp(76px, 8vw, 116px) 0; }
.method-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 7vw, 100px); }
.method-section { min-width: 0; padding-top: 22px; border-top: 1px solid rgba(232, 200, 114, .52); counter-increment: method-section; }
.method-band.profile-band--paper .method-section { border-color: #a27c42; }
.method-section::before { content: counter(method-section, decimal-leading-zero); display: block; margin-bottom: 32px; color: var(--profile-gold); font: 700 .85rem/1 var(--font-mono); }
.method-band.profile-band--paper .method-section::before { color: #865b1d; }
.method-section h2 { max-width: 510px; margin: 0 0 23px; font-size: clamp(2rem, 3vw, 3.3rem); line-height: 1.07; letter-spacing: -.04em; }
.method-section p { max-width: 560px; margin: 0 0 20px; color: #d1d5e0; font-size: 1.02rem; line-height: 1.66; }
.method-band.profile-band--paper .method-section p { color: #394253; }
.method-section p:last-child { margin-bottom: 0; }
.method-section a { color: var(--profile-gold); text-underline-offset: 4px; font-weight: 700; }
.method-note { padding: 23px; background: rgba(232, 200, 114, .08); border-left: 3px solid var(--profile-gold); }
.method-end { padding: 68px 0; }
.method-end__grid { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.method-end h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.043em; }
.method-end__link { flex: none; display: inline-flex; min-height: 52px; align-items: center; gap: 12px; padding: 0 22px; background: #1a1408; color: #f7e7be; font-weight: 750; }
.method-end__link span { display: inline-block; transition: transform .2s ease; }
.method-end__link:hover { color: #fff; }
.method-end__link:hover span { transform: translate(3px, -3px); }
.method-page + [data-site-footer] { margin-top: 0; }
@media (max-width: 850px) {
  .method-hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .method-hero__panel { max-width: 560px; }
  .method-band__grid { gap: 36px; }
}
@media (max-width: 700px) {
  .method-hero { padding: 116px 0 68px; }
  .method-hero h1 { font-size: clamp(2.75rem, 11vw, 4.4rem); }
  .method-band { padding: 68px 0; }
  .method-band__grid { grid-template-columns: 1fr; gap: 54px; }
  .method-section::before { margin-bottom: 22px; }
  .method-end { padding: 60px 0; }
  .method-end__grid { display: block; }
  .method-end__link { margin-top: 26px; }
}
@media (max-width: 420px) {
  .method-hero h1 { font-size: 2.67rem; }
  .method-hero__panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .method-page *, .method-page *::before, .method-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
