/* =====================================================================================================
   Yoca média - SHARED DESIGN SYSTEM (the only stylesheet of the prototype)
   -----------------------------------------------------------------------------------------------------
   Purpose
     Every style of the static prototype: design tokens, typography, layout, components, motion,
     responsive rules and print. Tokens and type scale are copied from the live Webflow site
     (template "Nuvilon"), so a page built here looks and moves like yoca.media.

   Who uses it
     All pages: the 23 French pages at the root (href="assets/css/yoca-base.css") and their 23 English
     twins in en/ (href="../assets/css/yoca-base.css"). There is no per-page CSS and no per-language CSS:
     an English page uses exactly the same classes as its French twin (tools/check-twins.mjs checks it).

   How it maps to Webflow
     - Class names WITHOUT "__" or "--" are the live site's Webflow classes, kept as-is so styles can be
       pasted 1:1 into the Webflow Designer: .section, .content, .block-text-hero, .title-hero,
       .paragraph-hero, .text-span, .navbar, .block-navbar, .block-blur-5/-10, .brand, .logo, .menu-button,
       .icon-menu-open/-closed, .nav-menu, .links, .nav-link, .nav-link-text, .collection-list(-wrapper),
       .collection-item, .grid-blog, .block-blog-text, .blog-text, .heading-blog, .paragraph, .info-blog,
       .block-blog-image, .blog-image, .image-blog, .gradient, .single-blog-text, .title-blog,
       .main-blog-image, .rich-text-block, .footer, .link, .button.
     - BEM-style names (block__element, block--modifier: .portrait-card__media, .section--dark,
       .button--outline…) are new components of the audit. In Webflow, create the block as a class and
       each "--modifier" as a COMBO CLASS on top of it (e.g. "section" + "dark").
     - State classes are toggled by the scripts in assets/js/: .is-open (menu), .is-in (scroll reveal),
       .is-visible (banners, toast), .is-active, .is-locked, .is-todo. Webflow's own w--current / w--open
       are replaced by aria-current / aria-pressed attributes, which the CSS also styles.
     - html.js is set by an inline script in each page's <head>: reveal animations only hide content
       when JavaScript runs, so a page without JS stays fully readable.
     - Breakpoints are Webflow's: 991px (tablet), 767px (mobile landscape), 479px (mobile portrait).

   Conventions
     Colours always come from the tokens (var(--dark), var(--red)…); 8-digit hex = colour + alpha.
     Later sections were appended phase by phase (see 00_LIST_OF_IMPLEMENTATIONS.txt); each one has its
     own responsive block at its end instead of being merged into section 21.

   TABLE OF CONTENTS (search for the number + title, e.g. "17. Language")
      1. Design tokens (:root)
      2. Base elements, accessibility helpers
      3. Layout
      4. Buttons, chips, links
      5. Navbar
      6. Search dialog
      7. Portrait list (home)
      8. Portrait cards
      9. Explorer (search + filters)
     10. Breadcrumb, article
     11. Forms
     12. Info cards, stats, team, steps, offers, FAQ
     13. Newsletter
     14. Legal pages
     15. Footer
     16. Cookie banner
     17. Language: switcher and suggestion banner (+ toast)
     18. 404
     19. Style guide helpers
     20. Motion (Webflow IX2 equivalents, prefers-reduced-motion)
     21. Responsive (Webflow breakpoints) for sections 1-20
     22. Phase 2 components (spotlight, trending, videos, community, timeline, reading tools, consent)
     23. Phase 3: full portrait text
     24. Polish layer (glass, depth)
     25. Interaction layer (View Transitions, scroll progress, cursor spotlight)
     26. TikTok capsules (video hub, cards, people, player)
     27. Le livre & les cartes (book, portrait cards, business cards, print sheet)
   ===================================================================================================== */

/* ---------- 1. Design tokens (copied from the live site; change a colour here, not in the rules) ---------- */

:root {
  --background: #f1f4f5;
  --surface: #ffffff;
  --dark: #1c1c1c;
  --paragraphs: #1c1c1ccc;
  --subtitle: #1c1c1c80;
  --border: #1c1c1c33;
  --red: #f1291e;
  /* Darker red for small text: 6.4:1 on --background (the live #cc050580 fails WCAG). */
  --red-text: #b0040f;
  --rounding: 10px;
  --rounding-buttons: 50px;
  --main-font: "Red Hat Text", sans-serif;
  --heading-font: "Prata", serif;
  --main-font-size: 18px;
  --content-max: 1360px;

  --ease-site: cubic-bezier(.445, .05, .55, .95);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-sine: cubic-bezier(.61, 1, .88, 1);
}

/* ---------- 2. Base elements, accessibility helpers ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* scroll-padding-top = height of the fixed navbar, so #anchor targets are not hidden under it. */
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--paragraphs);
  font-family: var(--main-font);
  font-size: var(--main-font-size);
  font-weight: 400;
  line-height: 1.6em;
}

/* Set by yoca-layout.js while the fullscreen menu is open: the page behind does not scroll. */
body.is-locked { overflow: hidden; }

/* clip (not hidden): stops horizontal overflow without creating a scroll container, so position: sticky still works. */
main { flex: 1 0 auto; overflow-x: clip; }

img { max-width: 100%; vertical-align: middle; display: inline-block; }

h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); color: var(--dark); font-weight: 400; }
h1 { margin: 35px 0; font-size: 61px; line-height: 1.15em; }
h2 { margin: 30px 0; font-size: 50px; line-height: 1.15em; }
h3 { margin: 20px 0; font-size: 36px; line-height: 1.25em; }
h4 { margin: 15px 0; font-size: 30px; line-height: 1.25em; }
h5 { margin: 15px 0; font-size: 24px; line-height: 1.35em; }
h6 { margin: 10px 0; font-size: 18px; line-height: 1.4em; }
p { margin: 25px 0; }

a {
  color: var(--paragraphs);
  text-decoration: none;
  border-bottom: 1px solid var(--paragraphs);
  transition: color .3s var(--ease-site), border-color .3s var(--ease-site), border-width .15s var(--ease-site);
}
a:hover { color: var(--dark); border-bottom-width: 3px; border-bottom-color: var(--dark); }

ul, ol { color: var(--dark); margin: 20px 0; padding-left: 40px; }
li { padding: 3px 0 3px 10px; }
strong { color: var(--dark); font-weight: 700; }
em { color: var(--dark); font-style: italic; }

blockquote {
  margin: 30px 0;
  padding: 4px 20px 4px 30px;
  border-left: 2px solid var(--border);
  font-family: var(--heading-font);
  color: var(--dark);
  font-size: 20px;
  font-style: italic;
  line-height: 1.7em;
}

figure { margin: 55px 0; border: 1px solid var(--border); border-radius: var(--rounding); overflow: hidden; }
figcaption { text-align: center; padding: 8px 0; font-size: 16px; line-height: 1.3em; }

:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* Hidden on screen but read by screen readers (labels, live status texts). */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to content" link: off screen until it receives keyboard focus. */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 1000;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--rounding-buttons);
  background: var(--dark);
  color: var(--background);
  transform: translateY(-150%);
  transition: transform .3s var(--ease-site);
}
.skip-link:focus { transform: none; color: var(--background); }

/* Webflow config fields still to fill in (see Yoca.config in yoca-layout.js). */
.is-todo { outline: 1px dashed var(--red); outline-offset: 2px; }

/* ---------- 3. Layout ---------- */

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 140px 40px 40px;
}
.section--auto { min-height: 0; padding-top: 60px; padding-bottom: 60px; }
.section--tight { min-height: 0; padding-top: 30px; padding-bottom: 30px; }
.section--dark { background: var(--dark); color: #f1f4f5cc; }
.section--dark h2, .section--dark h3, .section--dark strong, .section--dark em { color: var(--background); }
.section--white { background: var(--surface); }

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
}
.content--narrow { max-width: 860px; }
.content--left { align-items: flex-start; }

.block-text-hero { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: 120px; }
.block-text-hero.center { align-items: center; text-align: center; }
.block-text-hero.compact { margin-bottom: 60px; }
.title-hero { max-width: 1090px; margin-top: 10px; font-size: 80px; }
.title-page { max-width: 1090px; margin: 10px 0 20px; font-size: 72px; }
.paragraph-hero { max-width: 570px; margin-top: 0; }
.block-text-hero.center .paragraph-hero { margin-left: auto; margin-right: auto; }
.text-span { color: var(--red); }
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--red-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { font-size: 21px; line-height: 1.6em; color: var(--dark); }
.muted { color: var(--subtitle); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; width: 100%; margin-bottom: 40px; padding-top: 25px; border-top: 1px solid var(--border); }
.section-head h2 { margin: 0; font-size: 42px; }
.section-head p { margin: 10px 0 0; max-width: 560px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; }
.grid-aside { display: grid; grid-template-columns: 1fr 2.5fr; gap: 25px; width: 100%; padding-top: 25px; border-top: 1px solid var(--border); }
.grid-aside > :first-child h2 { margin-top: 0; font-size: 30px; }
.sticky { position: sticky; top: 110px; align-self: start; }

/* ---------- 4. Buttons, chips, links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--dark);
  border-radius: var(--rounding-buttons);
  background-color: var(--dark);
  color: var(--background);
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3em;
  cursor: pointer;
  transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site);
}
.button:hover { border-width: 1px; border-color: var(--red); background-color: var(--red); color: #fff; }
.button svg { width: 18px; height: 18px; }
.button--outline { background-color: var(--background); color: var(--dark); border-color: var(--border); }
.button--outline:hover { background-color: var(--dark); border-color: var(--dark); color: var(--background); }
.button--light { background-color: var(--background); color: var(--dark); border-color: var(--background); }
.button--light:hover { background-color: var(--red); border-color: var(--red); color: #fff; }
.button--small { padding: 9px 20px; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--rounding-buttons);
  background-color: var(--background);
  color: var(--dark);
  font-family: var(--main-font);
  font-size: 15px;
  line-height: 1.2em;
  cursor: pointer;
  transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site);
}
.chip:hover, .chip.is-active, .chip[aria-current="page"], .chip[aria-pressed="true"] {
  border-width: 1px;
  border-color: var(--dark);
  background-color: var(--dark);
  color: var(--background);
}
.chip__count { opacity: .6; font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--dark); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-site); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.info-blog { font-family: var(--main-font); color: var(--red-text); font-size: 16px; font-weight: 500; line-height: 1.3em; border: 0; }
a.info-blog { position: relative; z-index: 2; }
a.info-blog:hover { color: var(--red); border: 0; text-decoration: underline; text-underline-offset: 4px; }
.info-blog.center { text-align: center; }

/* ---------- 5. Navbar (fixed, blurred, fullscreen menu on every breakpoint like the live site) ---------- */

.navbar { position: fixed; inset: 0 0 auto; z-index: 100; }
.block-navbar { position: relative; z-index: 200; display: flex; justify-content: space-between; align-items: center; padding: 20px; }
/* Progressive blur: two stacked backdrop-filter layers whose gradient masks fade them out towards the bottom (live site). */
.block-blur-5, .block-blur-10 { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.block-blur-5 { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(#000 50%, #0000); mask-image: linear-gradient(#000 50%, #0000); }
.block-blur-10 { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 20%, #0000); mask-image: linear-gradient(#000 20%, #0000); }
.navbar.is-open .block-blur-5, .navbar.is-open .block-blur-10 { display: none; }

.brand { position: relative; z-index: 1; display: flex; align-items: center; margin-left: 10px; padding: 15px; border: 0; }
.brand:hover { border: 0; }
.logo { width: 69px; max-width: none; height: auto; }

.nav-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.nav-quick { display: flex; align-items: center; gap: 4px; margin-right: 10px; }
.nav-quick a { padding: 6px 12px; border: 0; font-size: 15px; font-weight: 500; color: var(--dark); opacity: .6; transition: opacity .3s var(--ease-site); }
.nav-quick a:hover, .nav-quick a[aria-current="page"] { opacity: 1; border: 0; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: background-color .3s var(--ease-site);
}
.icon-button:hover { background-color: #1c1c1c0f; }

.menu-button { width: 60px; height: 60px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.icon-menu { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.icon-menu-open, .icon-menu-closed { position: absolute; max-width: none; }
.icon-menu-open { width: 22px; height: 22px; transition: opacity .3s var(--ease-site), transform .5s var(--ease-site); }
.icon-menu-closed { width: 18px; height: 18px; opacity: 0; transition: opacity .3s var(--ease-site), transform .3s var(--ease-site); }
.navbar.is-open .icon-menu-open { opacity: 0; transform: rotate(-90deg); }
.navbar.is-open .icon-menu-closed { opacity: 1; transform: rotate(-90deg); transition: opacity .9s var(--ease-site), transform .6s var(--ease-site); }

/* Closed = moved up out of view AND visibility: hidden (out of the tab order). The "visibility 0s linear 1s"
   transition hides it only after the 1s slide-up; on open (.is-open) visibility switches at once. */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background-color: #fff;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 1s var(--ease-out-expo), background-color 1s var(--ease-out-expo), visibility 0s linear 1s;
}
.navbar.is-open .nav-menu { visibility: visible; transform: none; background-color: var(--background); transition: transform 1s var(--ease-out-expo), background-color 1s var(--ease-out-expo), visibility 0s; }

.nav-menu-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 120px 40px 40px;
}
.links { display: flex; flex-direction: column; align-items: flex-start; transform: translateY(70%); transition: transform 1s var(--ease-out-expo); }
.navbar.is-open .links { transform: none; }
.nav-link { display: block; border: 0; text-decoration: none; transition: opacity .3s var(--ease-site); }
.nav-link:hover { border: 0; }
/* IX2 "menu link hover": the other links fade to .15 (also for keyboard focus, via :has()). */
.links:hover .nav-link:not(:hover), .links:has(.nav-link:focus-visible) .nav-link:not(:focus-visible) { opacity: .15; }
.nav-link-text { display: block; padding: 12px 20px; font-family: var(--heading-font); color: var(--dark); font-size: 45px; line-height: 1.15em; transition: color .3s var(--ease-site); will-change: transform; }
.nav-link-text:hover, .nav-link[aria-current="page"] .nav-link-text { color: var(--red); }

.nav-aside { display: flex; flex-direction: column; gap: 30px; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-site), transform 1s var(--ease-out-expo); }
.navbar.is-open .nav-aside { opacity: 1; transform: none; transition-delay: .2s; }
.nav-aside h2 { margin: 0 0 10px; font-family: var(--main-font); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtitle); }
.nav-aside ul { list-style: none; margin: 0; padding: 0; }
.nav-aside li { padding: 4px 0; }
.nav-aside a { border: 0; font-size: 18px; color: var(--dark); }
.nav-aside a:hover { color: var(--red); }

.social-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-list li { padding: 0; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--dark);
  transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site);
}
.social-link:hover { border-width: 1px; border-color: var(--dark); background: var(--dark); color: var(--background); }
.section--dark .social-link, .footer--dark .social-link { border-color: #f1f4f533; color: var(--background); }
.section--dark .social-link:hover { background: var(--background); color: var(--dark); }

/* ---------- 6. Search dialog ---------- */

.search-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: calc(100vh - 60px);
  margin: 70px auto auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
  color: var(--paragraphs);
  box-shadow: 0 30px 80px #1c1c1c40;
}
.search-dialog::backdrop { background: #1c1c1c66; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-dialog[open] { animation: dialog-in .6s var(--ease-out-expo); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.search-dialog__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--border); }
.search-dialog__head input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; font-family: var(--heading-font); font-size: 26px; color: var(--dark); }
.search-dialog__head input:focus { outline: none; }
.search-dialog__body { max-height: 60vh; overflow-y: auto; padding: 18px 22px 24px; }
.search-dialog__label { margin: 14px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtitle); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 0; }
.search-result { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px; border: 0; border-radius: var(--rounding); }
.search-result:hover, .search-result:focus-visible { border: 0; background: #1c1c1c0d; }
.search-result img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.search-result__title { display: block; font-family: var(--heading-font); color: var(--dark); font-size: 18px; line-height: 1.3em; }
.search-result__meta { display: block; font-size: 14px; color: var(--subtitle); }
mark { background: #f1291e26; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- 7. Portrait list (home) - same structure and motion as the live collection list ---------- */

.collection-list-wrapper { width: 100%; margin-bottom: 100px; }
.collection-list { list-style: none; margin: 0; padding: 0; }
/* Negative margin: the cards overlap a little, as on the live site (yoca-animations.js moves them on scroll). */
.collection-item { position: relative; margin-bottom: -100px; padding: 0; will-change: transform; }
.collection-item:last-child { margin-bottom: 0; }
.grid-blog { display: grid; grid-template-columns: 1fr 2.5fr; gap: 25px; width: 100%; padding-top: 25px; border-top: 1px solid var(--border); transition: transform .5s var(--ease-out-sine); }
.block-blog-text { position: relative; z-index: 50; }
.blog-text { max-width: 300px; margin-top: 15px; }
.heading-blog { margin: 10px 0 15px; font-size: 24px; line-height: 1.35em; }
.heading-blog a, .portrait-card__title a { border: 0; color: inherit; }
/* "Stretched link": the title link's ::after covers the whole card, so the full card is clickable with a single link. */
.heading-blog a::after, .portrait-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.heading-blog a:hover, .portrait-card__title a:hover { border: 0; }
.paragraph { color: var(--paragraphs); font-size: 16px; line-height: 1.6em; }
.collection-item .paragraph { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { margin: 0; font-size: 14px; color: var(--subtitle); }
.block-blog-image { position: relative; perspective: 1000px; }
.blog-image { position: relative; overflow: hidden; border-radius: var(--rounding); will-change: transform; transition: filter .5s var(--ease-out-sine); }
.image-blog { display: block; width: 100%; height: 600px; border-radius: var(--rounding); object-fit: cover; }
.gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, #f1f4f500, var(--background));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#0000, #000 95%);
  mask-image: linear-gradient(#0000, #000 95%);
  transition: opacity .5s var(--ease-out-sine);
}
/* Hover effects only on devices with a real pointer: on touch screens the images stay in colour. */
@media (hover: hover) {
  .blog-image { filter: grayscale(100%); }
  .collection-item:hover .blog-image { filter: grayscale(0%); transition: filter 1s var(--ease-out-expo); }
  .collection-item:hover .grid-blog { transform: translateY(-50px); transition: transform 1s var(--ease-out-expo); }
  .collection-item:hover .gradient { opacity: 0; transition: opacity 1s var(--ease-out-expo); }
}

/* ---------- 8. Portrait cards (articles, rubriques, related) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 25px; width: 100%; list-style: none; margin: 0; padding: 0; }
.card-grid > li { padding: 0; }
.portrait-card { position: relative; display: flex; flex-direction: column; height: 100%; padding-top: 18px; border-top: 1px solid var(--border); }
.portrait-card__media { position: relative; overflow: hidden; border-radius: var(--rounding); aspect-ratio: 4 / 3; background: #1c1c1c0d; }
.portrait-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo), filter .5s var(--ease-out-sine); }
.portrait-card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.portrait-card__title { margin: 0; font-size: 22px; line-height: 1.35em; }
.portrait-card__excerpt { margin: 0; font-size: 15px; line-height: 1.55em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .portrait-card__media img { filter: grayscale(100%); }
  .portrait-card:hover .portrait-card__media img { filter: grayscale(0%); transform: scale(1.04); transition: transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo); }
  .portrait-card:hover .portrait-card__title { color: var(--red); }
}
.portrait-card__title { transition: color .3s var(--ease-site); }

.featured { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; width: 100%; padding-top: 25px; border-top: 1px solid var(--border); }
.featured .portrait-card__media { aspect-ratio: 16 / 10; }
.featured .portrait-card__title { font-size: 40px; line-height: 1.15em; }
.featured .portrait-card__excerpt { -webkit-line-clamp: 5; font-size: 17px; }
.badge { align-self: flex-start; padding: 5px 14px; border-radius: var(--rounding-buttons); background: var(--red); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 9. Explorer (search + filters) ---------- */

.explorer { width: 100%; }
.explorer-bar { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; width: 100%; margin-bottom: 18px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--subtitle); pointer-events: none; }
.search-field .search-clear .icon { position: static; transform: none; }
.search-field input {
  width: 100%;
  padding: 16px 52px 16px 54px;
  border: 1px solid var(--border);
  border-radius: var(--rounding-buttons);
  background: var(--surface);
  font-family: var(--main-font);
  font-size: 17px;
  color: var(--dark);
  transition: border-color .3s var(--ease-site);
}
.search-field input:focus { outline: none; border-color: var(--dark); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .search-clear { position: absolute; right: 6px; width: 42px; height: 42px; }
.search-field .search-clear[hidden] { display: none; }
.select { padding: 15px 44px 15px 22px; border: 1px solid var(--border); border-radius: var(--rounding-buttons); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1c1c' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 20px center; font-family: var(--main-font); font-size: 16px; color: var(--dark); appearance: none; cursor: pointer; }
.explorer-status { margin: 22px 0; font-size: 15px; color: var(--subtitle); }
.explorer-more { display: flex; justify-content: center; margin-top: 60px; }
.empty-state { width: 100%; padding: 40px; border: 1px solid var(--border); border-radius: var(--rounding); text-align: center; }
.empty-state h3 { margin-top: 0; font-size: 28px; }

/* ---------- 10. Breadcrumb, article ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--subtitle); }
.breadcrumb li { padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { border: 0; color: var(--subtitle); }
.breadcrumb a:hover { color: var(--dark); }

.single-blog-text { display: flex; flex-direction: column; align-items: center; max-width: 960px; margin-bottom: 80px; text-align: center; }
.title-blog { margin: 10px 0 20px; font-size: 61px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: var(--subtitle); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; }
.offer > [data-icon] .icon, .info-card > [data-icon] .icon { width: 26px; height: 26px; color: var(--red); }
.main-blog-image { display: block; width: 100%; max-height: 80vh; border-radius: var(--rounding); object-fit: cover; }
.rich-text-block { width: 100%; max-width: 760px; margin: 60px auto; }
.rich-text-block h2 { font-size: 36px; }
.rich-text-block > p:first-child { font-size: 21px; color: var(--dark); }
.cms-placeholder { margin: 30px 0; padding: 24px; border: 1px dashed var(--border); border-radius: var(--rounding); font-size: 16px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share__label { margin-right: 6px; font-weight: 600; color: var(--dark); }
.share .social-link { background: transparent; cursor: pointer; font: inherit; }

.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; width: 100%; max-width: 760px; margin: 40px auto 0; }
.avatar { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dark); color: var(--background); font-family: var(--heading-font); font-size: 22px; }
.author-box p { margin: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; width: 100%; max-width: 760px; margin: 50px auto 0; }
.pager a { display: block; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--rounding); }
.pager a:hover { border-width: 1px; border-color: var(--dark); }
.pager small { display: block; color: var(--subtitle); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.pager span { font-family: var(--heading-font); color: var(--dark); }
.pager .next { text-align: right; }

/* ---------- 11. Forms ---------- */

.form { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--dark); }
.field .hint { font-size: 14px; color: var(--subtitle); }
.input, .textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--rounding);
  background: var(--surface);
  font-family: var(--main-font);
  font-size: 17px;
  color: var(--dark);
  transition: border-color .3s var(--ease-site), box-shadow .3s var(--ease-site);
}
.field select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1c1c' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center; }
.textarea { min-height: 170px; resize: vertical; }
.input:focus, .textarea:focus, .field select:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px #1c1c1c14; }
.field.has-error .input, .field.has-error .textarea, .field.has-error select { border-color: var(--red-text); }
.field__error { min-height: 1em; margin: 0; font-size: 14px; color: var(--red-text); }
.field__counter { align-self: flex-end; font-size: 13px; color: var(--subtitle); }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5em; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dark); }
.choice-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.choice-row legend { margin-bottom: 8px; }
/* Radio/checkbox "pills": the real input is invisible but stretched over the label (still focusable and clickable). */
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--rounding-buttons); font-size: 15px; color: var(--dark); transition: background-color .3s var(--ease-site), color .3s var(--ease-site); }
.choice input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--background); }
.choice input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 3px; }
/* Honeypot: anti-spam field, invisible to people; a bot that fills it in sees a success message but nothing is sent (yoca-forms.js). */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 0; font-size: 16px; }
.form-status.is-success { padding: 18px 22px; border-radius: var(--rounding); background: #1c1c1c0d; color: var(--dark); }
.form-status.is-error { color: var(--red-text); }
.section--dark .input, .section--dark .textarea { background: #f1f4f514; border-color: #f1f4f533; color: var(--background); }
.section--dark .input::placeholder { color: #f1f4f580; }
.section--dark .field label, .section--dark .checkbox { color: #f1f4f5cc; }
.section--dark .checkbox a { color: var(--background); border-color: #f1f4f580; }
.section--dark .form-status.is-success { background: #f1f4f514; color: var(--background); }
.section--dark .field__error, .section--dark .form-status.is-error { color: #ff7a82; }

/* ---------- 12. Info cards, stats, team, steps, offers, FAQ ---------- */

.info-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.info-card h3 { margin: 0; font-size: 26px; }
.info-card p { margin: 0; font-size: 16px; }
a.info-card { color: var(--paragraphs); transition: border-color .3s var(--ease-site), transform .6s var(--ease-out-expo); }
a.info-card:hover { border-width: 1px; border-color: var(--dark); transform: translateY(-6px); }
.info-card__value { font-family: var(--heading-font); color: var(--dark); font-size: 20px; word-break: break-word; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; width: 100%; }
.stat { padding-top: 18px; border-top: 1px solid var(--border); }
.section--dark .stat { border-color: #f1f4f533; }
.stat__value { display: block; font-family: var(--heading-font); color: var(--dark); font-size: 56px; line-height: 1.1em; }
.section--dark .stat__value { color: var(--background); }
.stat__label { display: block; margin-top: 8px; font-size: 15px; }
.source-note { margin: 18px 0 0; font-size: 13px; color: var(--subtitle); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; list-style: none; margin: 0; padding: 0; }
.team-grid li { padding: 0; }
.team-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.team-card h3 { margin: 0; font-size: 20px; }
.team-card p { margin: 2px 0 0; font-size: 14px; }

/* Numbered steps: the "01, 02, 03" are drawn by a CSS counter, not written in the HTML. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding: 18px 0 0; border-top: 1px solid var(--border); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 8px; font-family: var(--heading-font); color: var(--red); font-size: 30px; }
.steps h3 { margin: 0 0 8px; font-size: 22px; }
.steps p { margin: 0; font-size: 16px; }

.offer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; width: 100%; }
.offer { display: flex; flex-direction: column; gap: 12px; padding: 34px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.offer h3 { margin: 0; font-size: 28px; }
.offer p { margin: 0; font-size: 16px; }
.offer ul { margin: 6px 0 0; padding-left: 20px; font-size: 15px; }

/* FAQ = native <details>/<summary> (works without JS); the default marker is replaced by a "+" that turns into "x". */
.faq { width: 100%; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--heading-font); color: var(--dark); font-size: 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--main-font); font-size: 28px; transition: transform .5s var(--ease-out-expo); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 760px; }

/* ---------- 13. Newsletter ---------- */

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; padding: 50px; border-radius: 20px; background: var(--dark); color: #f1f4f5cc; }
.newsletter h2 { margin: 0 0 10px; color: var(--background); font-size: 42px; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter .input { border-radius: var(--rounding-buttons); background: #f1f4f514; border-color: #f1f4f533; color: var(--background); }
.newsletter .input:focus { border-color: var(--background); box-shadow: none; }
.newsletter-row .input { flex: 1; }
.newsletter .input::placeholder { color: #f1f4f580; }
.newsletter .field label { color: #f1f4f5cc; }
.newsletter .checkbox { color: #f1f4f5b3; font-size: 14px; }
.newsletter .checkbox a { color: var(--background); border-color: #f1f4f580; }
.newsletter .form-status.is-success { background: #f1f4f514; color: var(--background); }
.newsletter .field__error, .newsletter .form-status.is-error { color: #ff7a82; }

/* ---------- 14. Legal pages ---------- */

.prose { width: 100%; max-width: 760px; }
.prose h2 { margin: 50px 0 15px; font-size: 32px; }
.prose h3 { margin: 30px 0 10px; font-size: 22px; }
.prose p, .prose li { font-size: 17px; }
.prose table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { color: var(--dark); }
.notice { width: 100%; max-width: 760px; margin-bottom: 30px; padding: 18px 22px; border-left: 3px solid var(--red); border-radius: 0 var(--rounding) var(--rounding) 0; background: var(--surface); font-size: 15px; }
.toc { width: 100%; max-width: 760px; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--rounding); }
.toc ol { margin: 8px 0 0; padding-left: 22px; }
.toc li { font-size: 16px; }

/* ---------- 15. Footer ---------- */

.footer { width: 100%; padding: 70px 40px 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; max-width: var(--content-max); margin: 0 auto; }
.footer-brand p { max-width: 340px; margin: 18px 0 22px; font-size: 16px; }
.footer h2 { margin: 0 0 14px; font-family: var(--main-font); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtitle); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 0; }
.link {
  display: inline-block;
  padding: 5px 0;
  border: 0;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3em;
  opacity: .5;
  background: none;
  font-family: var(--main-font);
  cursor: pointer;
  transition: opacity .3s var(--ease-site);
}
.link:hover, .link[aria-current="page"] { opacity: 1; border: 0; color: var(--dark); }
.footer-contact .link { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; max-width: var(--content-max); margin: 50px auto 0; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom .link { font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-copy { font-size: 14px; color: var(--subtitle); }
.footer-copy a { border: 0; font-weight: 700; color: var(--dark); }

/* ---------- 16. Cookie banner (toast: see the end of section 17) ---------- */

/* Bottom left; hidden below the screen until yoca-layout.js adds .is-visible. */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 300;
  width: min(460px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f1f4f5f2;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px #1c1c1c2e;
  transform: translateY(calc(100% + 40px));
  transition: transform 1s var(--ease-out-expo);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { margin: 0 0 8px; font-size: 22px; }
.cookie-banner p { margin: 0; font-size: 15px; line-height: 1.5em; }
.cookie-banner .button-row { margin-top: 16px; }

/* ---------- 17. Language: "FR | EN" switcher (header + menu) and suggestion banner (yoca-i18n.js) ---------- */
/* Both are built by assets/js/yoca-i18n.js; no HTML needs to be written for them.
   The switcher links to the twin page in the other language (same ?query and #hash) with hreflang; pages
   without a twin get no switcher. The banner appears only when the browser's preferred language differs from
   the page language and the visitor has not chosen yet (choice kept in localStorage); it is written in the
   visitor's language and NEVER redirects by itself. */

/* Two small pills; the current language is solid, the other one is a link to the twin page. */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-right: 6px; padding: 3px; border: 1px solid var(--border); border-radius: var(--rounding-buttons); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; padding: 0 8px; border: 0; border-radius: var(--rounding-buttons); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--dark); opacity: .6; transition: opacity .3s var(--ease-site), background-color .3s var(--ease-site); }
.lang-switch a:hover { opacity: 1; border: 0; }
.lang-switch a[aria-current] { background: var(--dark); color: var(--background); opacity: 1; }
.lang-switch abbr { text-decoration: none; cursor: inherit; }
/* In the fullscreen menu: bigger targets, no right margin */
.nav-aside .lang-switch { display: inline-flex; margin: 0; }
.nav-aside .lang-switch a { min-width: 48px; min-height: 40px; font-size: 15px; }

/* Suggestion banner: top right, under the navbar, so it never covers the cookie banner (bottom left). */
.lang-banner {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 300;
  width: min(380px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f1f4f5f2;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px #1c1c1c2e;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .4s var(--ease-site), transform .8s var(--ease-out-expo);
}
.lang-banner.is-visible { opacity: 1; transform: none; }
.lang-banner p { margin: 0; font-size: 15px; line-height: 1.5em; }
.lang-banner .button-row { margin-top: 12px; flex-wrap: wrap; }
/* Reduced motion: the banner just appears (opacity only, no slide). */
@media (prefers-reduced-motion: reduce) { .lang-banner { transition: none; transform: none; } }
/* Print: a paper copy needs neither the switcher nor the banner. */
@media print { .lang-switch, .lang-banner { display: none !important; } }

/* Toast: short message at the bottom centre (Yoca.toast in yoca-layout.js: link copied, consent saved, vCard...).
   Slides up when yoca-layout.js adds .is-visible; pointer-events: none so it never blocks a click. */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 400; padding: 12px 22px; border-radius: var(--rounding-buttons); background: var(--dark); color: var(--background); font-size: 15px; opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s var(--ease-site), transform .6s var(--ease-out-expo); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 18. 404 ---------- */

.error-code { margin: 0; font-family: var(--heading-font); color: var(--red); font-size: 200px; line-height: 1em; }

/* ---------- 19. Style guide helpers (01_guide-de-style.html; code blocks also used on 14_seo-head) ---------- */

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.swatch { overflow: hidden; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.swatch__color { height: 90px; }
.swatch__info { padding: 12px 14px; font-size: 14px; line-height: 1.4em; }
.swatch__info strong { display: block; }
.demo-box { width: 100%; padding: 30px; border: 1px dashed var(--border); border-radius: var(--rounding); }
code, pre { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 14px; }
pre { overflow-x: auto; margin: 0; padding: 20px; border-radius: var(--rounding); background: var(--dark); color: #f1f4f5; line-height: 1.5em; }
.code-block { position: relative; width: 100%; margin: 16px 0 34px; }
.code-block .button { position: absolute; top: 10px; right: 10px; }

/* ---------- 20. Motion (mirrors Webflow IX2 interactions of the live site) ---------- */
/* Hidden start states are scoped to html.js (class added by the inline script in <head>): without JavaScript
   nothing stays invisible. yoca-animations.js adds .is-in when the element scrolls into view;
   --delay (from data-delay="ms") staggers the elements of a group. */

html.js .section.reveal { opacity: 0; transition: opacity .8s ease-in-out; }
html.js .section.reveal.is-in { opacity: 1; }
html.js [data-anim="slide"] { opacity: 0; transform: translateY(-100px); transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart); transition-delay: var(--delay, 0ms); }
html.js [data-anim="slide"].is-in { opacity: 1; transform: none; }
html.js [data-anim="rise"] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart); transition-delay: var(--delay, 0ms); }
html.js [data-anim="rise"].is-in { opacity: 1; transform: none; }

/* Reduced motion (OS setting): every animation and transition becomes instant, all revealed content is
   shown at once, and the menu links no longer slide. Later sections add their own small overrides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-anim], html.js .section.reveal { opacity: 1; transform: none; }
  .links, .nav-aside { transform: none; }
}

/* ---------- 21. Responsive (Webflow breakpoints: tablet 991px, mobile landscape 767px, mobile 479px) ---------- */
/* Only for sections 1-20; sections 22 to 27 have their own breakpoint blocks at the end of each section. */

@media screen and (max-width: 991px) {
  h1 { font-size: 55px; } h2 { font-size: 42px; } h3 { font-size: 34px; } h4 { font-size: 28px; } h5 { font-size: 23px; }
  .block-navbar { padding: 15px 10px; }
  .section { padding: 130px 30px 30px; }
  .section--auto { padding-top: 50px; padding-bottom: 50px; }
  .title-hero { font-size: 64px; }
  .title-page, .title-blog { font-size: 54px; }
  .block-text-hero { margin-bottom: 90px; }
  .image-blog { height: 380px; }
  .collection-item { margin-bottom: -50px; }
  .heading-blog { font-size: 23px; }
  .collection-list-wrapper { margin-bottom: 50px; }
  .card-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .nav-menu-inner { grid-template-columns: 1fr; align-content: center; padding: 110px 30px 40px; }
  .nav-quick { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 40px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
  h1 { font-size: 48px; } h2 { font-size: 38px; } h3 { font-size: 32px; } h4 { font-size: 26px; } h5 { font-size: 22px; }
  .block-navbar { padding: 10px; }
  .brand { margin-left: 0; }
  .nav-link-text { padding: 10px 15px; font-size: 35px; }
  .section { padding: 120px 20px 20px; }
  .section--auto { padding-top: 40px; padding-bottom: 40px; }
  .title-hero { font-size: 54px; }
  .title-page, .title-blog { font-size: 44px; }
  .block-text-hero { margin-bottom: 60px; }
  .grid-blog, .grid-aside, .grid-2 { grid-template-columns: 1fr; }
  .image-blog { height: 330px; }
  .collection-item { margin-bottom: -20px; }
  .heading-blog { font-size: 22px; }
  .gradient { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 34px; }
  .form-grid, .offer-list { grid-template-columns: 1fr; }
  .explorer-bar { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer { padding: 50px 20px 20px; }
  .single-blog-text { margin-bottom: 40px; }
  .pager { grid-template-columns: 1fr; }
  .error-code { font-size: 140px; }
}

@media screen and (max-width: 479px) {
  h1 { font-size: 42px; } h2 { font-size: 34px; } h3 { font-size: 30px; } h4 { font-size: 24px; } h5 { font-size: 20px; } h6 { font-size: 16px; }
  .section { padding-top: 100px; }
  .title-hero { font-size: 44px; }
  .title-page, .title-blog { font-size: 38px; }
  .block-text-hero { margin-bottom: 40px; }
  .image-blog { height: 250px; }
  .heading-blog { font-size: 20px; }
  .card-grid, .team-grid, .grid-3, .steps, .stat-grid, .footer-grid, .swatches { grid-template-columns: 1fr; }
  .stat__value { font-size: 44px; }
  .newsletter { padding: 30px 22px; }
  .newsletter h2 { font-size: 32px; }
  .newsletter-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .featured .portrait-card__title { font-size: 30px; }
}

/* =====================================================================
   22. Phase 2 - components inspired by lemediapositif.com, drawn in the Yoca theme
   ===================================================================== */

.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--red-text); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.footer-grid--5 { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; }
.footer-family { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; max-width: var(--content-max); margin: 34px auto 0; font-size: 14px; color: var(--subtitle); }
.footer-family strong { color: var(--dark); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Spotlight ("Bonne nouvelle du jour" -> portrait à la une) + trending ("Les plus lues") */
.spotlight { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; width: 100%; padding-top: 25px; border-top: 1px solid var(--border); }
.spotlight-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: var(--rounding); background: var(--surface); }
.spotlight-card__media { position: relative; min-height: 380px; overflow: hidden; }
.spotlight-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo), filter .5s var(--ease-out-sine); }
.spotlight-card__body { display: flex; flex-direction: column; gap: 10px; padding: 34px 32px; }
.spotlight-card__body h3 { margin: 6px 0 4px; font-size: 30px; line-height: 1.2em; }
.spotlight-card__body h3 a { border: 0; color: inherit; }
.spotlight-card__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.spotlight-card__body p { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-card .link-arrow { margin-top: auto; }
@media (hover: hover) {
  .spotlight-card__media img { filter: grayscale(100%); }
  .spotlight-card:hover .spotlight-card__media img { filter: grayscale(0%); transform: scale(1.04); transition: transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo); }
  .spotlight-card:hover h3 { color: var(--red); }
}
.spotlight-card h3 { transition: color .3s var(--ease-site); }

.trending h2 { margin: 0 0 6px; font-size: 30px; }
.trending__source { margin: 0 0 14px; font-size: 13px; color: var(--subtitle); }
.trending ol { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending li { counter-increment: trend; padding: 0; border-top: 1px solid var(--border); }
.trending li:last-child { border-bottom: 1px solid var(--border); }
.trending a { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 6px; align-items: start; padding: 16px 0; border: 0; color: var(--dark); }
.trending a::before { content: counter(trend, decimal-leading-zero); font-family: var(--heading-font); font-size: 30px; line-height: 1.1em; color: var(--red); transition: transform .5s var(--ease-out-expo); }
.trending a:hover { border: 0; }
.trending a:hover::before { transform: translateX(6px); }
.trending__title { display: block; font-family: var(--heading-font); font-size: 18px; line-height: 1.35em; transition: color .3s var(--ease-site); }
.trending a:hover .trending__title { color: var(--red); }
.trending__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--subtitle); }

/* Video cards + horizontal scroller ("Nos formats longs") */
.scroller { position: relative; width: 100%; }
.scroller__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 22px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; list-style: none; margin: 0; }
.scroller__track > li { padding: 0; scroll-snap-align: start; }
.scroller--3 .scroller__track { grid-auto-columns: calc((100% - 44px) / 3); }
.scroller__nav { display: flex; gap: 8px; }
.scroller__nav button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 50%; background: var(--background); color: var(--dark); cursor: pointer; transition: background-color .3s var(--ease-site), color .3s var(--ease-site); }
.scroller__nav button:hover:not(:disabled) { background: var(--dark); color: var(--background); }
.scroller__nav button:disabled { opacity: .35; cursor: default; }
.scroller__nav .prev svg { transform: rotate(-135deg); }
.scroller__nav .next svg { transform: rotate(45deg); }

.video-card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.video-card__media { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--rounding); background: var(--dark); aspect-ratio: 16 / 10; cursor: pointer; }
.video-card--vertical .video-card__media { aspect-ratio: 9 / 14; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1s var(--ease-out-expo), opacity .5s var(--ease-out-sine), filter .5s var(--ease-out-sine); }
.video-card__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--background); color: var(--dark); transition: transform .6s var(--ease-out-expo), background-color .3s var(--ease-site), color .3s var(--ease-site); }
.video-card__play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.video-card__badge { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--rounding-buttons); background: #f1f4f5e6; color: var(--dark); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.video-card__badge.is-live { background: var(--red); color: #fff; }
.video-card__title { margin: 0; font-size: 19px; line-height: 1.35em; }
.video-card__title a { border: 0; color: inherit; }
.video-card__title a:hover { color: var(--red); border: 0; }
@media (hover: hover) {
  .video-card__media img { filter: grayscale(100%); }
  .video-card:hover .video-card__media img { filter: grayscale(0%); transform: scale(1.05); opacity: 1; transition: transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo), opacity .5s; }
  .video-card:hover .video-card__play { transform: scale(1.12); background: var(--red); color: #fff; }
}
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; width: 100%; }
.video-feature .video-card__media { aspect-ratio: 16 / 9; }
.video-feature .video-card__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.video-feature h3 { margin: 6px 0 12px; font-size: 36px; line-height: 1.15em; }
.video-row { width: 100%; padding-top: 25px; border-top: 1px solid var(--border); }
.video-row + .video-row { margin-top: 70px; }
.video-row__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.video-row__head h2 { margin: 0; font-size: 38px; }
.video-row__head p { margin: 6px 0 0; font-size: 16px; }
.video-row__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.video-row__next { display: flex; flex-direction: column; gap: 14px; }
.video-row__next h3 { margin: 0 0 4px; font-family: var(--main-font); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--subtitle); }
.video-mini { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.video-mini img { width: 132px; aspect-ratio: 16 / 10; border-radius: 8px; object-fit: cover; transition: filter .5s var(--ease-out-sine); }
.video-mini span { font-family: var(--heading-font); font-size: 16px; line-height: 1.35em; color: var(--dark); transition: color .3s var(--ease-site); }
.video-mini:hover span, .video-mini:focus-visible span { color: var(--red); }
@media (hover: hover) { .video-mini img { filter: grayscale(100%); } .video-mini:hover img { filter: grayscale(0%); } }
.video-dialog { width: min(1100px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 16px; background: var(--dark); color: var(--background); overflow: hidden; }
.video-dialog::backdrop { background: #1c1c1ccc; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-dialog[open] { animation: dialog-in .6s var(--ease-out-expo); }
.video-dialog__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-dialog__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; background-size: cover; background-position: center; }
.video-dialog__empty::before { content: ""; position: absolute; inset: 0; background: #1c1c1cd9; }
.video-dialog__empty > * { position: relative; }
.video-dialog__empty h2 { margin: 0; color: var(--background); font-size: 30px; }
.video-dialog__empty p { margin: 0; max-width: 520px; color: #f1f4f5cc; font-size: 16px; }
.video-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.video-dialog__bar strong { color: var(--background); font-family: var(--heading-font); font-weight: 400; font-size: 18px; }
.video-dialog .icon-button { color: var(--background); }
.video-dialog .icon-button:hover { background: #f1f4f51a; }

/* Community ("Rejoins la communauté") */
.community-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%; list-style: none; margin: 0; padding: 0; }
.community-tiles li { padding: 0; }
.community-tile { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px 22px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); color: var(--dark); transition: background-color .4s var(--ease-site), color .4s var(--ease-site), transform .6s var(--ease-out-expo), border-color .4s; }
.community-tile .icon { width: 28px; height: 28px; }
.community-tile strong { font-family: var(--heading-font); font-weight: 400; font-size: 21px; }
.community-tile span { font-size: 14px; color: var(--subtitle); transition: color .4s var(--ease-site); }
.community-tile:hover { border-width: 1px; border-color: var(--dark); background: var(--dark); color: var(--background); transform: translateY(-6px); }
.community-tile:hover span { color: #f1f4f5b3; }
.community-tile.is-todo { outline-offset: -6px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; width: 100%; }
.pillar { padding-top: 22px; border-top: 2px solid var(--dark); }
.pillar__num { display: block; margin-bottom: 10px; font-family: var(--heading-font); font-size: 42px; line-height: 1; color: var(--red); }
.pillar h3 { margin: 0 0 10px; font-size: 26px; }
.pillar p { margin: 0 0 14px; font-size: 16px; }

/* Timeline ("Notre histoire") */
.timeline { position: relative; width: 100%; list-style: none; margin: 0; padding: 0 0 0 0; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 0 0 46px; }
.timeline li::before { content: ""; position: absolute; left: 134px; top: 14px; width: 13px; height: 13px; border: 3px solid var(--background); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.timeline li.is-future::before { background: var(--background); }
.timeline__date { font-family: var(--heading-font); font-size: 30px; line-height: 1.2em; color: var(--dark); }
.timeline__date small { display: block; font-family: var(--main-font); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtitle); }
.timeline h3 { margin: 4px 0 8px; font-size: 26px; }
.timeline p { margin: 0; max-width: 680px; font-size: 17px; }

.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; list-style: none; margin: 0; padding: 0; }
.family-grid li { padding: 0; }

/* Article reading tools */
.reading-progress { position: fixed; left: 0; top: 0; z-index: 400; width: 100%; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; border: 0; font-size: 15px; color: var(--subtitle); }
.back-link svg { width: 16px; height: 16px; transform: rotate(-135deg); transition: transform .4s var(--ease-out-expo); }
.back-link:hover { border: 0; color: var(--dark); }
.back-link:hover svg { transform: rotate(-135deg) translate(3px, -3px); }
.article-video { width: 100%; max-width: 760px; margin: 0 auto 40px; }
.cta-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; width: 100%; max-width: 760px; margin: 50px auto 0; padding: 26px 30px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); }
.cta-band .icon { width: 30px; height: 30px; color: var(--red); }
a.cta-band:hover { border-width: 1px; border-color: var(--dark); }
.cta-band p { margin: 0; font-size: 16px; }
.cta-band strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 20px; }

/* Newsletter perks ("1 email chaque vendredi · Désinscription en 1 clic") */
.perks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: #f1f4f5b3; }
.perks li { display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Consent panel ("Personnaliser / Tout refuser / Tout accepter") */
.consent-options { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.switch { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--rounding); background: var(--surface); font-size: 14px; line-height: 1.4em; cursor: pointer; }
.switch strong { display: block; font-size: 15px; }
.switch input { appearance: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 24px; background: #1c1c1c33; cursor: pointer; transition: background-color .3s var(--ease-site); }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease-out-expo); }
.switch input:checked { background: var(--dark); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch input:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.cookie-banner .button-row { flex-wrap: wrap; }

@media screen and (max-width: 991px) {
  .spotlight, .video-feature { grid-template-columns: 1fr; }
  .footer-grid--5 { grid-template-columns: 1fr 1fr; }
  .community-tiles { grid-template-columns: repeat(3, 1fr); }
  .family-grid { grid-template-columns: 1fr 1fr; }
  .scroller--3 .scroller__track { grid-auto-columns: calc((100% - 22px) / 2); }
}
@media screen and (max-width: 767px) {
  .spotlight-card { grid-template-columns: 1fr; }
  .spotlight-card__media { min-height: 240px; }
  .video-row__grid, .pillars { grid-template-columns: 1fr; }
  .video-row__head { flex-direction: column; align-items: flex-start; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .timeline li::before { left: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .scroller--3 .scroller__track { grid-auto-columns: 82%; }
}
@media screen and (max-width: 479px) {
  .community-tiles, .family-grid, .footer-grid--5 { grid-template-columns: 1fr; }
  .video-mini { grid-template-columns: 104px 1fr; }
  .video-mini img { width: 104px; }
}

/* ---------- 23. Phase 3 : full portrait text (yoca-articles.js) ---------- */
.article-body { font-size: 18px; line-height: 1.75em; color: var(--paragraphs); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 1.8em; font-size: 32px; line-height: 1.25em; color: var(--dark); }
.article-body h3 { margin-top: 1.5em; font-size: 24px; color: var(--dark); }
.article-body h4 { margin-top: 1.2em; font-family: var(--main-font); font-size: 19px; font-weight: 700; color: var(--dark); }
.article-body strong { color: var(--dark); }
.article-body a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font-family: var(--heading-font); font-size: 24px; line-height: 1.45em; color: var(--dark); }
.article-body img { display: block; width: 100%; height: auto; margin: 1.6em 0 .6em; border-radius: var(--rounding); }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { margin: 0 0 .6em; }
.article-body figcaption { color: var(--subtitle); font-size: 14px; }
.article-fixes { margin: 0 0 32px; }
.article-fixes details { padding: 14px 20px; border: 1px dashed var(--red); border-radius: var(--rounding); background: #f1291e0d; font-size: 15px; color: var(--paragraphs); }
.article-fixes summary { cursor: pointer; font-weight: 700; color: var(--red-text); }
.article-fixes ul { margin: 10px 0 6px; padding-left: 20px; }
.article-fixes a { color: var(--red-text); text-decoration: underline; }
@media screen and (max-width: 767px) {
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 26px; }
  .article-body blockquote { font-size: 20px; }
}

/* =====================================================================
   24. Apple-grade polish layer  (appended 2026-10-20)
   Glassmorphism + buttery motion + depth for the light editorial theme.
   Purely additive: every page already loads this file. Honours
   prefers-reduced-motion. Tuned for the light palette (translucent white
   glass, red accent) rather than the dark NuxCine sites.
   ===================================================================== */

:root {
  --ease-apple: cubic-bezier(.32, .72, 0, 1);
  --ease-apple-soft: cubic-bezier(.4, 0, .2, 1);
  --glass-light: #f7f9facc;
  --glass-border-light: #1c1c1c1a;
}

/* ---- Buttery scroll reveals: add a soft focus to the rise/slide reveals ---- */
html.js [data-anim="rise"], html.js [data-anim="slide"] {
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart), filter 1s var(--ease-out-quart);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
html.js [data-anim="rise"].is-in, html.js [data-anim="slide"].is-in { filter: blur(0); }

/* ---- Richer progressive-blur navbar (Apple frosted translucency) ---- */
.block-blur-5  { -webkit-backdrop-filter: blur(6px)  saturate(150%); backdrop-filter: blur(6px)  saturate(150%); }
.block-blur-10 { -webkit-backdrop-filter: blur(12px) saturate(165%); backdrop-filter: blur(12px) saturate(165%); }
.navbar:not(.is-open)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--background) 10%, #f1f4f500);
  opacity: .55;
}

/* ---- Frosted full-screen menu: softly reveal the page through the glass ---- */
.navbar.is-open .nav-menu {
  background-color: #f1f4f5d9;
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

/* ---- Reusable glass surface utility ---- */
.glass {
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border-light);
}

/* ---- Upgrade already-translucent surfaces with saturation ---- */
.search-dialog { -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); background: #f7f9faf2; }
.search-dialog::backdrop, .video-dialog::backdrop { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cookie-banner { -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }

/* ---- Soft depth on editorial media tiles (Apple card lift) ---- */
.portrait-card__media, .video-card__media {
  transition: box-shadow .5s var(--ease-apple), transform .5s var(--ease-apple);
}
.portrait-card:hover .portrait-card__media,
.video-card:hover .video-card__media {
  box-shadow: 0 26px 50px -30px #1c1c1c73, 0 6px 18px -12px #1c1c1c40;
}

/* ---- Parallax hint ---- */
[data-parallax] { will-change: transform; }

/* Reduced motion: no blur on reveals, no parallax shift (section 20 already makes the reveals instant). */
@media (prefers-reduced-motion: reduce) {
  html.js [data-anim] { filter: none !important; }
  [data-parallax] { transform: none !important; }
}

/* =====================================================================
   25. Next-gen interaction layer  (appended 2026-10-20)
   Cross-page View Transitions, cursor spotlight on card media, zero-JS
   GPU scroll progress. Progressive + reduced-motion safe. Deliberately
   avoids transforms so it never fights the existing tilt/parallax engine.
   ===================================================================== */
/* Cross-page fade between two pages of the site (browsers that support View Transitions; others ignore it). */
@view-transition { navigation: auto; }
@keyframes yoca-vt-in  { from { opacity: 0; transform: translateY(10px) scale(.994); } }
@keyframes yoca-vt-out { to   { opacity: 0; transform: translateY(-10px) scale(.994); } }
::view-transition-old(root) { animation: yoca-vt-out .36s cubic-bezier(.32,.72,0,1) both; }
::view-transition-new(root) { animation: yoca-vt-in  .44s cubic-bezier(.32,.72,0,1) both; }

/* Reading progress bar (3px red line at the top) driven by the page scroll, no JavaScript.
   @supports: only browsers with scroll-driven animations draw it; the others simply show nothing. */
@supports (animation-timeline: scroll()) {
  html.js body::after {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 3000;
    transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
    background: linear-gradient(90deg, var(--red, #f1291e), #ff6a3d);
    animation: yoca-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes yoca-progress { to { transform: scaleX(1); } }
}

.portrait-card__media, .video-card__media { position: relative; }
/* Cursor spotlight: yoca-animations.js inserts .yoca-spot in card images and sets --mx / --my
   (cursor position in %, inherited from the image box) on pointer move; the light is centred there. */
.yoca-spot {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s ease; z-index: 3; mix-blend-mode: soft-light;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              #ffffffcc, #ffffff40 42%, transparent 70%);
}
.portrait-card:hover .yoca-spot, .video-card:hover .yoca-spot { opacity: 1; }

/* Reduced motion: no page transition, no spotlight. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .yoca-spot { display: none; }
}

/* =====================================================================
   26. TikTok capsules (yoca-capsules.js) : video hub, rows, people strip, player
   ===================================================================== */
.capsules { display: grid; grid-template-columns: 270px 1fr; gap: 50px; align-items: start; width: 100%; }

/* Themes rail : big serif list, red bar on the active theme */
.capsules__rail { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.capsules__rail-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--subtitle); }
.capsules__themes { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.capsules__themes li { padding: 0; border-bottom: 1px solid var(--border); }
.capsules__themes button { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 13px 4px 13px 16px; border: 0; background: none; color: var(--subtitle); font-family: var(--heading-font); font-size: 21px; line-height: 1.2em; text-align: left; cursor: pointer; transition: color .3s var(--ease-site), padding .5s var(--ease-out-expo); }
.capsules__themes button::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--red); transform: scaleY(0); transition: transform .5s var(--ease-out-expo); }
.capsules__themes button .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.capsules__themes button small { font-family: var(--main-font); font-size: 13px; color: var(--subtitle); font-variant-numeric: tabular-nums; }
.capsules__themes button:hover { color: var(--dark); padding-left: 20px; }
.capsules__themes button[aria-pressed="true"] { color: var(--dark); padding-left: 20px; }
.capsules__themes button[aria-pressed="true"]::before { transform: none; }
.capsules__themes button[aria-pressed="true"] .icon { color: var(--red); }

.capsules__account { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; margin-top: 10px; padding: 16px; border: 0; border-radius: var(--rounding); background: var(--dark); color: var(--background); }
.capsules__account:hover { border: 0; color: var(--background); }
.capsules__account-logo { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); font-family: var(--heading-font); font-size: 22px; }
.capsules__account strong { display: block; font-size: 16px; }
.capsules__account small { display: block; font-size: 13px; color: #f1f4f5b3; }
.capsules__account-cta { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 9px 16px; border-radius: var(--rounding-buttons); background: var(--background); color: var(--dark); font-size: 14px; font-weight: 600; transition: background-color .3s var(--ease-site), color .3s var(--ease-site); }
.capsules__account-cta .icon { width: 16px; height: 16px; }
.capsules__account:hover .capsules__account-cta { background: var(--red); color: #fff; }

.capsules__main { min-width: 0; }
.capsules__formats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.capsules__formats button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--rounding-buttons); background: transparent; color: var(--dark); font-family: var(--main-font); font-size: 15px; cursor: pointer; transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site); }
.capsules__formats button:hover, .capsules__formats button[aria-pressed="true"] { border-color: var(--dark); background: var(--dark); color: var(--background); }
.capsules__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.capsules__sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--rounding-buttons); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.capsules__sort button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: var(--rounding-buttons); background: transparent; color: var(--paragraphs); font-family: var(--main-font); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .3s var(--ease-site), color .3s var(--ease-site); }
.capsules__sort button .icon { width: 17px; height: 17px; }
.capsules__sort button:hover { color: var(--dark); }
.capsules__sort button[aria-pressed="true"] { background: var(--red); color: #fff; }
.capsules__search { flex: 1 1 240px; max-width: 340px; }
.capsules__search input { padding-top: 11px; padding-bottom: 11px; font-size: 16px; }
.capsules__status { margin: 16px 0 20px; font-size: 14px; color: var(--subtitle); }
.capsules__person { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; margin-top: 18px; padding: 14px 14px 14px 16px; border-radius: var(--rounding); background: var(--surface); box-shadow: inset 3px 0 0 var(--red); }
.capsules__person[hidden] { display: none; }
.capsules__person strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 20px; }
.capsules__person span { display: block; font-size: 14px; color: var(--subtitle); }
.capsules__person p { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 0; font-size: 14px; }
.capsules__person p a { display: inline-flex; align-items: center; gap: 6px; }
.capsules__person p .icon { width: 16px; height: 16px; }
.capsules__empty { padding: 50px 20px; text-align: center; }
.capsules__empty[hidden] { display: none; }
.capsules__empty h3 { margin: 0 0 8px; font-size: 26px; }
.capsules__source { margin: 40px 0 0; font-size: 13px; color: var(--subtitle); }

/* Capsule card (9:16) */
.capsule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; margin: 0; padding: 0; list-style: none; }
.capsule-grid > li, .scroller--capsules .scroller__track > li { padding: 0; }
.capsule-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.capsule-card__media { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--rounding); background: var(--dark); aspect-ratio: 9 / 16; cursor: pointer; isolation: isolate; }
.capsule-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.capsule-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(#1c1c1c59, transparent 22%, transparent 62%, #1c1c1ce6); pointer-events: none; }
.capsule-card__format, .capsule-card__stats, .capsule-card__rank, .capsule-card__play { position: absolute; z-index: 2; }
.capsule-card__format { left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--rounding-buttons); background: #f1f4f5e6; color: var(--dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.capsule-card__rank { right: 12px; top: 4px; font-family: var(--heading-font); font-size: 44px; line-height: 1.1em; color: #fff; text-shadow: 0 2px 18px #0009; }
.capsule-card__stats { left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.capsule-card__stats > span { display: inline-flex; align-items: center; gap: 5px; }
.capsule-card__stats .icon { width: 16px; height: 16px; }
.capsule-card__play { left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #f1f4f5e6; color: var(--dark); opacity: 0; transform: scale(.7); transition: opacity .4s var(--ease-site), transform .6s var(--ease-out-expo), background-color .3s var(--ease-site), color .3s var(--ease-site); }
.capsule-card__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.capsule-card__media:hover .capsule-card__play, .capsule-card__media:focus-visible .capsule-card__play { opacity: 1; transform: none; background: var(--red); color: #fff; }
.capsule-card__media:hover img { transform: scale(1.05); }
@media (hover: none) { .capsule-card__play { opacity: 1; transform: scale(.85); } }
.capsule-card__body { display: flex; flex-direction: column; gap: 5px; }
.capsule-card__theme { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.capsule-card__title { margin: 0; font-size: 17px; line-height: 1.35em; }
.capsule-card__title button { display: -webkit-box; padding: 0; border: 0; background: none; color: var(--dark); font: inherit; text-align: left; cursor: pointer; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; transition: color .3s var(--ease-site); }
.capsule-card__title button:hover { color: var(--red); }
.capsule-card__meta { margin: 0; font-size: 13px; line-height: 1.4em; color: var(--subtitle); }

.scroller--capsules .scroller__track { grid-auto-columns: 215px; }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillar .link-arrow { font-size: 15px; }

/* People strip */
.capsule-people .scroller__track { grid-auto-columns: 168px; gap: 14px; }
.capsule-person { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 18px 10px 16px; border: 0; border-radius: var(--rounding); text-align: center; color: var(--dark); transition: background-color .3s var(--ease-site); }
.capsule-person:hover { border: 0; background: var(--surface); }
.capsule-person__ring { display: block; margin-bottom: 8px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--red), #ff6a3d, var(--red)); transition: transform .6s var(--ease-out-expo); }
.capsule-person:hover .capsule-person__ring { transform: scale(1.06) rotate(-4deg); }
.capsule-person__ring .capsule-avatar { width: 88px; height: 88px; border: 3px solid var(--background); }
.capsule-person strong { font-family: var(--heading-font); font-weight: 400; font-size: 17px; line-height: 1.25em; }
.capsule-person > span:not(.capsule-person__ring) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35em; color: var(--paragraphs); }
.capsule-person small { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--red-text); }
.capsule-avatar { display: block; width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--dark); }
.capsule-avatar--initials { display: flex; align-items: center; justify-content: center; color: var(--background); font-family: var(--heading-font); font-size: 22px; }

/* Portrait page : the capsule the portrait comes from */
.article-capsule { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 16px; border-radius: var(--rounding); background: var(--surface); }
.article-capsule__media { position: relative; display: block; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--dark); aspect-ratio: 9 / 16; cursor: pointer; }
.article-capsule__media img { width: 100%; height: 100%; object-fit: cover; }
.article-capsule__media .video-card__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.article-capsule__media:hover .video-card__play { background: var(--red); color: #fff; }
.article-capsule__title { margin: 0 0 6px; font-family: var(--heading-font); font-size: 24px; line-height: 1.25em; color: var(--dark); }
.article-capsule p { margin: 0 0 14px; font-size: 16px; }
.article-capsule .button { gap: 8px; }

/* Player : TikTok on the left, the story on the right */
.capsule-dialog { --stage-h: min(820px, calc(100dvh - 30px)); --stage-w: calc(var(--stage-h) * 9 / 16); display: grid; grid-template-columns: var(--stage-w) 420px; width: calc(var(--stage-w) + 420px); max-width: calc(100% - 30px); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 16px; background: var(--dark); color: var(--background); overflow: hidden; }
.capsule-dialog:not([open]) { display: none; }
.capsule-dialog::backdrop { background: #1c1c1ce6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.capsule-dialog[open] { animation: dialog-in .6s var(--ease-out-expo); }
.capsule-dialog__stage { position: relative; width: var(--stage-w); height: var(--stage-h); background: #000 center / cover no-repeat; }
.capsule-dialog__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.capsule-dialog__gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; background: #1c1c1cd9; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.capsule-dialog__gate-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--background); color: var(--dark); }
.capsule-dialog__gate h3 { margin: 0; color: var(--background); font-size: 26px; }
.capsule-dialog__gate p { margin: 0; max-width: 300px; color: #f1f4f5cc; font-size: 15px; }
.capsule-dialog__gate-link .icon { width: 15px; height: 15px; }
.capsule-dialog__panel { display: flex; flex-direction: column; gap: 16px; width: 420px; max-width: 100%; max-height: var(--stage-h); padding: 18px 24px 26px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.capsule-dialog__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-right: -10px; }
.capsule-dialog__kicker { display: inline-flex; align-items: center; gap: 8px; color: #ff4d57; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.capsule-dialog__kicker .icon { width: 18px; height: 18px; }
.capsule-dialog .icon-button { color: var(--background); }
.capsule-dialog .icon-button:hover { background: #f1f4f51a; }
.capsule-dialog h2 { margin: 0; color: var(--background); font-size: 26px; line-height: 1.25em; }
.capsule-dialog__meta { margin: -6px 0 0; font-size: 13px; color: #f1f4f599; }
.capsule-dialog__text { margin: 0; font-size: 15px; line-height: 1.6em; color: #f1f4f5d9; }
.capsule-dialog__label, .capsule-dialog__next h3 { margin: 0 0 10px; font-family: var(--main-font); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #f1f4f580; }
.capsule-dialog__people { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.capsule-dialog__people li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--rounding); background: #f1f4f50f; }
.capsule-dialog__people .capsule-avatar { width: 48px; height: 48px; background: #f1f4f51a; }
.capsule-dialog__people strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 17px; color: var(--background); }
.capsule-dialog__people small { display: block; font-size: 13px; color: #f1f4f5a6; }
.capsule-dialog__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: 13px; }
.capsule-dialog a:not(.button):not(.icon-button) { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--background); text-decoration: underline; text-decoration-color: #f1f4f566; text-underline-offset: 3px; }
.capsule-dialog a:not(.button):not(.icon-button):hover { text-decoration-color: var(--red); }
.capsule-dialog__share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 14px; border-top: 1px solid #f1f4f51f; }
.capsule-dialog__share .button { gap: 8px; margin-right: 6px; background: #25d366; border-color: #25d366; color: #0b2e17; }
.capsule-dialog__share .button:hover { background: #1fb457; border-color: #1fb457; color: #fff; }
.capsule-dialog__share .icon-button { width: 42px; height: 42px; }
.capsule-dialog a.capsule-dialog__tiktok { margin-left: auto; font-size: 14px; text-decoration: none; }
.capsule-dialog__tiktok .icon { width: 17px; height: 17px; }
.capsule-dialog__next > div { display: flex; flex-direction: column; gap: 8px; }
.capsule-mini { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--background); text-align: left; cursor: pointer; transition: background-color .3s var(--ease-site); }
.capsule-mini:hover { background: #f1f4f514; }
.capsule-mini img { width: 52px; aspect-ratio: 9 / 16; height: auto; border-radius: 6px; object-fit: cover; }
.capsule-mini strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-family: var(--heading-font); font-weight: 400; font-size: 15px; line-height: 1.35em; color: var(--background); }
.capsule-mini small { display: block; margin-top: 3px; font-size: 12px; color: #f1f4f599; }

@media screen and (max-width: 1199px) {
  .capsule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 991px) {
  .capsules { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pillars--4 { grid-template-columns: 1fr 1fr; }
  .capsules__rail { position: static; }
  .capsules__rail-title, .capsules__account { display: none; }
  .capsules__themes { flex-direction: row; gap: 8px; margin: 0 -20px; padding: 2px 20px 8px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .capsules__themes::-webkit-scrollbar { display: none; }
  .capsules__themes li { flex: none; border: 0; }
  .capsules__themes button { grid-template-columns: auto auto auto; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--rounding-buttons); font-family: var(--main-font); font-size: 15px; color: var(--dark); }
  .capsules__themes button::before { display: none; }
  .capsules__themes button .icon { width: 18px; height: 18px; }
  .capsules__themes button:hover, .capsules__themes button[aria-pressed="true"] { padding-left: 16px; border-color: var(--dark); background: var(--dark); color: var(--background); }
  .capsules__themes button[aria-pressed="true"] .icon { color: #ff4d57; }
  .capsules__themes button[aria-pressed="true"] small { color: #f1f4f5b3; }
  .capsule-dialog { grid-template-columns: 1fr; width: min(460px, calc(100% - 20px)); max-width: none; overflow-y: auto; }
  .capsule-dialog__stage { width: 100%; height: auto; max-height: 72dvh; aspect-ratio: 9 / 16; }
  .capsule-dialog__panel { width: auto; max-height: none; overflow: visible; }
}
@media screen and (max-width: 767px) {
  .capsule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pillars--4 { grid-template-columns: 1fr; }
  .capsules__formats { flex-wrap: nowrap; margin: 0 -20px 14px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
  .capsules__formats button { flex: none; }
  .capsules__toolbar { flex-direction: column; align-items: stretch; }
  .capsules__sort { display: grid; grid-template-columns: repeat(3, 1fr); }
  .capsules__sort button { justify-content: center; padding: 9px 6px; font-size: 14px; white-space: nowrap; }
  .capsules__sort button .icon { display: none; }
  .capsules__search { max-width: none; flex-basis: auto; }
  .capsule-card__rank { font-size: 34px; }
  .capsule-card__title { font-size: 15px; }
  .scroller--capsules .scroller__track { grid-auto-columns: 44%; }
  .capsule-people .scroller__track { grid-auto-columns: 136px; }
  .capsule-person__ring .capsule-avatar { width: 72px; height: 72px; }
  .article-capsule { grid-template-columns: 110px 1fr; gap: 16px; }
  .article-capsule__title { font-size: 20px; }
  .capsule-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .capsule-dialog__stage { max-height: 78dvh; margin: 0 auto; }
  .capsule-dialog__top { position: absolute; top: 10px; right: 10px; z-index: 5; margin: 0; }
  .capsule-dialog__top .capsule-dialog__kicker { display: none; }
  .capsule-dialog__top .icon-button { background: #1c1c1cb3; }
}
/* Reduced motion: capsule hovers and theme buttons change instantly. */
@media (prefers-reduced-motion: reduce) {
  .capsule-card__media img, .capsule-person__ring, .capsules__themes button { transition: none; }
}

/* ---------- 27. Le livre & les cartes (yoca-editions.js, 18_editions.html + book teaser on the home page) ---------- */

.editions-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: center; width: 100%; margin-bottom: 90px; }
.editions-hero .title-hero { font-size: 72px; }
.editions-hero__visual { position: relative; display: flex; justify-content: center; padding: 30px 0 50px; }
.editions-sticker { position: absolute; top: 4px; right: 6%; z-index: 2; padding: 8px 16px; border-radius: var(--rounding-buttons); background: var(--red); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transform: rotate(7deg); box-shadow: 0 10px 24px -10px #f1291e99; }
.section-head p .icon { width: 17px; height: 17px; color: var(--red); vertical-align: -3px; }

/* Cover mock-up, pure CSS 3D: front, page edge, spine, back */
/* cqw on an element resolves against its *ancestor* container, so the container is the wrapper, never the face itself */
.book3d { --w: 300px; --h: 420px; --t: 38px; position: relative; width: var(--w); height: var(--h); perspective: 1600px; container-type: inline-size; }
.book3d__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); transition: transform 1s var(--ease-out-expo); }
.book3d:hover .book3d__body { transform: rotateY(-16deg) rotateX(2deg); }
.book3d__front, .book3d__back, .book3d__pages, .book3d__spine { position: absolute; top: 0; height: 100%; }
.book3d__front { left: 0; width: 100%; display: flex; flex-direction: column; gap: 5cqw; padding: 8cqw 8cqw 9cqw; border-radius: 2px 6px 6px 2px; background: var(--dark); color: var(--background); transform: translateZ(calc(var(--t) / 2)); overflow: hidden; }
.book3d__front::before { content: ""; position: absolute; left: 3.2cqw; top: 0; bottom: 0; width: 1px; background: #f1f4f526; }
.book3d__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, #ffffff1f 0%, transparent 30%, transparent 70%, #00000033 100%); pointer-events: none; }
.book3d__brand { font-size: 4.4cqw; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #ff4d57; }
.book3d__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.book3d__mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.2cqw; filter: grayscale(100%) contrast(1.05); }
.book3d__mosaic img:nth-child(2), .book3d__mosaic img:nth-child(6) { filter: none; }
.book3d__title { margin-top: auto; font-family: var(--heading-font); font-weight: 400; font-size: 9.6cqw; line-height: 1.12; color: var(--background); }
.book3d__sub { font-size: 4.2cqw; color: #f1f4f5b3; }
.book3d__back { left: 0; width: 100%; border-radius: 6px 2px 2px 6px; background: #111; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.book3d__pages { top: 3px; height: calc(100% - 6px); left: calc(var(--w) - var(--t) / 2); width: var(--t); background: repeating-linear-gradient(90deg, #fbfbf8 0 2px, #e4e2dc 2px 3px); transform: rotateY(90deg); }
.book3d__spine { left: calc(var(--t) / -2); width: var(--t); display: flex; align-items: center; justify-content: center; background: #111; transform: rotateY(-90deg); }
.book3d__spine span { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f1f4f5b3; white-space: nowrap; }
.book3d__shadow { position: absolute; left: 6%; right: -10%; bottom: -34px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, #1c1c1c59, transparent); filter: blur(6px); }

/* Page-by-page preview */
.book-viewer { width: 100%; }
.book-viewer__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.book-viewer__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.book-viewer__arrow { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--dark); cursor: pointer; transition: background-color .3s var(--ease-site), color .3s var(--ease-site), opacity .3s var(--ease-site); }
.book-viewer__arrow .icon { transform: rotate(-135deg); }
.book-viewer__arrow--next .icon { transform: rotate(45deg); }
.book-viewer__arrow:hover:not(:disabled) { background: var(--dark); border-color: var(--dark); color: var(--background); }
.book-viewer__arrow:disabled { opacity: .3; cursor: default; }
/* Book preview: the spread is the query container, so the page text (1.5cqw = 1.5% of the spread width,
   clamped 13-16px) and the layout scale together, like a real page, whatever the screen. */
.book-viewer__spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1040px; margin: 0 auto; aspect-ratio: 34 / 24; container-type: inline-size; perspective: 2400px; border-radius: 4px; background: #fdfcf9; box-shadow: 0 0 0 1px var(--border), 0 40px 70px -40px #1c1c1c66; }
.book-viewer__spread:focus-visible { outline: 2px solid var(--dark); outline-offset: 6px; }
.book-viewer__spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 70px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #1c1c1c0d 40%, #1c1c1c2e 50%, #1c1c1c0d 60%, transparent); pointer-events: none; }
.book-viewer__spread.is-turning-next .book-page--right { animation: book-turn-next .7s var(--ease-out-quart) both; transform-origin: left center; }
.book-viewer__spread.is-turning-next .book-page--left, .book-viewer__spread.is-turning-prev .book-page--right { animation: book-fade .5s ease both; }
.book-viewer__spread.is-turning-prev .book-page--left { animation: book-turn-prev .7s var(--ease-out-quart) both; transform-origin: right center; }
@keyframes book-turn-next { from { opacity: 0; transform: rotateY(-35deg); } to { opacity: 1; transform: none; } }
@keyframes book-turn-prev { from { opacity: 0; transform: rotateY(35deg); } to { opacity: 1; transform: none; } }
@keyframes book-fade { from { opacity: 0; } to { opacity: 1; } }
.book-viewer__bar { display: flex; align-items: center; gap: 24px; max-width: 1040px; margin: 22px auto 0; font-size: 15px; }
.book-viewer__status { color: var(--paragraphs); }
.book-viewer__progress { flex: 1; height: 2px; background: var(--border); }
.book-viewer__progress span { display: block; height: 100%; background: var(--red); transition: width .6s var(--ease-out-quart); }
.book-viewer__bar .link-arrow { flex: none; }

.book-page { position: relative; display: flex; flex-direction: column; gap: .8em; min-width: 0; padding: 8% 9% 11%; overflow: hidden; font-size: clamp(13px, 1.5cqw, 16px); line-height: 1.5; color: var(--paragraphs); }
.book-page--left { border-radius: 4px 0 0 4px; }
.book-page h3 { margin: 0; font-size: 2.1em; line-height: 1.12; }
.book-page p { margin: 0; }
.book-page--photo { padding: 0; background: var(--dark); }
.book-page--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.book-page--photo .book-page__folio { z-index: 1; }
.book-page--photo .book-page__folio { color: #fff; text-shadow: 0 1px 4px #0009; }
.book-page--title { align-items: center; justify-content: center; text-align: center; }
.book-page--title h3 { font-size: 2.5em; }
.book-page--title p { max-width: 24em; }
.book-page--chapter { justify-content: flex-end; background: var(--dark); color: #f1f4f5b3; }
.book-page--chapter h3 { color: var(--background); font-size: 2.6em; }
.book-page__chapnum { font-family: var(--heading-font); font-size: 7em; line-height: 1; color: var(--red); }
.book-page__brand { font-size: .78em; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--red-text); }
.book-page__running { padding-bottom: .8em; border-bottom: 1px solid var(--border); font-size: .7em; letter-spacing: .16em; text-transform: uppercase; color: var(--subtitle); }
.book-page__num { font-family: var(--heading-font); font-size: 1.05em; color: var(--red-text); }
.book-page__quote { padding-left: .9em; border-left: 2px solid var(--red); font-family: var(--heading-font); font-size: 1.18em; line-height: 1.45; color: var(--dark); }
.book-page__excerpt { font-size: .92em; }
.book-page__qr { display: flex; align-items: center; gap: 1em; margin-top: auto; padding-top: .8em; font-size: .8em; line-height: 1.4; }
.book-page__qr a { flex: none; display: block; width: 6.8em; border: 0; transition: transform .4s var(--ease-out-expo); }
.book-page__qr a:hover { transform: scale(1.06); }
.book-page__qr strong { color: var(--dark); }
.book-page__folio { position: absolute; bottom: 4.5%; left: 9%; font-size: .72em; color: var(--subtitle); }
.book-page--right .book-page__folio { left: auto; right: 9%; }
.book-page--chapter .book-page__folio { color: #f1f4f580; }
.book-page__toc { display: grid; gap: .45em; margin: .3em 0 0; padding: 0; list-style: none; font-size: .92em; }
.book-page__toc li { display: flex; align-items: baseline; gap: .5em; }
.book-page__toc li span { font-family: var(--heading-font); color: var(--red-text); }
.book-page__toc li i { flex: 1; border-bottom: 1px dotted #1c1c1c4d; }
.qr { display: block; width: 100%; height: auto; }

/* Table of contents */
.book-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; width: 100%; }
.book-toc__chapter h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding-bottom: 14px; border-bottom: 1px solid var(--dark); font-size: 26px; }
.book-toc__chapter h3 span { font-family: var(--main-font); font-size: 15px; font-weight: 600; color: var(--red-text); }
.book-toc__chapter h3 small { margin-left: auto; font-family: var(--main-font); font-size: 14px; color: var(--subtitle); }
.book-toc ol { margin: 0; padding: 0; list-style: none; }
.book-toc button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 9px 0; border: 0; background: none; font-family: var(--main-font); font-size: 16px; color: var(--dark); text-align: left; cursor: pointer; }
.book-toc__name { transition: color .3s var(--ease-site); }
.book-toc button:hover .book-toc__name { color: var(--red-text); }
.book-toc__video .icon { width: 15px; height: 15px; color: var(--red); vertical-align: -2px; }
.book-toc__dots { flex: 1; min-width: 20px; border-bottom: 1px dotted #1c1c1c59; transform: translateY(-4px); }
.book-toc__page { font-variant-numeric: tabular-nums; color: var(--subtitle); }

/* Quotes */
.book-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; width: 100%; margin: 30px 0 0; padding: 0; list-style: none; }
.book-quote { display: flex; flex-direction: column; gap: 26px; height: 100%; margin: 0; padding-top: 26px; border-top: 1px solid #f1f4f533; }
.book-quote blockquote { margin: 0; font-family: var(--heading-font); font-size: 23px; line-height: 1.45; color: var(--background); }
.book-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 15px; }
.book-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.book-quote figcaption strong { display: block; font-weight: 600; }
.book-quote a { color: var(--background); border-color: #f1f4f580; }

/* Collectible portrait cards (63 x 88 mm) */
.card-deck { width: 100%; }
.card-deck .chip-row { justify-content: center; margin-bottom: 36px; }
.card-deck__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 26px; margin: 0 0 36px; padding: 0; list-style: none; }
.pcard { perspective: 1400px; }
/* Portrait card (63 x 88 mm ratio, like a playing card). The button is the query container: every size inside
   is in cqw (% of the card width), so a card looks the same in a 4-column grid or alone on a phone.
   max(Npx, ...cqw) keeps the small texts readable on narrow cards. */
.pcard__flip { display: block; width: 100%; aspect-ratio: 63 / 88; container-type: inline-size; padding: 0; border: 0; border-radius: 14px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pcard__flip:focus-visible { outline: 2px solid var(--dark); outline-offset: 5px; }
.pcard__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-out-expo); }
.pcard__flip[aria-pressed="true"] .pcard__inner { transform: rotateY(180deg); }
.pcard__face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px var(--border), 0 22px 40px -24px #1c1c1c80; }
.pcard__face--front { padding: 5cqw; background: var(--surface); }
.pcard__face--front img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 8px; filter: grayscale(100%); transition: filter .8s var(--ease-out-expo); }
.pcard__flip:hover .pcard__face--front img { filter: grayscale(0%); }
.pcard__num { position: absolute; top: 9cqw; left: 9cqw; padding: 1.4cqw 3.4cqw; border-radius: 20px; background: var(--red); color: #fff; font-size: 4.4cqw; font-weight: 600; }
.pcard__brand { position: absolute; top: 9cqw; right: 9cqw; font-size: 4cqw; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px #0008; }
.pcard__name { display: block; padding: 4.5cqw 1cqw 1cqw; }
.pcard__name strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 8.4cqw; line-height: 1.15; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name small { display: block; margin-top: 1cqw; font-size: 4.4cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.pcard__face--back { gap: 5cqw; padding: 9cqw 8cqw; background: var(--dark); color: #f1f4f5cc; transform: rotateY(180deg); }
.pcard__quote { font-family: var(--heading-font); font-size: max(11px, 6.2cqw); line-height: 1.4; color: var(--background); }
.pcard__facts { display: block; }
.pcard__facts > span { display: flex; justify-content: space-between; gap: 3cqw; padding: 2cqw 0; border-top: 1px solid #f1f4f526; font-size: max(9px, 4.6cqw); text-align: right; }
.pcard__facts small { flex: none; font-size: max(8px, 3.6cqw); letter-spacing: .12em; text-transform: uppercase; color: #f1f4f580; text-align: left; }
.pcard__scan { display: flex; align-items: center; gap: 4cqw; margin-top: auto; font-size: max(8px, 4cqw); color: #f1f4f5b3; }
.pcard__scan .qr { flex: none; width: 27cqw; border-radius: 4px; }
/* Container query: on a card narrower than 210px, drop the first fact line so the back does not overflow. */
@container (max-width: 210px) { .pcard__facts > span:first-child { display: none; } }
.pcard__links { margin: 14px 0 0; font-size: 14px; text-align: center; }

/* Team business cards (85 x 55 mm) */
.bcard-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; width: 100%; }
.bcard-form__note { margin: 16px 0 0; font-size: 14px; }
.bcard-form .button-row { margin-top: 26px; }
.bcard-preview { position: sticky; top: 120px; display: grid; gap: 26px; }
.bcard-preview figure { margin: 0; border: 0; border-radius: 0; overflow: visible; }
.bcard-preview figcaption { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--subtitle); }
/* Business card (85 x 55 mm ratio). Query container like .pcard__flip: the preview on screen and the printed
   85 x 55 mm card use the same cqw sizes. print-color-adjust: exact keeps the black and red backgrounds
   when printing (browsers drop backgrounds by default). */
.bcard { position: relative; display: flex; width: 100%; aspect-ratio: 85 / 55; overflow: hidden; border-radius: 12px; container-type: inline-size; box-shadow: 0 0 0 1px var(--border), 0 28px 50px -28px #1c1c1c80; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bcard--front { flex-direction: column; padding: 7% 7% 6% 9.5%; background: var(--surface); color: var(--dark); }
.bcard--front::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2.4%; background: var(--red); }
.bcard__logo { align-self: flex-start; width: auto; height: 7.5cqw; }
.bcard__who { margin-top: auto; }
.bcard__who strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 6.6cqw; line-height: 1.15; color: var(--dark); }
.bcard__who span { display: block; margin-top: 1cqw; font-size: 3.2cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.bcard__lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw 4cqw; margin: 4cqw 0 0; padding: 3.5cqw 0 0; border-top: 1px solid var(--border); list-style: none; font-size: 3.1cqw; color: var(--paragraphs); }
.bcard__lines li { display: flex; align-items: center; gap: 1.6cqw; min-width: 0; padding: 0; line-height: 1.3; }
.bcard__lines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard__lines .icon { width: 3.4cqw; height: 3.4cqw; color: var(--red); }
.bcard--back { align-items: center; justify-content: space-between; gap: 6%; padding: 8% 9%; background: var(--dark); color: var(--background); }
.bcard__brand strong { display: block; font-family: var(--heading-font); font-weight: 400; font-size: 9cqw; line-height: 1.1; color: var(--background); }
.bcard__brand strong::after { content: "."; color: var(--red); }
.bcard__brand span { display: block; max-width: 36cqw; margin-top: 2.4cqw; font-size: 3.4cqw; line-height: 1.4; color: #f1f4f5b3; }
.bcard__scan { display: flex; flex-direction: column; align-items: center; gap: 2cqw; font-size: 2.8cqw; color: #f1f4f5b3; }
.bcard__scan .qr { width: 31cqw; border-radius: 1.5cqw; }
.bcard-sheet { display: none; } /* print sheet, filled by yoca-editions.js, shown only when printing cards */
/* "Noire" finish: both faces black, soft sheen like a soft-touch card */
.bcard--noire { background: linear-gradient(135deg, #222 0%, #111 55%, #0b0b0b 100%); }
.bcard--front.bcard--noire { color: var(--background); }
.bcard--noire .bcard__who strong { color: var(--background); }
.bcard--noire .bcard__who span { color: #ff4d57; }
.bcard--noire .bcard__lines { border-top-color: #f1f4f526; color: #f1f4f5b3; }
.bcard--noire .bcard__lines .icon { color: #ff4d57; }
/* red edge on the back too, on the right so it sits behind the front's left edge once printed recto verso */
.bcard--back.bcard--noire::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2.4%; background: var(--red); }

/* Book teaser (home) */
.book-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 70px; align-items: center; width: 100%; padding: 50px 60px 60px; border-radius: var(--rounding); background: var(--surface); }
.book-teaser .book3d { --w: 210px; --h: 294px; --t: 28px; }
.book-teaser h2 { margin: 0 0 14px; }
.book-teaser p { max-width: 560px; }

@media screen and (max-width: 991px) {
  .editions-hero { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .editions-hero .title-hero { font-size: 64px; }
  .book3d { --w: 250px; --h: 350px; --t: 32px; }
  .book-viewer__stage { gap: 14px; }
  .book-viewer__arrow { width: 46px; height: 46px; }
  .book-toc, .book-quotes { grid-template-columns: 1fr; gap: 36px; }
  .card-deck__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bcard-studio { grid-template-columns: 1fr; gap: 40px; }
  .bcard-preview { position: static; grid-template-columns: 1fr 1fr; order: -1; }
  .book-teaser { grid-template-columns: 1fr; justify-items: center; gap: 40px; padding: 40px 30px; text-align: center; }
  .book-teaser .button-row { justify-content: center; }
}
@media screen and (max-width: 767px) {
  .editions-hero .title-hero { font-size: 54px; }
  .book-viewer__tabs { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -20px 24px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
  .book-viewer__tabs .chip { flex: none; }
  .book-viewer__stage { grid-template-columns: 1fr 1fr; grid-template-areas: "spread spread" "prev next"; }
  .book-viewer__spread { grid-area: spread; grid-template-columns: 1fr; aspect-ratio: auto; }
  .book-viewer__spread::after { display: none; }
  .book-viewer__stage > .book-viewer__arrow:first-child { grid-area: prev; justify-self: start; }
  .book-viewer__arrow--next { grid-area: next; justify-self: end; }
  .book-viewer__bar { flex-wrap: wrap; gap: 12px 20px; }
  .book-viewer__status { flex-basis: 100%; }
  .book-page { padding: 30px 26px 46px; font-size: 15px; }
  .book-page--left { border-radius: 4px 4px 0 0; }
  .book-page--photo { padding: 0; aspect-ratio: 4 / 3; }
  .book-page--chapter { min-height: 240px; }
  .book-page--title { min-height: 260px; }
  .card-deck__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .card-deck .chip-row { justify-content: flex-start; }
  .bcard-preview { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
  .editions-hero .title-hero { font-size: 44px; }
  .book3d { --w: 210px; --h: 294px; --t: 28px; }
  .book-teaser { padding: 34px 20px; }
}
/* Print business cards: yoca-editions.js fills .bcard-sheet (one page of 10 fronts, one page of 10 backs), adds
   body.is-printing-cards, calls window.print() and removes the class on afterprint. While the class is on,
   only the sheet prints: A4 pages (named page "cards"), 2 columns of 85 mm x 5 rows of 55 mm = 10 cards per
   page, centred so the backs line up in long-edge duplex; thin dashed outline = cutting guide.
   Normal printing of the page (without the class) is not affected. */
@media print {
  @page cards { size: A4 portrait; margin: 10mm; }
  body.is-printing-cards > :not(.bcard-sheet), body.is-printing-cards::after { display: none !important; }
  body.is-printing-cards { background: #fff; }
  body.is-printing-cards .bcard-sheet { display: block; }
  .bcard-sheet__page { page: cards; display: grid; grid-template-columns: repeat(2, 85mm); grid-auto-rows: 55mm; justify-content: center; break-after: page; }
  .bcard-sheet__page:last-child { break-after: auto; }
  .bcard-sheet .bcard { width: 85mm; height: 55mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; outline: .1mm dashed #bbb; outline-offset: -.05mm; }
}
/* Reduced motion: pages change without the turning animation. */
@media (prefers-reduced-motion: reduce) {
  .book-viewer__spread .book-page { animation: none !important; }
}

/* ---------- 25. Desktop header with "Explorer" mega menu (992px and up) ----------
   Full-width transparent bar, edge to edge like the live site (same progressive blur layers, no panel):
   logo, Le journal / Vidéos / À propos / Explorer / Contact, FR|EN, search and the red "Partenariat" pill.
   Hovering the bar brings up a light frosted tint; the links stay soft until pointed at.
   Over a dark section (e.g. the black About page) the bar switches to white text (.is-on-dark, yoca-layout.js).
   "Explorer" unfolds a solid sheet under the bar (4 link columns + an advert tile for partner campaigns);
   its layered shadow and the dimmed, blurred page behind separate it from the content.
   Under 992px nothing changes: logo, search, burger and fullscreen menu. */

.nav-desk, .nav-cta, .mega { display: none; }

@media (min-width: 992px) {
  .navbar { border-radius: 0 0 22px 22px; }
  .navbar .menu-button, .navbar .nav-menu { display: none; }
  /* Hover / open surface on ::after (backdrop-filter on .navbar itself would trap position: fixed children). */
  .navbar::after, .navbar:not(.is-open)::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit;
    background: #f7f5f000;
    opacity: 1;
    box-shadow: 0 0 0 0 #1c1c1c00;
    transition: box-shadow .6s var(--ease-out-expo), background-color .5s var(--ease-site);
  }
  .navbar:hover::after, .navbar:focus-within::after { background: #f7f5f073; box-shadow: 0 1px 0 #1c1c1c0f, 0 14px 34px -22px #1c1c1c40; }
  .navbar.is-on-dark:hover::after, .navbar.is-on-dark:focus-within::after { background: #0a0a0a59; box-shadow: 0 1px 0 #ffffff14, 0 14px 34px -22px #000000b3; }
  .navbar.is-mega::after, .navbar.is-mega.is-on-dark::after {
    background: #f7f5f0;
    box-shadow: 0 1px 0 #1c1c1c17, 0 2px 4px #1c1c1c0f, 0 24px 48px -16px #1c1c1c59, 0 60px 120px -30px #1c1c1c66;
  }
  /* Page behind: dimmed and blurred while "Explorer" is open. A click on it closes the panel (yoca-layout.js). */
  .navbar::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: #0d0d0d47;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .45s var(--ease-site);
  }
  .navbar.is-mega::before { opacity: 1; }

  .block-navbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 20px 30px 20px 20px; }
  .block-navbar .brand { justify-self: start; }
  .nav-actions { justify-self: end; gap: 4px; }
  .nav-actions .lang-switch { margin-right: 2px; }

  /* White text over dark sections (Explorer open = light sheet, so dark text again). */
  .navbar.is-on-dark:not(.is-mega) :is(.nav-desk__link, .icon-button) { color: #fff; }
  .navbar.is-on-dark:not(.is-mega) :is(.nav-desk__link, .icon-button):hover { background-color: #ffffff1a; }
  .navbar.is-on-dark:not(.is-mega) .nav-desk__link[aria-current="page"] { border-color: #ffffffb3; background-color: transparent; }
  .navbar.is-on-dark:not(.is-mega) .nav-desk__toggle.is-current { border-color: #ffffff59; }
  .navbar.is-on-dark:not(.is-mega) .lang-switch { border-color: #ffffff38; }
  .navbar.is-on-dark:not(.is-mega) .lang-switch a { color: #fff; }
  .navbar.is-on-dark:not(.is-mega) .lang-switch a[aria-current] { background: #fff; color: var(--dark); }
  .navbar .icon-button, .navbar .lang-switch a, .navbar .lang-switch { transition: color .4s var(--ease-site), background-color .3s var(--ease-site), border-color .4s var(--ease-site); }

  .nav-desk { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; }
  .nav-desk__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 15px;
    border: 1.5px solid transparent; border-radius: 8px;
    background: transparent;
    font-family: var(--main-font); font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--dark);
    opacity: .72;
    cursor: pointer;
    transition: opacity .3s var(--ease-site), color .4s var(--ease-site), background-color .3s var(--ease-site), border-color .3s var(--ease-site);
  }
  .nav-desk__link:hover, .nav-desk__link[aria-current="page"], .nav-desk__toggle.is-current, .nav-desk__toggle[aria-expanded="true"], .navbar:hover .nav-desk__link { opacity: 1; }
  .nav-desk__link:hover { border-color: transparent; background-color: #1c1c1c0f; }
  .nav-desk__link[aria-current="page"], .nav-desk__link[aria-current="page"]:hover { border-color: var(--dark); background-color: transparent; }
  .nav-desk__toggle.is-current { border-color: #1c1c1c40; }
  .nav-desk__toggle[aria-expanded="true"] { background-color: #1c1c1c0f; }
  .nav-desk__toggle svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out-expo); }
  .nav-desk__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  /* Red pill with the text roll of the reference site: the label slides up and its copy comes from below. */
  .nav-cta {
    display: inline-flex; align-items: center; height: 46px; margin-left: 6px; padding: 0 22px;
    overflow: hidden;
    border: 0; border-radius: var(--rounding-buttons);
    background: var(--red); color: #fff;
    font-size: 15px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 16px -8px #f1291e99;
    transition: background-color .3s var(--ease-site), box-shadow .3s var(--ease-site);
  }
  .nav-cta:hover { border: 0; background: #c80511; color: #fff; box-shadow: 0 10px 22px -10px #f1291eb3; }
  .nav-cta__roll { position: relative; display: block; line-height: 46px; transition: transform .6s var(--ease-out-expo); }
  .nav-cta__roll::after { content: attr(data-text); position: absolute; top: 100%; left: 0; }
  .nav-cta:hover .nav-cta__roll, .nav-cta:focus-visible .nav-cta__roll { transform: translateY(-100%); }

  /* Mega panel: 0fr -> 1fr height animation, columns fade in one after the other. */
  .mega { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease-out-expo); }
  .navbar.is-mega .mega { grid-template-rows: 1fr; }
  .mega__clip { min-height: 0; overflow: hidden; }
  .mega__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(250px, 1.35fr); gap: 28px;
    margin: 0 30px 0 45px; padding: 26px 0 30px;
    border-top: 1px solid #1c1c1c14;
  }
  .mega__col, .mega__ad { opacity: 0; transform: translateY(10px); transition: opacity .25s var(--ease-site), transform .25s var(--ease-site); }
  .navbar.is-mega .mega__col, .navbar.is-mega .mega__ad {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease-site) calc(80ms + var(--i) * 50ms), transform .8s var(--ease-out-expo) calc(80ms + var(--i) * 50ms);
  }
  .mega__pill {
    display: inline-block; margin: 0 0 16px; padding: 5px 12px;
    border: 1px solid #1c1c1c4d; border-radius: var(--rounding-buttons);
    font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; color: var(--dark);
  }
  .mega__col ul { list-style: none; margin: 0; padding: 0; }
  .mega__col li { padding: 5px 0; }
  .mega__link {
    border: 0; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--dark);
    text-decoration: underline; text-decoration-color: #1c1c1c40; text-decoration-thickness: 1px; text-underline-offset: 5px;
    transition: color .25s var(--ease-site), text-decoration-color .25s var(--ease-site);
  }
  .mega__link:hover { border: 0; color: var(--red); text-decoration-color: var(--red); }

  /* Advert tile: partner campaign (demo: camouflage visual). */
  .mega__ad {
    display: flex; flex-direction: column; gap: 10px; align-self: start;
    padding: 10px 10px 14px;
    border: 0; border-radius: 16px;
    background: #eae8e2;
    color: var(--dark);
  }
  .mega__ad:hover { border: 0; }
  .mega__ad-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #d9d6ce; }
  .mega__ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
  .mega__ad:hover .mega__ad-media img { transform: scale(1.05); }
  .mega__ad-tag { align-self: flex-start; margin: 0 4px; padding: 3px 9px; border: 1px solid #1c1c1c33; border-radius: var(--rounding-buttons); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtitle); }
  .mega__ad-title { margin: 0 4px; font-family: var(--heading-font); font-size: 18px; line-height: 1.3; }
}

/* Laptops: tighter spacing so the whole bar fits on one line. */
@media (min-width: 992px) and (max-width: 1199px) {
  .block-navbar { gap: 10px; padding: 16px 16px 16px 6px; }
  .block-navbar .brand { margin-left: 0; }
  .nav-desk__link { padding: 9px 10px; font-size: 14px; }
  .nav-cta { padding: 0 16px; font-size: 14px; }
  .nav-actions .lang-switch a { min-width: 30px; padding: 0 6px; }
  .mega__grid { gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(210px, 1.2fr); }
}

@media (prefers-reduced-motion: reduce) {
  .mega, .mega__col, .mega__ad, .navbar::before, .navbar::after, .nav-cta__roll { transition: none !important; }
}
/* The language suggestion steps aside while "Explorer" is open. */
@media (min-width: 992px) {
  body:has(.navbar.is-mega) .lang-banner { opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-site), visibility 0s linear .2s; }
}
