/* CENSENSE — Dossiers documentaires
   1. the dossier folder: a layered CSS 3D object built from the supplied cover photograph (class .df)
   2. the homepage section "Dossiers documentaires" (class .home-dossier)
   3. the dossier product page (classes .dossier-*)
   The photograph is never redrawn: it is only separated into layers (sheets, cover, clips) so that they can sit at different depths. */

/* ---------- 1. Folder object ---------- */
.df { --df-ease: cubic-bezier(.22, .72, .2, 1); --df-rx: 3deg; --df-ry: 13deg; --df-rz: -.4deg; position: relative; width: 100%; container-type: inline-size; }
.df-stage { position: relative; aspect-ratio: 1000 / 1300; perspective: 250cqw; perspective-origin: 50% 44%; }
.df-shadow { position: absolute; left: -13.4%; right: -13.4%; top: -10.3%; bottom: -10.3%; pointer-events: none; opacity: .8;
  background: url("/assets/dossier-folder-shadow.webp?v=5c22effda3da") center / 100% 100% no-repeat;
  transform: translate3d(var(--df-shx, 3.5%), var(--df-shy, 3.2%), 0); }
.df-tilt, .df-drift, .df-object { position: absolute; inset: 0; transform-style: preserve-3d; }
.df-tilt { transform: rotateX(var(--df-tx, 0deg)) rotateY(var(--df-ty, 0deg)); transition: transform .9s var(--df-ease); }
.df-object { transform: rotateX(var(--df-rx)) rotateY(var(--df-ry)) rotateZ(var(--df-rz)); }
.df-layer, .df-slab i, .df-sheen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; margin: 0; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* the site shows a loading shimmer behind lazy images; these layers are transparent cut-outs, so they must never carry one */
.df .df-layer { background: none; animation: none; }
.df-back { transform: translateZ(-1.7cqw); }
.df-body { transform: translateZ(0); }
.df-clip-shadow { transform: translateZ(.1cqw); }
.df-clips { transform: translateZ(.95cqw); }
/* thickness: the cover outline repeated behind the cover, getting darker with depth (nothing is drawn that the photograph does not show) */
.df-slab { position: absolute; inset: 0; transform-style: preserve-3d; }
.df-slab i { background: url("/assets/dossier-folder-edge.webp?v=0215e8b9c51f") 0 0 / 100% 100% no-repeat; }
.df-slab i:nth-child(1) { transform: translateZ(-.46cqw); filter: brightness(.92); }
.df-slab i:nth-child(2) { transform: translateZ(-.92cqw); filter: brightness(.86); }
.df-slab i:nth-child(3) { transform: translateZ(-1.38cqw); filter: brightness(.8); }
.df-slab i:nth-child(4) { transform: translateZ(-1.84cqw); filter: brightness(.74); }
.df-slab i:nth-child(5) { transform: translateZ(-2.3cqw); filter: brightness(.68); }
.df-slab i:nth-child(6) { transform: translateZ(-2.76cqw); filter: brightness(.62); }
/* controlled lighting: one soft highlight that follows the camera, one shaded side */
.df-sheen { transform: translateZ(.05cqw);
  -webkit-mask: url("/assets/dossier-folder-body-600.webp?v=9d503955a9b8") 0 0 / 100% 100% no-repeat; mask: url("/assets/dossier-folder-body-600.webp?v=9d503955a9b8") 0 0 / 100% 100% no-repeat;
  background:
    linear-gradient(104deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.15) 45%, rgba(255,255,255,0) 62%) var(--df-hx, 30%) 0 / 280% 100% no-repeat,
    linear-gradient(90deg, rgba(6,14,34,0) 55%, rgba(6,14,34,.18) 100%); }
/* entrance: the folder is set down, turns to its resting pose and its shadow tightens; then a very slow drift while it is on screen */
@keyframes df-settle {
  from { transform: translate3d(0, -2.4cqw, 0) rotateX(8deg) rotateY(31deg) rotateZ(-1.6deg); }
  to   { transform: translate3d(0, 0, 0) rotateX(var(--df-rx)) rotateY(var(--df-ry)) rotateZ(var(--df-rz)); }
}
@keyframes df-shadow-settle {
  from { opacity: .3; transform: translate3d(7%, 7.4%, 0) scale(1.05); }
  to   { opacity: .8; transform: translate3d(var(--df-shx, 3.5%), var(--df-shy, 3.2%), 0) scale(1); }
}
@keyframes df-drift {
  from { transform: rotateY(-2.1deg) rotateX(.7deg); }
  to   { transform: rotateY(2.1deg) rotateX(-.7deg); }
}
/* hero folder (above the fold on the product page): the entrance is pure CSS and starts with the page, so it works without any script */
.df[data-dossier-folder="hero"] .df-object { animation: df-settle 1.8s var(--df-ease) 80ms both; }
.df[data-dossier-folder="hero"] .df-shadow { animation: df-shadow-settle 1.8s var(--df-ease) 80ms both; }
.df[data-dossier-folder="hero"] .df-drift { animation: df-drift 17s ease-in-out infinite alternate; }
/* folder below the fold (homepage): the script holds it at its starting pose until it is on screen, so nobody sees the entrance happen off-screen.
   Without the script it simply rests in its final pose. */
.df.is-armed .df-object { animation: df-settle 1.8s var(--df-ease) both paused; }
.df.is-armed .df-shadow { animation: df-shadow-settle 1.8s var(--df-ease) both paused; }
.df.is-armed .df-drift { animation: df-drift 17s ease-in-out infinite alternate paused; }
.df.is-live .df-object, .df.is-live .df-shadow { animation-play-state: running; }
.df.is-live .df-drift { animation-play-state: running; }
.df.is-off .df-drift { animation-play-state: paused; }
.df.is-live:not(.is-off) .df-tilt, .df.is-live:not(.is-off) .df-object { will-change: transform; }
.df.is-lite .df-drift { animation: none; }
@media (max-width: 640px) {
  .df-slab i:nth-child(2), .df-slab i:nth-child(4), .df-slab i:nth-child(6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .df .df-object, .df .df-shadow, .df .df-drift { animation: none !important; }
  .df .df-tilt { transition: none; }
}

/* ---------- 2. Homepage section ---------- */
.home-dossier { position: relative; border-bottom: 1px solid var(--blue-line-soft);
  background: radial-gradient(ellipse 54% 82% at 25% 52%, rgba(36, 82, 152, .40) 0%, rgba(36, 82, 152, 0) 72%), linear-gradient(180deg, #071f4b 0%, #061b43 100%); }
.home-dossier-grid { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1fr); grid-template-areas: "art head" "art body";
  column-gap: clamp(42px, 8vw, 112px); row-gap: 0; align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.home-dossier-head { grid-area: head; align-self: end; min-width: 0; max-width: 690px; padding-top: 20px; }
.home-dossier-body { grid-area: body; align-self: start; min-width: 0; max-width: 690px; padding-bottom: 20px; }
.home-dossier-art { grid-area: art; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 0 clamp(8px, 2vw, 28px); }
.home-dossier-art .df { width: min(100%, 380px); min-width: 200px; }
.home-dossier-head .eyebrow { margin-bottom: 20px; }
.home-dossier-head h2 { max-width: 700px; font-size: clamp(33px, 3.6vw, 52px); margin-bottom: 16px; }
.home-dossier-subtitle { color: #c9d9f3; font-family: var(--serif); font-size: clamp(17px, 1.75vw, 23px); letter-spacing: .04em; line-height: 1.45; margin: 0 0 24px; }
.home-dossier-description { color: #d4e0f5; font-size: 15px; line-height: 1.9; max-width: 640px; margin: 0; }
.home-dossier-edition { color: #9fb9e2; border-top: 1px solid var(--blue-line); padding-top: 17px; margin: 25px 0 0; font-size: 11px; line-height: 1.8; letter-spacing: .045em; }
.home-dossier-body .purchase-block { margin-top: 26px; }
/* The discovery link is the same <a class="button button-primary"> as on the book hero; site.css restyles every .button inside a .purchase-block,
   so, exactly as home-discover-button.css does for the book hero, the values the same button has everywhere else are given back to it here. */
.home-dossier-body .purchase-block > a.button-primary { min-width: 0; line-height: 1.35; letter-spacing: .075em; text-wrap: wrap; }
.home-dossier-body .purchase-block > a.button-primary:not(:hover):not(:active) {
  border-color: rgba(245, 249, 255, .78);
  box-shadow: 0 7px 17px rgba(0, 7, 28, .30), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -2px 0 rgba(30, 73, 135, .20), 0 0 0 1px rgba(180, 211, 255, .12);
}
.home-dossier-body .purchase-block > a.button-primary:focus-visible:not(:hover):not(:active) { transform: none; }
@media (min-width: 761px) { .home-dossier-body .purchase-block > a.button-primary { min-height: 48px; max-width: none; } }
@media (max-width: 420px) { .home-dossier-body .purchase-block > a.button-primary { font-size: 10px; letter-spacing: .055em; } }
@media (max-width: 390px) { .home-dossier-body .purchase-block > a.button-primary { letter-spacing: .035em; } }
@media (max-width: 980px) {
  .home-dossier-grid { column-gap: 34px; grid-template-columns: minmax(230px, .75fr) minmax(0, 1fr); }
  .home-dossier-head h2 { font-size: clamp(31px, 4vw, 44px); }
}
@media (max-width: 760px) {
  .home-dossier-grid { grid-template-columns: 1fr; grid-template-areas: "head" "art" "body"; row-gap: 12px; padding-block: 40px 52px; }
  .home-dossier-head { padding-top: 0; }
  .home-dossier-head h2 { font-size: clamp(32px, 8.4vw, 46px); }
  .home-dossier-art { padding: 6px 0 4px; }
  .home-dossier-art .df { width: min(66%, 270px); min-width: 170px; }
  .home-dossier-body { padding-bottom: 0; }
}

/* ---------- 3. Dossier product page ---------- */
/* the folder's soft ground shadow is deliberately larger than its stage; on a phone it would reach past the screen edge: it is cut at the edge of the hero, exactly where the page's own overflow-x: clip already cuts it */
.dossier-hero { overflow-x: clip; }
.dossier-hero .book-hero-art { display: flex; justify-content: center; align-items: center; padding: 0 clamp(8px, 2vw, 28px); }
@media (min-width: 761px) {
  /* the dossier's copy is taller than the book's: the folder starts level with the title (not centred on the whole column) so that it is on the first screen on a laptop */
  .dossier-hero .book-hero-grid { align-items: start; }
  .dossier-hero .book-hero-art { padding-top: clamp(40px, 6vw, 88px); }
}
.dossier-hero .book-hero-art .df { width: min(100%, 430px); min-width: 210px; }
.dossier-hero .book-subhead { letter-spacing: .04em; }
.dossier-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--blue-line); color: #dce8ff; font-size: 10px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.dossier-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fc0f5; flex: 0 0 auto; }
.dossier-roles-section { background: #071f4b; border-bottom: 1px solid var(--blue-line-soft); }
.dossier-roles { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--blue-line); }
.dossier-roles > div { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0 24px; border-bottom: 1px solid var(--blue-line); }
.dossier-roles dt { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); letter-spacing: .02em; color: #fff; line-height: 1.3; }
.dossier-role-tag { display: block; margin-top: 9px; font-family: var(--sans); font-size: 10px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: #9fb9e2; }
.dossier-roles dd { margin: 0; color: #cbd9f2; font-size: 14px; line-height: 1.85; max-width: 640px; }
.dossier-roles-note { margin: 26px 0 0; max-width: 700px; color: #b7c9e9; font-size: 13px; line-height: 1.85; }
.dossier-refs-section { background: #061e49; border-bottom: 1px solid var(--blue-line-soft); }
.dossier-refs { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--blue-line); }
.dossier-refs li { display: grid; grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr); gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--blue-line); font-size: 13px; line-height: 1.7; color: #cbd9f2; }
.dossier-refs strong { font-weight: 500; color: #fff; }
.dossier-refs-note { margin: 22px 0 0; max-width: 700px; color: #a7bbe2; font-size: 12px; line-height: 1.8; }
/* the contents list is the ebook page's own component; its page numbers (#819fcf, 10 px) measure 4.2 to 4.5:1 against that list's background in the upper rows.
   On the dossier pages they take #9fb9e2, the palette blue already used for the small labels beside them (5.8:1 and above). The ebook page keeps its own colour. */
.page-dossier .chapter-number { color: #9fb9e2; }
@media (max-width: 640px) {
  .dossier-roles > div, .dossier-refs li { grid-template-columns: 1fr; }
}
