/* /notre-histoire (spec 5.7): photo hero, founder, vision band, values, team, reviews, CTA. */
@layer pages {

/* 1. Hero: content bottom-left at every size (spec), photo or forest + topo when there is none */
.w-hist-hero { min-height: clamp(520px, 70svh, 640px); }
.w-hist-hero--plain { background: var(--w-glow-dark), var(--w-topo) 0 0 / 640px repeat, var(--w-forest); }
.w-hist-hero--plain .w-hero__content::before { display: none; }
.w-hist-hero .w-hero__content { --_pt: calc(var(--w-header-h) + 40px); }
.w-hist-hero__h1 { max-width: 11.5em; }   /* em, not ch: a ch-based box shrinks under the fallback font and the swap reflows the bottom-anchored hero (CLS) */
.w-hist-hero__cta { margin-top: 24px; }
.w-hist-hero__cta .w-icon { transition: transform var(--w-dur-fast) var(--w-ease-out); }
@media (hover: hover) and (pointer: fine) { .w-hist-hero__cta:hover .w-icon { transform: translateY(2px); } }
/* phones: the anchor to the section right below is dropped, so the text block (and its scrim) stays short
   and more of the photo shows above it (same idea as the home hero's hidden trust line, spec 5.1) */
@media (max-width: 599px) {
  .w-hist-hero__cta { display: none; }
  .w-hist-hero .w-hero__lead { margin-top: 12px; }
}
@media (min-width: 768px) { .w-hist-hero .w-hero__content { padding-bottom: 48px; } }
@media (min-width: 1024px) {
  .w-hist-hero { justify-content: flex-end; }
  /* each H1 line (~11.5 em) fits the 52vw text column in both Jakarta and the fallback font, so the font
     swap never re-wraps the title (a re-wrap moved words by ~350 px: CLS 0.35 at 1024) */
  .w-hist-hero__h1 { font-size: min(var(--w-fs-h1), 4.4vw); }
  .w-hist-hero .w-hero__content { --_pt: calc(var(--w-header-h) + 56px); padding-bottom: 64px; }
  .w-hist-hero__cta { margin-top: 28px; }
}

/* 2. Founder: portrait 4/5 + stamp | copy (5fr 7fr from 1024, portrait first below) */
.w-hist-founder__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .w-hist-founder__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 2rem + 2.5vw, 72px); } }
.w-hist-portrait { width: 100%; max-width: 320px; margin: 0 auto; }
@media (min-width: 768px) { .w-hist-portrait { max-width: 400px; } }
@media (min-width: 1024px) { .w-hist-portrait { max-width: 480px; margin: 0; } }
.w-hist-portrait__pic { position: relative; }
.w-hist-portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--w-r-panel); background: var(--w-placeholder-bg); box-shadow: var(--w-sh-2); }
.w-hist-portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-hist-portrait__cap { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-right: 72px; font-size: 13px; line-height: 1.45; color: var(--w-muted); text-wrap: balance; }
.w-hist-portrait__cap .w-icon { width: 16px; height: 16px; margin-top: 1px; color: var(--w-teal-ink); }
.w-hist-portrait__cap strong { color: var(--w-ink); font-weight: 700; }
@media (min-width: 768px) { .w-hist-portrait__cap { padding-right: 104px; } }

.w-hist-founder__text { margin-top: 20px; }
.w-hist-founder__text p { font-size: 16px; line-height: 1.7; color: var(--w-slate); max-width: 58ch; }
.w-hist-founder__text p + p { margin-top: 14px; }
.w-hist-quote { margin: 28px 0 0; max-width: 34em; }
.w-hist-quote .w-quote { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); }
.w-hist-quote__by { margin-top: 12px; padding-left: 24px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--w-muted); }
.w-hist-quote__by cite { font-style: normal; font-weight: 700; color: var(--w-ink); }

/* the full first-person story, folded (native details, height animated where supported) */
.w-hist-more { margin-top: 24px; border-top: var(--w-border); max-width: 60ch; }
.w-hist-more__sum {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 4px; border-radius: 8px;
  font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--w-link);
}
.w-hist-more__sum .w-icon { width: 18px; height: 18px; transition: transform var(--w-dur-move) var(--w-ease-out); }
.w-hist-more[open] > .w-hist-more__sum .w-icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .w-hist-more__sum:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; } }
.w-hist-more__body { padding: 4px 0 8px; }
@supports selector(::details-content) {
  .w-hist-more::details-content { block-size: 0; overflow: clip; transition: block-size var(--w-dur-sheet) var(--w-ease-out), content-visibility var(--w-dur-sheet) allow-discrete; }
  .w-hist-more[open]::details-content { block-size: auto; }
}

/* 3. Vision (the page's one forest band): heading | text + real numbers */
.w-hist-vision__grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .w-hist-vision__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.w-hist-vision__body > p { font-size: 17px; line-height: 1.7; color: var(--w-on-dark-muted); max-width: 60ch; }
.w-hist-vision__body > p + p { margin-top: 14px; }
.w-hist-stats { margin-top: 32px; padding-top: 24px; border-top: var(--w-border-dark); gap: 16px 48px; }
@media (max-width: 599px) {
  .w-hist-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .w-hist-stats .w-stat__label { font-size: 12px; }
}

/* 4. Values: 3 white cards from 1024 (icon on top), one per row below (icon left) */
.w-hist-values__grid { display: grid; gap: 16px; }
.w-hist-value {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; align-content: start; padding: 20px;
  background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-card);
}
@media (min-width: 600px) { .w-hist-value { padding: 24px; gap: 20px; } }
@media (min-width: 1024px) {
  .w-hist-values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .w-hist-value { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
}
.w-hist-value__tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--w-forest); color: var(--w-teal); }
.w-hist-value__tile .w-icon { width: 24px; height: 24px; }
.w-hist-value__title { font-size: var(--w-fs-h3); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.w-hist-value__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--w-muted); max-width: 44ch; }

/* 5. Team: photo 4/5, role, name, bio (4 lines, "Lire la suite" when it overflows).
   < 600: compact row (112 px portrait beside the text) so two members fit in about one screen;
   600 to 1199: head on top, 2 columns (880 max); >= 1200: section head left, cards right (uses the full edge).
   (At 1024 the 4fr head column was ~300 px and the H2 broke into three one-word lines.) */
.w-hist-team__grid { display: grid; gap: 24px; }
.w-hist-member { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.w-hist-member__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--w-r-lg); background: var(--w-placeholder-bg); }
.w-hist-member__media .w-ph .w-icon { width: 28px; height: 28px; }
.w-hist-member__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-hist-member__body { padding-top: 2px; }
@media (min-width: 600px) {
  .w-hist-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; gap: 32px; }
  .w-hist-team__grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 430px; }
  .w-hist-member { display: block; }
  .w-hist-member__media { border-radius: var(--w-r-card); }
  .w-hist-member__media .w-ph .w-icon { width: 40px; height: 40px; }
  .w-hist-member__body { padding-top: 16px; }
}
/* from 768 two members fill the content width (a max-width left the second card 62 px short of the edge at 1024) */
@media (min-width: 768px) { .w-hist-team__grid:not(.w-hist-team__grid--1) { max-width: none; } }
@media (min-width: 1200px) {
  .w-hist-team__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .w-hist-team__head { position: sticky; top: calc(var(--w-header-h) + 32px); margin-bottom: 0; }
  .w-hist-team__grid { max-width: none; }
}
.w-hist-member__role { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--w-teal-ink); text-wrap: balance; }
.w-hist-member__name { margin-top: 4px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.w-hist-member__bio {
  margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--w-muted); max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.w-hist-member.is-expanded .w-hist-member__bio { display: block; -webkit-line-clamp: unset; }
.w-hist-member__more {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: -4px; padding: 0; border: 0; background: none;
  font-size: 14px; font-weight: 700; color: var(--w-link); cursor: pointer; border-radius: 6px;
}
.w-hist-member__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 6. Reviews: rating summary under the carousel */

/* Wraps: no single word left alone on the last line of a paragraph; stat labels split evenly on phones.
   Not on the hero lead or the founder text: both are in the first screen, and a line count that changes at the
   font swap moves the bottom-anchored hero / the vertically centred founder copy (CLS 0.004 -> 0.016 at d1440). */
.w-hist-vision__body > p, .w-hist-team .w-sec-head__intro,
.w-hist-value__text, .w-hist-member__bio, .w-hist-cta .w-cta-card__text { text-wrap: pretty; }
.w-hist-stats .w-stat__label { text-wrap: balance; }
}
