/* CENSENSE — homepage layout.
   Loaded by the two homepages only (/fr/ and /en/), after every other stylesheet; nothing here reaches another page.

   1. The introduction to CENSENSE (first screen). The block itself is the site's own .page-hero; this adds its status line and the three shortcuts to the publications.
   2. The book section and the CENSENSE PRIVÉ section take the layout the dossier section already has (dossier.css, "Homepage section"):
        a computer   the animation on the left, the title, the text and the buttons on its right;
        a phone      the title, then the animation, then the text and the buttons. */

/* ---------- 1. Introduction ---------- */
.home-intro .home-intro-status { max-width: 740px; margin: 26px 0 0; color: #a9bee5; font-size: 12px; line-height: 1.75; }
.home-intro-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 66px); }
.home-intro-formats a { position: relative; display: block; padding: 22px 36px 26px 0; border-top: 1px solid var(--blue-line); color: #e5efff; transition: border-color var(--m-base, 320ms) var(--m-out, ease); }
.home-intro-formats a::after { content: ""; position: absolute; top: 29px; right: 6px; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform var(--m-base, 320ms) var(--m-out, ease); }
.home-intro-formats strong { display: block; margin-bottom: 9px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.home-intro-formats span { display: block; max-width: 34ch; color: #c2d1e9; font-size: 14px; line-height: 1.7; }
.home-intro-formats a:hover, .home-intro-formats a:focus-visible { border-top-color: #fff; }
.home-intro-formats a:hover::after, .home-intro-formats a:focus-visible::after { transform: translateY(4px) rotate(45deg); }

/* ---------- 2. Book: title · animation · text (the animation sits on the left of the text on a computer) ---------- */
.page-home .home-book-grid { grid-template-areas: "art head" "art body"; row-gap: 0; }
.page-home .home-book-head { grid-area: head; align-self: end; padding: 20px 0 0; }
.page-home .home-book-art { grid-area: art; order: 0; }
.page-home .home-book-body { grid-area: body; align-self: start; padding: 0 0 20px; }
.page-home .home-book-head .eyebrow { margin-bottom: 20px; }
.page-home .home-book-head h2 { max-width: 700px; margin-bottom: 24px; font-size: clamp(33px, 3.6vw, 52px); }

/* ---------- 3. CENSENSE PRIVÉ: title · card · text (the card sits on the left of the text on a computer) ---------- */
.page-home .prive-preview-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; }
.page-home .prive-preview-head { grid-area: head; align-self: end; }
.page-home .prive-preview-visual { grid-area: art; justify-self: center; }
.page-home .prive-preview-lower { grid-area: body; align-self: start; }

@media (max-width: 1000px) {
  .page-home .prive-preview-grid { grid-template-columns: minmax(230px, .75fr) minmax(0, 1fr); column-gap: 34px; }
  .page-home .home-book-head h2 { font-size: clamp(31px, 4vw, 44px); }
}

@media (max-width: 760px) {
  .home-intro-formats { grid-template-columns: minmax(0, 1fr); margin-top: 38px; }
  .home-intro-formats a { padding: 20px 34px 22px 0; }
  .home-intro-formats a::after { top: 26px; }
  .home-intro-formats a:last-child { border-bottom: 1px solid var(--blue-line); }

  .page-home .home-book-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; row-gap: 14px; padding-block: 48px 52px; }
  .page-home .home-book-head, .page-home .home-book-body { padding: 0; }
  .page-home .home-book-head h2 { margin-bottom: 0; font-size: clamp(32px, 8.4vw, 46px); }

  .page-home .prive-preview-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; row-gap: 22px; padding-block: 44px 48px; }
}
