/* ITSS Cameroun — harmonisation visuelle précise du shell public */
:root {
  --navy: #0a1f3c;
  --navy-2: #173557;
  --ink: #10243e;
  --text: #3f5066;
  --muted: #66758a;
  --muted-2: #d4deea;
  --accent: #f36f21;
  --accent-hover: #d85b16;
  --accent-bright: #f36f21;
  --accent-soft: #fff1e8;
  --line: #e1e7f0;
  --line-2: #cbd6e4;
  --sand: #f4f7fb;
  --paper: #f7f9fc;
  --white: #fff;
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --radius: 14px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
html.v2-app { scroll-behavior: smooth; }
html.v2-app body { background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
html#v2app#v2app.v2-app body .itss-public-shell #main-content { box-sizing: border-box; width: min(100%, 1240px); max-width: 1240px !important; margin-inline: auto; padding: 24px 24px 48px !important; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.v2-shell, .v2-shell *, .v2-shell *::before, .v2-shell *::after { box-sizing: border-box; }
.v2-shell { color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.v2-shell .wrap { width: min(calc(100% - 48px), var(--wrap)); max-width: none; margin-inline: auto; padding: 0; }
.v2-shell img { display: block; max-width: 100%; }
.v2-shell .serif, .v2-shell .h1, .v2-shell .h1-page, .v2-shell .h2 { font-family: var(--sans); }
.v2-shell .h1 { max-width: 13ch; font-size: clamp(42px, 5vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.v2-shell .h1-page { font-size: clamp(34px, 3.7vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.v2-shell .h2 { font-size: clamp(27px, 3vw, 38px); font-weight: 700; line-height: 1.16; letter-spacing: -.025em; }
.v2-shell .h3 { font-size: 20px; font-weight: 650; line-height: 1.3; }
.v2-shell .lead { max-width: 62ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text); }
.v2-shell .announce { background: var(--navy); color: #e5ecf5; font-size: 13px; }
.v2-shell .announce .wrap { min-height: 42px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding-block: 5px; text-align: center; }
.v2-shell .announce strong { color: #fff; font-weight: 650; }
.v2-shell .glow-cta { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 600; animation: none; transition: background-color .18s ease, transform .18s ease; }
.v2-shell .glow-cta:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); box-shadow: none; }
.v2-shell .site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 97%); transition: box-shadow .2s ease; }
.v2-shell .site-header .wrap { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; }
.v2-shell .brand { flex: 0 0 auto; gap: 10px; color: var(--navy); }
.v2-shell .brand:hover { color: var(--navy); }
.v2-shell .brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }
.v2-shell .brand-name b { font-size: 16px; font-weight: 700; }
.v2-shell .brand-name small { font-size: 12px; }
.v2-shell .nav { gap: 0; }
.v2-shell .nav > a, .v2-shell .nav-group > button, .v2-shell .nav-group > a.nav-top { min-height: 44px; padding-inline: 9px; font-family: var(--sans); font-size: 14px; }
.v2-shell .nav-panel { z-index: 60; border-color: var(--line); border-radius: 12px; box-shadow: 0 16px 34px rgb(10 31 60 / 12%); }
.v2-shell .header-actions .btn { min-height: 44px; border-radius: 8px; background: var(--accent); font-size: 14px; font-weight: 650; }
.v2-shell .header-actions .btn:hover { background: var(--accent-hover); }
.v2-shell .menu-btn { width: 44px; height: 44px; border-radius: 9px; }
.v2-shell .mobile-nav { box-shadow: 0 12px 24px rgb(10 31 60 / 10%); }
.v2-shell .mobile-nav a { min-height: 48px; padding: 13px 24px; }
.v2-shell .mobile-nav .mn-cta a { min-height: 44px; }
.v2-shell .scroll-progress { height: 2px; background: var(--accent); }
.v2-shell .site-header.scrolled { box-shadow: 0 5px 18px -12px rgb(10 31 60 / 28%); }
.v2-shell .site-footer { padding: 42px 0 18px; background: var(--navy); color: #d4deea; font-size: 14px; }
.v2-shell .foot { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.v2-shell .foot h2 { margin-bottom: 12px; font: 650 14px/1.35 var(--sans); color: #fff; }
.v2-shell .foot ul { gap: 7px; }
.v2-shell .foot a { min-height: 28px; display: inline-flex; align-items: center; color: #d4deea; }
.v2-shell .foot a:hover, .v2-shell .foot-bottom a:hover { color: #fff; }
.v2-shell .foot-bottom { margin-top: 28px; padding-top: 16px; gap: 8px 18px; border-top-color: rgb(255 255 255 / 16%); font-size: 12px; }
.v2-shell .btn { min-height: 46px; border-radius: 8px; font-family: var(--sans); font-weight: 600; }
.v2-shell .btn-primary { background: var(--accent); }
.v2-shell .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 18px -12px rgb(243 111 33 / 70%); }
.v2-shell .btn::after { display: none; }
.v2-shell .btn:hover, .v2-shell .channel:hover, .v2-shell .doc:hover { transform: translateY(-2px); }
.v2-shell .channel, .v2-shell .doc, .v2-shell .feature, .v2-shell .quick a { border-radius: var(--radius); }
.v2-shell .sec { padding-block: clamp(44px, 6vw, 76px); }
.v2-shell .sec-sm { padding-block: clamp(30px, 4vw, 52px); }
.v2-shell .page-hero { padding-block: clamp(24px, 3.3vw, 42px); }
.v2-shell .sec-head { margin-bottom: 28px; }
.v2-shell .grid-2, .v2-shell .grid-hero, .v2-shell .grid-57 { align-items: center; gap: clamp(22px, 3vw, 36px); }
.v2-shell .hero-video { width: min(100%, 560px); justify-self: end; border-radius: var(--radius-lg); box-shadow: 0 16px 34px -24px rgb(10 31 60 / 34%); }
.v2-shell .hero-video .play span.dot { width: 58px; height: 58px; background: var(--accent); }
.v2-shell .hero-fig > img { height: clamp(270px, 31vw, 390px); object-position: center; }
.v2-shell .feature > img { min-height: 0; max-height: 360px; }
.v2-shell .feature > div { padding: clamp(22px, 3vw, 36px); }
.v2-shell .gallery img { height: clamp(180px, 20vw, 250px); }
.v2-shell .panel, .v2-shell .auth-card { border-radius: var(--radius); }
.v2-shell .field input, .v2-shell .field textarea, .v2-shell .field select { min-height: 46px; border-radius: 8px; }
.v2-shell .field input:focus, .v2-shell .field textarea:focus, .v2-shell .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(243 111 33 / 15%); }
.v2-shell .contact-list a:hover { color: var(--accent); }
.v2-shell .reveal.in { filter: none; transform: none; }
.v2-shell .reveal { transform: translateY(16px); filter: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.v2-shell .fx:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -20px rgb(10 31 60 / 45%); }
.v2-shell .fx:hover img { transform: scale(1.02); }
@media (max-width: 1140px) {
  .v2-shell .nav > a, .v2-shell .nav-group > button { padding-inline: 6px; font-size: 13px; }
  .v2-shell .site-header .wrap { gap: 10px; }
  .v2-shell .brand-name small { display: none; }
}
@media (max-width: 960px) {
  .v2-shell .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .v2-shell .site-header .wrap { min-height: 64px; }
  .v2-shell .nav, .v2-shell .header-actions .hide-sm { display: none; }
  .v2-shell .menu-btn { display: inline-flex; }
  .v2-shell .mobile-nav.open { max-height: calc(100dvh - 106px); overflow: auto; }
  .v2-shell .sec { padding-block: 42px; }
  .v2-shell .sec-sm { padding-block: 30px; }
  .v2-shell .page-hero { padding-block: 24px 20px; }
  .v2-shell .grid-2, .v2-shell .grid-hero, .v2-shell .grid-57, .v2-shell .feature { grid-template-columns: minmax(0, 1fr); }
  .v2-shell .grid-2, .v2-shell .grid-hero, .v2-shell .grid-57 { gap: 24px; }
  .v2-shell .hero-video { justify-self: stretch; width: 100%; }
  .v2-shell .hero-fig > img { height: clamp(230px, 45vw, 340px); }
  .v2-shell .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .v2-shell .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .v2-shell .wrap { width: calc(100% - 32px); }
  .v2-shell .announce { font-size: 12px; }
  .v2-shell .announce .wrap { min-height: 0; gap: 5px 10px; padding-block: 7px; }
  .v2-shell .glow-cta { min-height: 32px; padding: 5px 12px; font-size: 13px; }
  .v2-shell .brand img { width: 40px; height: 40px; }
  .v2-shell .site-footer { padding: 30px 0 16px; }
  .v2-shell .foot { gap: 18px 14px; }
  .v2-shell .foot > div:first-child { grid-column: 1 / -1; }
  .v2-shell .foot > div:last-child { grid-column: 1 / -1; }
  .v2-shell .foot-bottom { margin-top: 22px; padding-top: 14px; display: grid; }
  .v2-shell .foot-bottom > span:last-child { line-height: 1.8; }
  .v2-shell .actions .btn { width: 100%; }
  .v2-shell .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-shell .gallery img { height: 170px; }
  .v2-shell .grid-4, .v2-shell .quick, .v2-shell .channels { grid-template-columns: minmax(0, 1fr); }
  .v2-shell .hero-fig > img { height: 230px; }
  .v2-shell .site-footer .wrap { width: calc(100% - 32px); }
}

/* Méga-menu éditorial ITSS : navigation large, stable et accessible. */
.v2-shell .site-header { overflow: visible; }
.v2-shell .site-header > .wrap { position: relative; }
.v2-shell .nav { align-items: center; gap: 2px; }
.v2-shell .nav > .mega-nav-home,
.v2-shell .nav > .mega-nav-contact,
.v2-shell .nav .mega-nav-trigger {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  gap: 7px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--navy); font: 500 14px/1.25 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.v2-shell .nav .mega-nav-trigger svg { width: 14px; height: 14px; transition: transform .18s ease; }
.v2-shell .nav .mega-nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.v2-shell .nav > .mega-nav-home:hover,
.v2-shell .nav > .mega-nav-contact:hover,
.v2-shell .nav .mega-nav-trigger:hover,
.v2-shell .nav .mega-nav-trigger[aria-expanded="true"] { background: var(--sand); color: var(--accent-hover); }
.v2-shell .nav .mega-nav-trigger:focus-visible,
.v2-shell .nav > a:focus-visible,
.v2-shell .itss-mega-panel a:focus-visible,
.v2-shell .mobile-nav a:focus-visible,
.v2-shell .mobile-nav summary:focus-visible { outline: 3px solid rgb(243 111 33 / 55%); outline-offset: 2px; }
.v2-shell .mega-nav-group { display: flex; align-items: center; }
.v2-shell .itss-mega-panel {
  position: absolute; z-index: 65; top: calc(100% + 1px); left: 50%;
  display: grid; grid-template-columns: minmax(190px, .72fr) minmax(390px, 1.55fr) minmax(250px, 1fr);
  gap: 26px; width: min(1120px, calc(100vw - 40px)); min-height: 330px; padding: 28px;
  border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #fff;
  box-shadow: 0 22px 42px -24px rgb(10 31 60 / 27%); opacity: 0; visibility: hidden;
  pointer-events: none; transform: translate(-50%, 8px);
  transition: opacity .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1), visibility .22s;
}
.v2-shell .itss-mega-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.itss-mega-intro { display: flex; flex-direction: column; align-items: flex-start; padding: 3px 2px; }
.itss-mega-eyebrow { margin: 0 0 14px; color: var(--accent-hover); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.itss-mega-intro h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.itss-mega-summary { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; text-align: left; }
.itss-mega-all { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--accent-hover); font-size: 13px; font-weight: 650; text-decoration: none; }
.itss-mega-all span { transition: transform .18s ease; }
.itss-mega-all:hover span { transform: translateX(3px); }
.itss-mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 5px 9px; }
.itss-mega-link { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--navy); text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.itss-mega-link:hover, .itss-mega-link:focus-visible { border-color: var(--line); background: #f7f9fc; }
.itss-mega-link-copy { display: grid; gap: 4px; min-width: 0; }
.itss-mega-link strong { color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.3; }
.itss-mega-link small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.itss-mega-link-arrow { flex: 0 0 auto; color: #b37b1b; font-size: 17px; transition: transform .18s ease; }
.itss-mega-link:hover .itss-mega-link-arrow { transform: translateX(3px); }
.itss-mega-preview { position: relative; align-self: center; width: 100%; margin: 0; overflow: hidden; border-radius: 12px; background: #edf1f6; }
.itss-mega-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.itss-mega-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .24s ease; }
.itss-mega-photo img.is-visible { opacity: 1; }
.itss-mega-preview figcaption { min-height: 38px; padding: 9px 11px; background: #f7f9fc; color: var(--text); font-size: 11px; line-height: 1.35; }
.v2-shell .mobile-nav { padding: 8px 16px 14px; }
.v2-shell .mobile-nav-group { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.v2-shell .mobile-nav-group summary { display: flex; min-height: 49px; align-items: center; justify-content: space-between; padding: 12px 8px; color: var(--navy); font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.v2-shell .mobile-nav-group summary::-webkit-details-marker { display: none; }
.v2-shell .mobile-nav-group summary::after { content: '+'; color: var(--accent-hover); font-size: 20px; font-weight: 400; }
.v2-shell .mobile-nav-group[open] summary::after { content: '−'; }
.v2-shell .mobile-nav-group > a { display: grid; min-height: 52px; gap: 3px; padding: 9px 12px; color: var(--ink); text-decoration: none; }
.v2-shell .mobile-nav-group > a strong { font-size: 14px; font-weight: 600; }
.v2-shell .mobile-nav-group > a small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.v2-shell .mobile-nav .mobile-nav-direct { display: flex; min-height: 49px; align-items: center; padding: 10px 8px; color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; }
.v2-shell .mobile-nav .mn-cta { padding: 12px 8px 2px; }

/* Navigation courte, groupée et lisible sur grand écran comme sur mobile. */
.v2-shell .nav { gap: 2px; }
.v2-shell .nav > a,
.v2-shell .nav-group > button,
.v2-shell .nav-group > a.nav-top { padding-inline: 9px; font-size: 14px; }
.v2-shell .mobile-nav { padding: 8px 16px 14px; }
.v2-shell .mobile-nav-group { border-bottom: 1px solid var(--line); }
.v2-shell .mobile-nav-group > summary {
  display: flex; min-height: 46px; align-items: center; justify-content: space-between;
  padding: 10px 8px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none;
}
.v2-shell .mobile-nav-group > summary::-webkit-details-marker { display: none; }
.v2-shell .mobile-nav-group > summary::after { content: "+"; color: var(--accent-hover); font-size: 20px; font-weight: 400; }
.v2-shell .mobile-nav-group[open] > summary::after { content: "−"; }
.v2-shell .mobile-nav-group > a { padding: 9px 12px 9px 22px; border: 0; font-weight: 400; }
.v2-shell .mobile-nav > a.mobile-nav-direct { min-height: 46px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.v2-shell .mobile-nav .mn-cta { padding: 12px 0 0; }
.v2-shell .mobile-nav .mn-cta a { justify-content: center; }

/* Aligner le texte d’introduction avec le titre et supprimer le décalage vertical des héros. */
.v2-shell .page-hero .grid-2-top { align-items: start; }
.v2-shell .page-hero .grid-2-top > :nth-child(2) { margin-top: 38px; }

@media (max-width: 960px) {
  .v2-shell .page-hero .grid-2-top > :nth-child(2) { margin-top: 0; }
}
@media (max-width: 560px) {
  .v2-shell .mobile-nav { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell *, .v2-shell *::before, .v2-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Centre documentaire, vidéothèque et communauté : layouts de pages publiées */
.v2-shell .community-space-hero,
.v2-shell .cine-hero,
.v2-shell .editorial-hero,
.v2-shell .library-hero {
  padding: 28px 0 34px;
  background: radial-gradient(ellipse at 88% 20%, rgb(243 111 33 / 10%), transparent 34%), linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid #e5eaf0;
}
.v2-shell .community-space-intro,
.v2-shell .cine-hero-row,
.v2-shell .editorial-hero-row,
.v2-shell .library-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: 18px 0 26px; }
.v2-shell .community-space-intro .h1-page,
.v2-shell .cine-hero .h1-page,
.v2-shell .editorial-hero .h1-page,
.v2-shell .library-hero .h1-page { max-width: 780px; margin: 8px 0 14px; font-size: clamp(34px, 4.1vw, 58px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.v2-shell .community-space-intro .lead,
.v2-shell .cine-hero .lead,
.v2-shell .editorial-hero .lead,
.v2-shell .library-hero .lead { max-width: 62ch; margin: 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; }
.v2-shell .community-space-stat { display: grid; grid-template-columns: 58px 1fr; align-items: center; column-gap: 16px; width: min(100%, 310px); margin-left: auto; padding: 20px 22px; border: 1px solid #e2e8ef; border-radius: 18px; background: rgb(255 255 255 / 88%); box-shadow: 0 16px 34px -30px #0b1f3a; }
.v2-shell .community-stat-mark { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff2e9; color: #d95816; font-size: 26px; }
.v2-shell .community-space-stat strong { color: var(--navy); font: 700 28px/1 'Bricolage Grotesque', sans-serif; }
.v2-shell .community-space-stat > span:last-child { color: #738198; font-size: 12px; }
.v2-shell .community-space-tools { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e4e9ef; border-radius: 16px; background: #fff; box-shadow: 0 14px 28px -28px #10243c; }
.v2-shell .community-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid #dfe5ec; border-radius: 11px; background: #fff; color: #8794a4; }
.v2-shell .community-search:focus-within { border-color: #e56a24; box-shadow: 0 0 0 3px rgb(243 111 33 / 10%); }
.v2-shell .community-search input { width: 100%; min-width: 0; min-height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.v2-shell .community-filter-label select { width: 100%; min-height: 46px; padding: 0 32px 0 12px; border: 1px solid #dfe5ec; border-radius: 11px; background: #fff; color: #31445b; font: inherit; font-size: 13px; }
.v2-shell .community-space-tools > .btn { min-height: 46px; white-space: nowrap; }
.v2-shell .community-feed-section { padding-top: 42px; }
.v2-shell .community-feed-heading,
.v2-shell .editorial-section-head,
.v2-shell .library-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.v2-shell .community-feed-heading .h2,
.v2-shell .editorial-section-head .h2,
.v2-shell .library-section-head .h2 { margin: 4px 0 6px; font-size: clamp(24px, 2.6vw, 34px); }
.v2-shell .community-feed-count,
.v2-shell .library-updated { color: #7c899a; font-size: 12px; font-weight: 650; }
.v2-shell .community-feed { display: grid; gap: 12px; }
.v2-shell .community-post { padding: 21px 24px 18px; border: 1px solid #e0e6ee; border-radius: 17px; background: #fff; box-shadow: 0 14px 28px -30px #0b1f3a; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.v2-shell .community-post:hover { transform: translateY(-2px); border-color: #efc5aa; box-shadow: 0 18px 32px -26px rgb(11 31 58 / 25%); }
.v2-shell .community-post-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.v2-shell .community-post-kind,
.v2-shell .community-post-topic,
.v2-shell .community-solved { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: #f3f6f9; color: #617187; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.v2-shell .community-post-kind { background: #fff2e9; color: #bc4d12; }
.v2-shell .community-solved { background: #e9f7f0; color: #20704b; }
.v2-shell .community-post h3 { margin: 0; color: #132a47; font: 700 21px/1.3 'Bricolage Grotesque', sans-serif; }
.v2-shell .community-post-body { max-width: 80ch; margin: 8px 0 16px; color: #586a80; font-size: 15px; line-height: 1.65; }
.v2-shell .community-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 13px; border-top: 1px solid #eef1f5; color: #8490a0; font-size: 11px; }
.v2-shell .community-author { display: inline-flex; align-items: center; gap: 8px; color: #4b5e75; }
.v2-shell .community-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #0d3458, #f36f21); color: #fff; font-size: 12px; font-weight: 800; }
.v2-shell .community-empty,
.v2-shell .cine-empty { display: grid; justify-items: center; gap: 9px; padding: 38px 20px; border: 1px dashed #d7e0e9; border-radius: 17px; background: #fbfcfd; text-align: center; }
.v2-shell .community-empty-mark,
.v2-shell .cine-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff1e8; color: #d95b17; font-size: 22px; font-weight: 700; }
.v2-shell .community-empty h3 { margin: 0; font-size: 17px; }
.v2-shell .community-empty p,
.v2-shell .cine-empty p { margin: 0; color: #718096; font-size: 14px; }
.v2-shell .community-loading,
.v2-shell .library-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 150px; color: #748197; font-size: 13px; }
.v2-shell .community-loader { display: inline-block; width: 18px; height: 18px; border: 2px solid #e5eaf0; border-top-color: #e56a24; border-radius: 50%; animation: itss-loader .8s linear infinite; }
@keyframes itss-loader { to { transform: rotate(360deg); } }
.v2-shell .community-guidelines-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 72px); align-items: center; }
.v2-shell .community-guidelines .lead { max-width: 68ch; font-size: 15px; line-height: 1.65; }
.v2-shell .community-guidelines .actions { margin-top: 18px; }

.v2-shell .cine-hero-row { grid-template-columns: minmax(0, 1fr) 190px; padding-bottom: 18px; }
.v2-shell .cine-hero-mark { display: grid; justify-items: center; align-content: center; width: 152px; height: 132px; margin-left: auto; border: 1px solid #f5c9ac; border-radius: 26px; background: linear-gradient(145deg, #fff, #fff0e6); color: #14304f; box-shadow: 0 20px 40px -34px #0b1f3a; transform: rotate(2deg); }
.v2-shell .cine-hero-mark span { color: #687a8d; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.v2-shell .cine-hero-mark b { color: #d95b17; font: 700 29px/1 'Bricolage Grotesque', sans-serif; letter-spacing: .05em; }
.v2-shell .cine-hero-mark i { margin-top: 7px; color: #f3a26c; font-size: 20px; font-style: normal; }
.v2-shell .cine-toolbar { display: flex; align-items: center; gap: 14px; max-width: 680px; }
.v2-shell .cine-toolbar .community-search { flex: 1; }
.v2-shell .cine-count { color: #728095; font-size: 12px; font-weight: 650; white-space: nowrap; }
.v2-shell .cine-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 22px; align-items: start; }
.v2-shell .cine-feature,
.v2-shell .cine-rail { overflow: hidden; border: 1px solid #e1e7ef; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -36px #0b1f3a; }
.v2-shell .cine-player-shell { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 40%, #173d65, #081a31 74%); }
.v2-shell .cine-player-shell video { display: block; width: 100%; height: 100%; object-fit: contain; background: #07182d; }
.v2-shell .cine-player-shell video[hidden] { display: none; }
.v2-shell .cine-placeholder { display: grid; justify-items: center; gap: 10px; color: #fff; text-align: center; }
.v2-shell .cine-placeholder[hidden] { display: none; }
.v2-shell .cine-placeholder > strong { font: 700 21px 'Bricolage Grotesque', sans-serif; }
.v2-shell .cine-placeholder > span:last-child { color: #b9c8d7; font-size: 13px; }
.v2-shell .cine-play { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; background: #f36f21; color: #fff; font-size: 19px; box-shadow: 0 0 0 9px rgb(243 111 33 / 16%); }
.v2-shell .cine-current { padding: 20px 22px 23px; }
.v2-shell .cine-current h2 { margin: 5px 0 8px; color: #142b48; font: 700 clamp(20px, 2.3vw, 28px)/1.2 'Bricolage Grotesque', sans-serif; }
.v2-shell .cine-current > p:last-child { margin: 0; color: #69798e; font-size: 14px; line-height: 1.6; }
.v2-shell .cine-rail { padding: 18px; }
.v2-shell .cine-rail-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v2-shell .cine-rail-head .h3 { margin: 3px 0 0; color: #142b48; font-size: 20px; }
.v2-shell .cine-rail-head > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 99px; background: #f3f6f9; color: #5e6d82; font-size: 11px; font-weight: 700; }
.v2-shell .cine-list { display: grid; gap: 8px; }
.v2-shell .cine-video-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) 18px; align-items: center; gap: 11px; width: 100%; padding: 9px; border: 1px solid transparent; border-radius: 13px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.v2-shell .cine-video-item:hover,
.v2-shell .cine-video-item.is-active { border-color: #f0c4a7; background: #fff8f3; }
.v2-shell .cine-video-item:hover { transform: translateX(2px); }
.v2-shell .cine-video-thumb { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 16 / 10; border-radius: 9px; background: radial-gradient(circle at 76% 18%, rgb(243 111 33 / 60%), transparent 34%), linear-gradient(140deg, #0b1f3a, #14536b); color: #fff; }
.v2-shell .cine-video-thumb > span { font-size: 16px; }
.v2-shell .cine-video-thumb > b { font-size: 9px; letter-spacing: .13em; }
.v2-shell .cine-video-item-copy { display: grid; min-width: 0; gap: 4px; }
.v2-shell .cine-video-item-copy .eyebrow { overflow: hidden; color: #c15b20; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.v2-shell .cine-video-item-copy strong { display: -webkit-box; overflow: hidden; color: #17304f; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v2-shell .cine-video-item-copy small { color: #8995a4; font-size: 10px; }
.v2-shell .cine-item-arrow { color: #c7642a; font-size: 18px; }
.v2-shell .cine-empty { padding: 25px 15px; }
.v2-shell .cine-empty small { color: #8793a2; font-size: 11px; }
.v2-shell .cine-bottom,
.v2-shell .editorial-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.v2-shell .cine-bottom .h2,
.v2-shell .editorial-cta .h2 { max-width: 620px; margin: 6px 0 0; font-size: clamp(22px, 2.8vw, 34px); }

.v2-shell .editorial-hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr); }
.v2-shell .editorial-listing { padding-top: 42px; }
.v2-shell .editorial-section-head > span { color: #8692a0; font-size: 12px; }
.v2-shell .editorial-feature-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); overflow: hidden; border: 1px solid #e0e6ed; border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 22px 42px -36px #10243c; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.v2-shell .editorial-feature-card:hover { transform: translateY(-3px); border-color: #edc1a3; box-shadow: 0 28px 48px -35px rgb(16 36 60 / 32%); }
.v2-shell .editorial-feature-image { position: relative; min-height: 310px; overflow: hidden; background: #e8edf2; }
.v2-shell .editorial-feature-image img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.25,1); }
.v2-shell .editorial-feature-card:hover .editorial-feature-image img { transform: scale(1.035); }
.v2-shell .editorial-image-label { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 99px; background: rgb(11 31 58 / 76%); color: #fff; font-size: 10px; font-weight: 700; }
.v2-shell .editorial-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 4vw, 46px); }
.v2-shell .editorial-feature-copy h2 { margin: 7px 0 12px; color: #142b48; font: 700 clamp(22px, 2.5vw, 32px)/1.18 'Bricolage Grotesque', sans-serif; text-wrap: balance; }
.v2-shell .editorial-feature-copy > p:not(.eyebrow) { max-width: 60ch; color: #69798c; font-size: 14px; line-height: 1.7; }
.v2-shell .editorial-read { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #c45116; font-size: 13px; font-weight: 750; }
.v2-shell .editorial-read b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff0e6; font-size: 16px; transition: transform .2s ease; }
.v2-shell .editorial-feature-card:hover .editorial-read b { transform: translateX(3px); }
.v2-shell .editorial-footnote { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e5e9ef; border-radius: 12px; background: #fbfcfd; color: #768498; font-size: 12px; }
.v2-shell .editorial-footnote p { margin: 0; }
.v2-shell .editorial-footnote-icon { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #eef3f7; color: #53667e; font-weight: 800; }

.v2-shell .library-hero-row { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); padding: 20px 0 15px; }
.v2-shell .library-hero-note { display: flex; align-items: center; gap: 15px; max-width: 470px; margin-left: auto; padding: 19px 20px; border: 1px solid #e6eaf0; border-radius: 16px; background: rgb(255 255 255 / 92%); box-shadow: 0 16px 36px -34px #0b1f3a; }
.v2-shell .library-note-icon { display: grid; place-items: center; flex: 0 0 52px; height: 60px; border-radius: 11px 15px 12px 12px; background: linear-gradient(150deg, #fff0e4, #ffe4d1); color: #bf4d13; font-size: 11px; font-weight: 850; letter-spacing: .08em; box-shadow: inset 0 -4px 0 rgb(193 81 22 / 12%); }
.v2-shell .library-hero-note strong { color: #17304f; font: 700 16px 'Bricolage Grotesque', sans-serif; }
.v2-shell .library-hero-note p { margin: 5px 0 0; color: #728096; font-size: 12px; line-height: 1.55; }
.v2-shell .library-catalogue { padding-top: 40px; }
.v2-shell .library-section-head { margin-bottom: 16px; }
.v2-shell .library-updated { margin: 0 0 5px; }
.v2-shell .lib-tools { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.5fr); align-items: center; gap: 12px 18px; margin-bottom: 18px; padding: 13px; border: 1px solid #e2e8ef; border-radius: 15px; background: #f9fbfd; }
.v2-shell .lib-search { min-height: 46px; border-radius: 11px; }
.v2-shell .lib-search input { min-height: 44px; font-size: 13px; }
.v2-shell .lib-tools .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.v2-shell .lib-tools .chip { min-height: 34px; padding: 7px 11px; border: 1px solid #e0e6ed; border-radius: 999px; background: #fff; color: #63738a; font-size: 11px; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.v2-shell .lib-tools .chip:hover { transform: translateY(-1px); border-color: #edc3a6; color: #ba4c15; }
.v2-shell .lib-tools .chip.is-on { border-color: #f4d0b8; background: #fff1e7; color: #bd4e15; }
.v2-shell .lib-tools [data-lib-count] { grid-column: 1 / -1; margin: 0; color: #768397; font-size: 11px; }
.v2-shell .library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
.v2-shell .lib-card { overflow: hidden; min-width: 0; border: 1px solid #e1e7ee; border-radius: 16px; background: #fff; box-shadow: 0 16px 32px -30px #0b1f3a; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.v2-shell .lib-card:hover { transform: translateY(-3px); border-color: #efc3a5; box-shadow: 0 23px 38px -30px rgb(11 31 58 / 32%); }
.v2-shell .lib-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; margin: 14px 14px 0; overflow: hidden; padding: 16px; border-radius: 12px; background: radial-gradient(circle at 85% 15%, rgb(244 134 74 / 58%), transparent 31%), linear-gradient(137deg, #0b1f3a 0%, #123d61 70%, #1a6075 100%); color: #fff; isolation: isolate; }
.v2-shell .lib-cover::before { position: absolute; z-index: -1; right: -35px; bottom: -84px; width: 210px; height: 210px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; content: ''; box-shadow: 0 0 0 17px rgb(255 255 255 / 5%), 0 0 0 35px rgb(255 255 255 / 4%); }
.v2-shell .lib-cover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dce8f3; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.v2-shell .lib-cover-type { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 11px; background: rgb(255 255 255 / 12%); color: #fff1e8; font-size: 10px; font-weight: 850; }
.v2-shell .lib-cover-title { display: -webkit-box; max-width: 90%; overflow: hidden; color: #fff; font: 700 20px/1.18 'Bricolage Grotesque', sans-serif; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.v2-shell .lib-cover-foot { color: #bdcfe0; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.v2-shell .lib-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 17px 18px; }
.v2-shell .lib-card-category { margin: 0 0 6px; color: #c45a1d; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.v2-shell .lib-card h3 { margin: 0; color: #152c49; font: 700 17px/1.3 'Bricolage Grotesque', sans-serif; text-wrap: pretty; }
.v2-shell .lib-card-description { min-height: 42px; margin: 7px 0 12px; color: #6b7b8f; font-size: 12px; line-height: 1.6; }
.v2-shell .lib-card-meta { display: flex; align-items: center; gap: 8px; margin: auto 0 13px; color: #8591a0; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.v2-shell .lib-card .btn { min-height: 40px; justify-content: center; width: 100%; }
.v2-shell .lib-empty { grid-column: 1 / -1; margin: 0; padding: 38px 22px; border: 1px dashed #d8e0e9; border-radius: 16px; background: #fbfcfd; color: #68798e; text-align: center; }

@media (max-width: 900px) {
  .v2-shell .community-space-intro,
  .v2-shell .editorial-hero-row,
  .v2-shell .library-hero-row { grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr); gap: 26px; }
  .v2-shell .community-space-tools { grid-template-columns: minmax(0, 1fr) minmax(165px, .72fr); }
  .v2-shell .community-space-tools > .btn { grid-column: 1 / -1; justify-self: start; }
  .v2-shell .cine-layout { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .8fr); gap: 14px; }
  .v2-shell .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .v2-shell .community-space-hero,
  .v2-shell .cine-hero,
  .v2-shell .editorial-hero,
  .v2-shell .library-hero { padding: 20px 0 24px; }
  .v2-shell .community-space-intro,
  .v2-shell .cine-hero-row,
  .v2-shell .editorial-hero-row,
  .v2-shell .library-hero-row { grid-template-columns: 1fr; gap: 17px; padding: 12px 0 18px; }
  .v2-shell .community-space-intro .h1-page,
  .v2-shell .cine-hero .h1-page,
  .v2-shell .editorial-hero .h1-page,
  .v2-shell .library-hero .h1-page { font-size: clamp(32px, 9vw, 43px); }
  .v2-shell .community-space-stat { width: 100%; margin-left: 0; padding: 13px 15px; }
  .v2-shell .community-space-tools { grid-template-columns: 1fr; gap: 8px; padding: 9px; }
  .v2-shell .community-space-tools > .btn { grid-column: auto; width: 100%; justify-content: center; }
  .v2-shell .community-feed-section { padding-top: 30px; }
  .v2-shell .community-feed-heading,
  .v2-shell .editorial-section-head,
  .v2-shell .library-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .v2-shell .community-post { padding: 17px 16px 15px; border-radius: 14px; }
  .v2-shell .community-post h3 { font-size: 18px; }
  .v2-shell .community-post-body { font-size: 13px; }
  .v2-shell .community-post-meta { gap: 9px 12px; }
  .v2-shell .community-guidelines-inner { grid-template-columns: 1fr; gap: 14px; }
  .v2-shell .community-guidelines .actions { flex-wrap: wrap; margin-top: 14px; }
  .v2-shell .cine-hero-mark { position: absolute; right: 20px; top: 84px; width: 68px; height: 64px; border-radius: 14px; opacity: .9; }
  .v2-shell .cine-hero-mark span { font-size: 7px; }
  .v2-shell .cine-hero-mark b { font-size: 15px; }
  .v2-shell .cine-hero-mark i { margin-top: 0; font-size: 12px; }
  .v2-shell .cine-hero-row > div:first-child { padding-right: 50px; }
  .v2-shell .cine-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .v2-shell .cine-count { padding-left: 3px; }
  .v2-shell .cine-layout { grid-template-columns: 1fr; }
  .v2-shell .cine-rail { padding: 14px; }
  .v2-shell .cine-video-item { grid-template-columns: 68px minmax(0, 1fr) 16px; gap: 9px; padding: 7px; }
  .v2-shell .editorial-feature-card { grid-template-columns: 1fr; border-radius: 15px; }
  .v2-shell .editorial-feature-image,
  .v2-shell .editorial-feature-image img { min-height: 210px; max-height: 255px; }
  .v2-shell .editorial-feature-copy { padding: 20px; }
  .v2-shell .editorial-footnote { align-items: flex-start; }
  .v2-shell .editorial-cta,
  .v2-shell .cine-bottom { align-items: flex-start; flex-direction: column; }
  .v2-shell .library-hero-note { max-width: none; margin: 0; padding: 14px; }
  .v2-shell .library-catalogue { padding-top: 27px; }
  .v2-shell .lib-tools { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .v2-shell .lib-tools .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: thin; }
  .v2-shell .lib-tools .chip { flex: 0 0 auto; }
  .v2-shell .lib-tools [data-lib-count] { grid-column: auto; }
  .v2-shell .library-grid { grid-template-columns: 1fr; gap: 11px; }
  .v2-shell .lib-cover { min-height: 155px; }
  .v2-shell .lib-cover-title { font-size: 18px; }
  .v2-shell .lib-card-description { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .community-post,
  .v2-shell .cine-video-item,
  .v2-shell .editorial-feature-card,
  .v2-shell .editorial-feature-image img,
  .v2-shell .lib-card { transition-duration: .01ms !important; }
}

/* Contact: keep the public page informative and open the form only on demand. */
.contact-hero-lead { padding-top: 8px; }
.contact-overview { padding-block: 34px 56px; }
.contact-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: stretch; gap: 24px; }
.contact-details-card { min-width: 0; border-radius: 12px; padding: clamp(22px, 3vw, 34px); }
.contact-details-card h2 { margin: 0 0 18px; color: #fff; font-size: 20px; }
.contact-details-card .contact-list { margin: 0; }
.contact-details-card .contact-list > div { grid-template-columns: minmax(90px, .36fr) minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.contact-details-card .contact-list a { color: #f0b48c; }
.contact-form-launch { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(22px, 3vw, 34px); }
.contact-form-launch .eyebrow { color: var(--accent-hover); }
.contact-form-launch h2 { max-width: 18ch; margin: 8px 0 10px; color: var(--navy); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; }
.contact-form-launch > p:not(.contact-privacy-note) { max-width: 48ch; margin: 0 0 20px; color: var(--text); }
.contact-form-launch .btn { gap: 12px; }
.contact-privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.footer-description { max-width: 340px; margin-top: 16px; }
.footer-brand { color: #fff; }
.footer-brand .brand-name b { color: #fff; }
.footer-brand .brand-name small { color: var(--muted-2); }
@media (max-width: 760px) {
  .contact-overview { padding-block: 24px 36px; }
  .contact-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Ajustements de densite et de proportions pour toutes les pages publiques. */
.v2-shell .sec { padding-block: clamp(40px, 4.8vw, 62px); }
.v2-shell .sec-sm { padding-block: clamp(26px, 3.2vw, 40px); }
.v2-shell .page-hero { padding-block: clamp(24px, 2.8vw, 34px); }
.v2-shell .sec-head { margin-bottom: 22px; }
.v2-shell .grid-2,
.v2-shell .grid-hero,
.v2-shell .grid-57,
.v2-shell .feature { align-items: center; gap: clamp(20px, 2.8vw, 32px); }
.v2-shell .h1 { max-width: 16ch; font-size: clamp(38px, 4.35vw, 56px); line-height: 1.05; }
.v2-shell .h1-page { max-width: 20ch; }
.v2-shell .hero-video { width: min(100%, 560px); aspect-ratio: 16 / 9; }
.v2-shell .story img { height: clamp(176px, 19vw, 232px); }
.v2-shell .feature > img { height: 100%; max-height: 320px; }
.v2-shell .hero-fig > img { height: clamp(250px, 29vw, 350px); }
.v2-shell .gallery img { height: clamp(174px, 18vw, 224px); }
.v2-shell main img[style*="height:520px"],
.v2-shell main img[style*="height: 520px"] { height: clamp(238px, 28vw, 350px) !important; object-fit: cover; }
.v2-shell main .grid-57 > div[style*="display:grid"] img { height: clamp(210px, 26vw, 330px) !important; object-fit: cover; }
.v2-shell .btn { min-height: 44px; padding-block: 10px; border-radius: 8px; }
.v2-shell .actions { flex-wrap: wrap; gap: 10px 12px; }
.v2-shell main .grid-57 p:not(.eyebrow),
.v2-shell main .feature p:not(.eyebrow) { text-align: justify; text-justify: inter-word; }
.v2-shell .site-footer { padding: 26px 0 12px; font-size: 13px; line-height: 1.42; }
.v2-shell .foot { gap: 20px 24px; }
.v2-shell .foot h2 { margin-bottom: 8px; }
.v2-shell .foot ul { gap: 3px; }
.v2-shell .foot a { min-height: 23px; }
.v2-shell .foot-bottom { margin-top: 18px; padding-top: 12px; }

.v2-shell .home-hero { padding-block: clamp(26px, 3vw, 38px); }
.v2-shell .home-hero .grid-hero { gap: clamp(24px, 3.4vw, 42px); }
.v2-shell .home-hero-lead { max-width: 56ch; margin-top: 20px; }
.v2-shell .home-hero-actions { margin-top: 24px; }
.v2-shell .home-hero .trust { margin-top: 18px; }

@media (max-width: 960px) {
  .v2-shell .sec { padding-block: 38px; }
  .v2-shell .sec-sm { padding-block: 26px; }
  .v2-shell .page-hero { padding-block: 22px 20px; }
  .v2-shell .grid-2, .v2-shell .grid-hero, .v2-shell .grid-57, .v2-shell .feature { gap: 22px; }
  .v2-shell .hero-video { width: 100%; }
  .v2-shell .story img { height: clamp(176px, 30vw, 240px); }
  .v2-shell .hero-fig > img { height: clamp(220px, 42vw, 320px); }
  .v2-shell .feature > img { max-height: 300px; }
  .v2-shell .home-hero { padding-block: 24px; }
  .v2-shell .site-footer { padding: 24px 0 12px; }
}
@media (max-width: 560px) {
  .v2-shell .sec { padding-block: 32px; }
  .v2-shell .sec-sm { padding-block: 22px; }
  .v2-shell .home-hero { padding-block: 22px; }
  .v2-shell .home-hero .h1 { max-width: 17ch; font-size: clamp(36px, 10vw, 44px); }
  .v2-shell .home-hero .hero-video { margin-top: 2px; }
  .v2-shell .home-hero-actions { margin-top: 20px; }
  .v2-shell .story img { height: 176px; }
  .v2-shell .feature > img { max-height: 230px; }
  .v2-shell .grid-57 > div[style*="display:grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .v2-shell main .grid-57 > div[style*="display:grid"] img { height: 180px !important; }
  .v2-shell .site-footer { padding: 22px 0 10px; }
  .v2-shell .foot-bottom { margin-top: 14px; padding-top: 10px; }
}

/* Derniers réglages communs après les règles héritées du thème historique. */
.v2-shell .site-footer { padding: 18px 0 9px; font-size: 13px; line-height: 1.36; }
.v2-shell .foot { gap: 14px 20px; }
.v2-shell .foot h2 { margin-bottom: 5px; font-size: 13px; }
.v2-shell .foot ul { gap: 1px; }
.v2-shell .foot a { min-height: 18px; line-height: 1.28; }
.v2-shell .footer-description,
.v2-shell .foot > div:first-child > p { max-width: 300px; margin-top: 9px !important; line-height: 1.38; }
.v2-shell .foot-bottom { margin-top: 11px; padding-top: 8px; gap: 6px 14px; font-size: 11px; }
@media (max-width: 960px) {
  .v2-shell .site-footer { padding: 16px 0 8px; }
  .v2-shell .foot { gap: 12px 18px; }
  .v2-shell .foot-bottom { margin-top: 10px; padding-top: 8px; }
}
@media (max-width: 560px) {
  .v2-shell .site-footer { padding: 14px 0 8px; }
  .v2-shell .foot { gap: 10px 12px; }
  .v2-shell .foot > div:nth-child(2) ul,
  .v2-shell .foot > div:nth-child(3) ul,
  .v2-shell .foot > div:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .v2-shell .footer-description,
  .v2-shell .foot > div:first-child > p { display: none; }
  .v2-shell .foot-bottom { margin-top: 9px; padding-top: 8px; gap: 5px; }
  .v2-shell .foot-bottom > span:last-child { line-height: 1.5; }
}



/* Finition des contenus existants : lecture plus nette, composition resserree. */
.v2-shell .page-hero .grid-2-top { align-items: center; }
.v2-shell .page-hero .grid-2-top > :nth-child(2) { margin-top: 0; }
.v2-shell .page-hero .grid-2-top > * { min-width: 0; }
.v2-shell main p.plain,
.v2-shell main .feature p:not(.eyebrow),
.v2-shell main .story p:not(.eyebrow),
.v2-shell main .grid-57 p:not(.eyebrow) {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.v2-shell main p.plain { line-height: 1.58; }
.v2-shell .story,
.v2-shell .channel,
.v2-shell .doc,
.v2-shell .quick a,
.v2-shell .feature {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.v2-shell .story:hover,
.v2-shell .channel:hover,
.v2-shell .doc:hover,
.v2-shell .quick a:hover,
.v2-shell .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(10 31 60 / 9%);
}
.v2-shell .btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.v2-shell .btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgb(10 31 60 / 12%); }
.v2-shell :focus-visible { outline: 2px solid #d06421; outline-offset: 3px; }
@media (max-width: 960px) {
  .v2-shell .page-hero .grid-2-top { align-items: start; }
}
@media (max-width: 560px) {
  .v2-shell main p.plain,
  .v2-shell main .feature p:not(.eyebrow),
  .v2-shell main .story p:not(.eyebrow),
  .v2-shell main .grid-57 p:not(.eyebrow) { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .story, .v2-shell .channel, .v2-shell .doc, .v2-shell .quick a,
  .v2-shell .feature, .v2-shell .btn { transition-duration: .01ms !important; }
  .v2-shell .story:hover, .v2-shell .channel:hover, .v2-shell .doc:hover,
  .v2-shell .quick a:hover, .v2-shell .feature:hover, .v2-shell .btn:hover { transform: none; }
}


/* Unique point d’entrée catalogue et alignement responsive de l’en-tête. */
.v2-shell .header-actions { display:flex; flex:0 0 auto; align-items:center; gap:9px; }
.v2-shell .mega-catalogue-cta {
  display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:8px;
  padding:0 14px; border:1px solid var(--accent); border-radius:8px;
  background:var(--accent); color:#fff; font:650 14px/1.2 var(--sans); text-decoration:none;
  white-space:nowrap; transition:background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.v2-shell .mega-catalogue-cta::after { content:"↗"; font-size:15px; line-height:1; }
.v2-shell .mega-catalogue-cta:hover { border-color:var(--accent-hover); background:var(--accent-hover); color:#fff; transform:translateY(-1px); }
.v2-shell .mega-catalogue-cta:focus-visible { outline:3px solid rgb(243 111 33 / 42%); outline-offset:3px; }
.v2-shell .itss-mega-panel { max-height:calc(100dvh - 104px); overflow:auto; }
@media (min-width:1101px) and (max-width:1220px) {
  .v2-shell .itss-mega-panel { grid-template-columns:minmax(170px,.68fr) minmax(330px,1.4fr) minmax(220px,.92fr); gap:18px; padding:22px; }
}
@media (max-width:1100px) {
  .v2-shell .site-header .wrap { gap:8px; }
  .v2-shell .nav { display:none !important; }
  .v2-shell .header-actions .hide-sm { display:none !important; }
  .v2-shell .menu-btn { display:inline-flex !important; }
  .v2-shell .itss-mega-panel { display:none !important; }
  .v2-shell .mega-catalogue-cta { min-height:42px; }
}
@media (max-width:560px) {
  .v2-shell .site-header > .wrap { gap:6px; }
  .v2-shell .brand { gap:7px; min-width:0; }
  .v2-shell .brand img { width:38px; height:38px; }
  .v2-shell .brand-name b { font-size:14px; }
  .v2-shell .brand-name small { display:none; }
  .v2-shell .header-actions { gap:6px; }
  .v2-shell .mega-catalogue-cta { min-height:38px; padding-inline:10px; border-radius:7px; font-size:12px; }
  .v2-shell .mega-catalogue-cta::after { font-size:13px; }
  .v2-shell .menu-btn { width:38px; height:38px; }
  .v2-shell .mobile-nav.open { max-height:calc(100dvh - 104px); }
}
@media (max-width:360px) {
  .v2-shell .brand img { width:34px; height:34px; }
  .v2-shell .brand-name b { font-size:13px; }
  .v2-shell .mega-catalogue-cta { padding-inline:8px; font-size:11.5px; }
  .v2-shell .header-actions { gap:5px; }
  .v2-shell .menu-btn { width:36px; height:36px; }
}

/* Formulaires publics : feuille unique inspirée du modèle fourni. */
.v2-shell .sec:has(#contact-form),
.v2-shell .sec.auth { background: var(--sand); }
.v2-shell form#contact-form,
.v2-shell form.auth-card,
.v2-shell form.review-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.v2-shell form#contact-form { padding: clamp(20px, 3vw, 36px); }
.v2-shell form.auth-card { max-width: 560px; padding: clamp(22px, 3vw, 36px); }
.v2-shell .form .field input,
.v2-shell .form .field textarea,
.v2-shell .form .field select,
.v2-shell .auth-card input {
  min-height: 46px;
  border-radius: 8px;
  border-color: #8a929d;
}
.v2-shell .form .field textarea { min-height: 128px; }
.v2-shell .form .field input:focus,
.v2-shell .form .field textarea:focus,
.v2-shell .form .field select:focus,
.v2-shell .auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(243 111 33 / 16%);
}
@media (max-width: 700px) {
  .v2-shell form#contact-form,
  .v2-shell form.auth-card,
  .v2-shell form.review-form { padding: 18px; }
  .v2-shell .form .row-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .v2-shell .form { gap: 16px; }
  .v2-shell .form .field label,
  .v2-shell .auth-card label { font-size: 14px; }
  .v2-shell .form button[type="submit"],
  .v2-shell .auth-card button[type="submit"] { width: 100%; min-height: 46px; }
}

/* Barre de navigation éditoriale et contrastes adaptatifs. */
.v2-shell .announce { position: relative; overflow: hidden; isolation: isolate; background: #08274b; color: #f7f9fd; }
.v2-shell .announce::before,
.v2-shell .announce::after { position: absolute; z-index: -1; width: 420px; height: 170px; border: 1px solid rgb(243 111 33 / 20%); border-radius: 50%; content: ""; pointer-events: none; }
.v2-shell .announce::before { top: -128px; left: 3%; transform: rotate(-12deg); }
.v2-shell .announce::after { top: -135px; right: 4%; transform: rotate(14deg); }
.v2-shell .announce .wrap { position: relative; min-height: 48px; padding-inline: 36px; }
.v2-shell .announce > .wrap > span { color: #f3f6fb; }
.v2-shell .announce-mark { display: inline-grid; width: 19px; height: 19px; margin-inline-end: 8px; place-items: center; color: #ff8b32; vertical-align: -4px; }
.v2-shell .announce-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-shell .announce strong { color: #fff; }
.v2-shell .announce-close { position: absolute; top: 50%; right: 0; display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #f7f9fd; cursor: pointer; }
.v2-shell .announce-close:hover { background: rgb(255 255 255 / 12%); }
.v2-shell .announce-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.v2-shell .announce[hidden] { display: none !important; }

.v2-shell .site-header { --header-ink: #0b2341; --header-muted: #52647b; --header-border: #e1e7f0; position: sticky; top: 0; z-index: 50; overflow: visible; border-bottom-color: var(--header-border); background: rgb(255 255 255 / 96%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.v2-shell .site-header[data-tone="dark"] { --header-ink: #f7f9fd; --header-muted: #d2dceb; --header-border: rgb(255 255 255 / 14%); background: rgb(7 25 47 / 94%); }
.v2-shell .site-header .wrap { min-height: 78px; gap: clamp(10px, 1.4vw, 22px); }
.v2-shell .site-header > .wrap { position: relative; }
.v2-shell .site-header .brand,
.v2-shell .site-header .brand:hover,
.v2-shell .site-header .nav > .mega-nav-home,
.v2-shell .site-header .nav > .mega-nav-contact,
.v2-shell .site-header .nav .mega-nav-trigger { color: var(--header-ink); }
.v2-shell .site-header .brand-name small { color: var(--header-muted); }
.v2-shell .nav { flex: 1 1 auto; justify-content: center; gap: 4px; }
.v2-shell .nav > .mega-nav-home,
.v2-shell .nav > .mega-nav-contact,
.v2-shell .nav .mega-nav-trigger { min-height: 48px; padding-inline: clamp(9px, 1.15vw, 16px); border-radius: 10px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.v2-shell .nav .mega-nav-trigger[aria-expanded="true"],
.v2-shell .nav .mega-nav-home[aria-current="page"] { background: #fff2e9; color: #b94a0c; }
.v2-shell .site-header[data-tone="dark"] .nav .mega-nav-trigger[aria-expanded="true"],
.v2-shell .site-header[data-tone="dark"] .nav .mega-nav-home[aria-current="page"] { background: rgb(255 255 255 / 14%); color: #fff; }
.v2-shell .mega-nav-group { position: relative; }
.v2-shell .mega-nav-group.is-active::after { position: absolute; z-index: 66; bottom: -8px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); border-radius: 2px; background: #fff; content: ""; }
.v2-shell .header-actions { gap: 10px; }
.v2-shell .nav-search-toggle { display: inline-grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid var(--header-border); border-radius: 50%; background: rgb(129 150 173 / 9%); color: var(--header-ink); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.v2-shell .nav-search-toggle:hover,
.v2-shell .nav-search-toggle[aria-expanded="true"] { transform: translateY(-1px); border-color: rgb(243 111 33 / 38%); background: #fff2e9; color: #b94a0c; }
.v2-shell .site-header[data-tone="dark"] .nav-search-toggle:hover,
.v2-shell .site-header[data-tone="dark"] .nav-search-toggle[aria-expanded="true"] { background: rgb(255 255 255 / 15%); color: #fff; }
.v2-shell .nav-search-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.v2-shell .mega-catalogue-cta { min-height: 46px; padding-inline: 16px; border-radius: 9px; background: transparent; color: #c64f12; font-size: 14px; font-weight: 650; }
.v2-shell .mega-catalogue-cta::after { display: none; }
.v2-shell .mega-catalogue-icon { width: 19px; height: 19px; color: currentColor; }
.v2-shell .mega-catalogue-arrow { width: 16px; height: 16px; color: currentColor; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.v2-shell .mega-catalogue-cta:hover .mega-catalogue-arrow { transform: translate(2px, -2px); }
.v2-shell .member-cta-icon { flex: 0 0 18px; width: 18px; height: 18px; color: currentColor; }
.v2-shell .header-actions > .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.v2-shell .mobile-nav .mn-cta .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.v2-shell .mega-catalogue-cta:hover { background: #fff2e9; color: #a93f09; }
.v2-shell .site-header[data-tone="dark"] .mega-catalogue-cta { border-color: #ff9b61; color: #fff; }
.v2-shell .site-header[data-tone="dark"] .mega-catalogue-cta:hover { background: rgb(255 255 255 / 14%); color: #fff; }
.v2-shell .header-actions > .btn-primary { min-height: 46px; padding-inline: 18px; border-radius: 9px; }
.v2-shell .menu-btn { flex: 0 0 auto; border-color: var(--header-border); background: rgb(129 150 173 / 9%); color: var(--header-ink); }
.v2-shell .menu-btn svg { stroke: currentColor !important; }
.v2-shell .site-header[data-tone="dark"] .menu-btn:hover,
.v2-shell .site-header[data-tone="dark"] .menu-btn[aria-expanded="true"] { background: rgb(255 255 255 / 14%); color: #fff; }

.v2-shell .nav-search-panel { position: absolute; z-index: 80; top: calc(100% + 8px); right: max(24px, calc((100vw - var(--wrap)) / 2)); width: min(420px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgb(10 31 60 / 18%); color: var(--ink); }
.v2-shell .nav-search-panel { max-height: calc(100dvh - 140px); overflow: auto; overscroll-behavior: contain; }
.v2-shell .nav-search-panel[hidden] { display: none !important; }
.v2-shell .nav-search-form { display: flex; gap: 8px; }
.v2-shell .nav-search-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.v2-shell .nav-search-form input { min-width: 0; min-height: 44px; flex: 1 1 auto; padding: 0 12px; border: 1px solid #cbd6e4; border-radius: 8px; background: #fff; color: #10243e; font: 14px/1.4 var(--sans); }
.v2-shell .nav-search-form input:focus { outline: 3px solid rgb(243 111 33 / 20%); border-color: var(--accent); }
.v2-shell .nav-search-form button { min-height: 44px; padding-inline: 13px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 650 13px/1.2 var(--sans); cursor: pointer; }
.v2-shell .nav-search-results { display: grid; gap: 3px; margin-top: 10px; }
.v2-shell .nav-search-result { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.v2-shell .nav-search-result:hover,
.v2-shell .nav-search-result:focus-visible { background: #f4f7fb; }
.v2-shell .nav-search-result-copy { display: grid; gap: 2px; }
.v2-shell .nav-search-result strong { font-size: 13px; font-weight: 650; }
.v2-shell .nav-search-result small { color: #64748b; font-size: 11px; line-height: 1.35; }
.v2-shell .nav-search-result .nav-search-category { flex: 0 0 auto; color: #a94b17; }
.v2-shell .nav-search-empty { margin: 8px 10px 4px; color: #52647b; font-size: 13px; }

.v2-shell .itss-mega-panel { top: calc(100% + 9px); width: min(1420px, calc(100vw - 48px)); min-height: 0; padding: clamp(18px, 2vw, 28px); border-radius: 18px; }
.v2-shell .itss-mega-intro { min-height: 100%; padding: 20px; border-radius: 13px; background: radial-gradient(ellipse at 10% 100%, rgb(255 220 197 / 55%), transparent 58%), #fffaf7; }
.v2-shell .itss-mega-eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: .11em; }
.v2-shell .itss-mega-intro h2 { font-size: clamp(22px, 2vw, 28px); }
.v2-shell .itss-mega-summary { max-width: 30ch; font-size: 15px; }
.v2-shell .itss-mega-links { align-content: stretch; gap: 2px 8px; }
.v2-shell .itss-mega-panel[data-section="programmes"] .itss-mega-links { grid-template-columns: minmax(0, 1fr); }
.v2-shell .itss-mega-link { min-height: 88px; justify-content: flex-start; gap: 14px; padding: 12px 10px; border-bottom: 1px solid #e8edf3; border-radius: 0; }
.v2-shell .itss-mega-link:last-child { border-bottom-color: transparent; }
.v2-shell .itss-mega-link:hover,
.v2-shell .itss-mega-link:focus-visible { border-color: #e8edf3; border-radius: 9px; background: #f8fafc; }
.v2-shell .itss-mega-icon { display: inline-grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: #fff1e8; color: #d95612; }
.v2-shell .itss-mega-icon svg { width: 23px; height: 23px; }
.v2-shell .itss-mega-link-copy { flex: 1 1 auto; gap: 5px; }
.v2-shell .itss-mega-link strong { font-size: 14px; }
.v2-shell .itss-mega-link small { max-width: 34ch; font-size: 12px; }
.v2-shell .itss-mega-link-arrow { display: inline-grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff3ec; color: #d95612; }
.v2-shell .itss-mega-preview { align-self: stretch; display: flex; flex-direction: column; padding: 10px; border-radius: 15px; background: #fff6f1; }
.v2-shell .itss-mega-photo { flex: 1 1 auto; min-height: 180px; aspect-ratio: 1.28 / 1; border-radius: 11px; }
.v2-shell .itss-mega-preview figcaption { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 9px 5px 2px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; }
.v2-shell .itss-mega-preview figcaption::before { display: inline-grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #fff; color: #d95612; content: "✦"; font-size: 18px; }

.v2-shell .mobile-nav { border-color: var(--line); background: #fff; color: var(--ink); }
.v2-shell .mobile-nav a,
.v2-shell .mobile-nav .mobile-nav-direct,
.v2-shell .mobile-nav-group summary { color: var(--ink); }
.v2-shell .mobile-nav-group > a small { color: #64748b; }
.v2-shell .site-header[data-tone="dark"] .mobile-nav { border-color: rgb(255 255 255 / 14%); background: #0b2341; color: #f7f9fd; }
.v2-shell .site-header[data-tone="dark"] .mobile-nav a,
.v2-shell .site-header[data-tone="dark"] .mobile-nav .mobile-nav-direct,
.v2-shell .site-header[data-tone="dark"] .mobile-nav-group summary,
.v2-shell .site-header[data-tone="dark"] .mobile-nav-group > a strong { color: #f7f9fd; }
.v2-shell .site-header[data-tone="dark"] .mobile-nav-group > a small { color: #c5d2e3; }
.v2-shell .site-header[data-tone="dark"] .mobile-nav-group { border-bottom-color: rgb(255 255 255 / 15%); }

@media (min-width: 1101px) and (max-width: 1280px) {
  .v2-shell .site-header .wrap { gap: 10px; }
  .v2-shell .nav > .mega-nav-home,
  .v2-shell .nav > .mega-nav-contact,
  .v2-shell .nav .mega-nav-trigger { padding-inline: 8px; font-size: 13px; }
  .v2-shell .brand-name small { display: none; }
  .v2-shell .header-actions { gap: 7px; }
  .v2-shell .header-actions > .btn-primary { padding-inline: 12px; font-size: 13px; }
  .v2-shell .itss-mega-panel { grid-template-columns: minmax(180px, .68fr) minmax(340px, 1.3fr) minmax(230px, .9fr); gap: 16px; }
}
@media (max-width: 1100px) {
  .v2-shell .site-header .wrap { min-height: 68px; }
  .v2-shell .nav-search-panel { right: 16px; }
}
@media (max-width: 560px) {
  .v2-shell .announce .wrap { min-height: 0; padding: 8px 34px 8px 8px; }
  .v2-shell .announce-close { right: -2px; }
  .v2-shell .site-header .wrap { min-height: 64px; }
  .v2-shell .header-actions { gap: 6px; }
  .v2-shell .nav-search-toggle { width: 40px; height: 40px; }
  .v2-shell .mega-catalogue-cta { min-height: 40px; padding-inline: 11px; font-size: 12px; }
  .v2-shell .header-actions .menu-btn { width: 40px; height: 40px; }
  .v2-shell .nav-search-panel { top: calc(100% + 5px); right: 8px; width: calc(100vw - 16px); padding: 12px; }
  .v2-shell .nav-search-panel { max-height: calc(100dvh - 190px); }
  .v2-shell .nav-search-form { flex-wrap: wrap; }
  .v2-shell .nav-search-form input { min-width: 0; flex-basis: 55%; }
  .v2-shell .nav-search-form button { flex: 1 1 auto; }
  .v2-shell .mobile-nav.open { max-height: calc(100dvh - 84px); }
}
@media (max-width: 380px) {
  .v2-shell .brand-name b { font-size: 12px; }
  .v2-shell .brand img { width: 34px; height: 34px; }
  .v2-shell .mega-catalogue-cta { max-width: 78px; padding-inline: 7px; font-size: 11px; }
  .v2-shell .mega-catalogue-icon,
  .v2-shell .mega-catalogue-arrow { display: none; }
  .v2-shell .nav-search-toggle { width: 36px; height: 36px; }
  .v2-shell .header-actions .menu-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .site-header,
  .v2-shell .nav-search-toggle,
  .v2-shell .itss-mega-panel,
  .v2-shell .itss-mega-link { transition-duration: .01ms !important; }
}

/* Micro-animations premium, appliquées partout au shell partagé. */
@keyframes itss-announcement-light { 0%, 100% { opacity: .25; transform: translate3d(-3%, 0, 0) rotate(-12deg); } 50% { opacity: .55; transform: translate3d(3%, 2px, 0) rotate(-9deg); } }
@keyframes itss-nav-arrive { from { opacity: 0; transform: translate(-50%, 13px) scale(.985); filter: blur(5px); } to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); } }
@keyframes itss-nav-icon-arrive { from { opacity: 0; transform: translateY(7px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.v2-shell .announce::before { animation: itss-announcement-light 19s ease-in-out infinite; }
.v2-shell .announce::after { animation: itss-announcement-light 23s ease-in-out -8s infinite reverse; }
.v2-shell .glow-cta { position: relative; overflow: hidden; isolation: isolate; }
.v2-shell .glow-cta > span,
.v2-shell .glow-cta > svg { position: relative; z-index: 2; }
.v2-shell .glow-cta::after { position: absolute; z-index: 1; inset: -50% auto -50% -42%; width: 22%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 34%), transparent); content: ""; transition: left .52s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.v2-shell .glow-cta:hover::after { left: 125%; }
.v2-shell .site-header .brand img { transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.v2-shell .site-header .brand:hover img { transform: rotate(-5deg) scale(1.04); box-shadow: 0 0 0 5px rgb(243 111 33 / 12%); }
.v2-shell .nav > .mega-nav-home,
.v2-shell .nav > .mega-nav-contact,
.v2-shell .nav .mega-nav-trigger { position: relative; transition: background-color .24s ease, color .24s ease, transform .24s cubic-bezier(.22,1,.36,1); }
.v2-shell .nav > .mega-nav-home:hover,
.v2-shell .nav > .mega-nav-contact:hover,
.v2-shell .nav .mega-nav-trigger:hover { transform: translateY(-1px); }
.v2-shell .nav-search-toggle { transition: background-color .24s ease, border-color .24s ease, color .24s ease, transform .35s cubic-bezier(.22,1,.36,1), box-shadow .24s ease; }
.v2-shell .nav-search-toggle:hover { box-shadow: 0 8px 18px -12px rgb(10 31 60 / 45%); }
.v2-shell .nav-search-panel:not([hidden]) { opacity: 0; transform: translateY(-7px) scale(.985); transform-origin: top right; transition: opacity .2s ease, transform .28s cubic-bezier(.22,1,.36,1); }
.v2-shell .nav-search-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.v2-shell .nav-search-panel.is-closing { opacity: 0; transform: translateY(-5px) scale(.99); }
.v2-shell .nav-search-result { transition: background-color .18s ease, transform .22s cubic-bezier(.22,1,.36,1); }
.v2-shell .nav-search-result:hover { transform: translateX(3px); }
.v2-shell .itss-mega-panel { filter: blur(5px); transform: translate(-50%, 13px) scale(.985); transform-origin: top center; transition: opacity .28s ease, transform .4s cubic-bezier(.22,1,.36,1), filter .3s ease, visibility .28s; }
.v2-shell .itss-mega-panel.is-open { filter: blur(0); animation: itss-nav-arrive .4s cubic-bezier(.22,1,.36,1) both; }
.v2-shell .itss-mega-intro,
.v2-shell .itss-mega-preview { transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.v2-shell .itss-mega-panel.is-open .itss-mega-intro { animation: itss-nav-icon-arrive .4s .04s both; }
.v2-shell .itss-mega-panel.is-open .itss-mega-preview { animation: itss-nav-icon-arrive .48s .08s both; }
.v2-shell .itss-mega-link { opacity: 0; transform: translateY(9px); transition: opacity .28s ease, transform .38s cubic-bezier(.22,1,.36,1), background-color .18s ease, border-color .18s ease; }
.v2-shell .itss-mega-panel.is-open .itss-mega-link { opacity: 1; transform: translateY(0); transition-delay: calc(55ms + var(--item-index, 0) * 48ms); }
.v2-shell .itss-mega-link:hover .itss-mega-icon { transform: translateY(-2px) rotate(-3deg); background: #ffe7d8; }
.v2-shell .itss-mega-icon { transition: transform .25s cubic-bezier(.22,1,.36,1), background-color .2s ease; }
.v2-shell .itss-mega-photo img { transform: scale(1.045); transition: opacity .42s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.v2-shell .itss-mega-photo img.is-visible { transform: scale(1); }
.v2-shell .itss-mega-preview figcaption::before { transition: transform .3s cubic-bezier(.22,1,.36,1), background-color .2s ease; }
.v2-shell .itss-mega-preview:hover figcaption::before { transform: rotate(-8deg) scale(1.06); background: #fff1e8; }
.v2-shell .mega-catalogue-cta,
.v2-shell .header-actions > .btn-primary { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .28s cubic-bezier(.22,1,.36,1), box-shadow .24s ease; }
.v2-shell .mega-catalogue-cta:hover,
.v2-shell .header-actions > .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -13px rgb(10 31 60 / 50%); }
.v2-shell .mega-nav-group.is-active::after { animation: itss-nav-icon-arrive .22s cubic-bezier(.22,1,.36,1) both; }
.v2-shell .mobile-nav.open { animation: itss-mobile-menu-in .26s cubic-bezier(.22,1,.36,1) both; transform-origin: top; }
@keyframes itss-mobile-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .v2-shell .announce::before,
  .v2-shell .announce::after,
  .v2-shell .glow-cta::after,
  .v2-shell .itss-mega-panel.is-open,
  .v2-shell .itss-mega-panel.is-open .itss-mega-intro,
  .v2-shell .itss-mega-panel.is-open .itss-mega-preview,
  .v2-shell .itss-mega-panel.is-open .itss-mega-link,
  .v2-shell .mobile-nav.open { animation: none !important; }
  .v2-shell .itss-mega-link { opacity: 1; transform: none; transition: none !important; }
}

/* Méga-menu immersif, inspiré de la navigation éditoriale de référence. */
.v2-shell .site-header { isolation: isolate; }
.v2-shell .itss-mega-panel {
  top: 100%; left: 50%; right: auto; width: 100vw; height: clamp(420px, calc(100dvh - 126px), 660px); max-height: none;
  grid-template-columns: minmax(250px, .78fr) minmax(300px, .9fr) minmax(0, 1.5fr); gap: 0; padding: 0;
  overflow: hidden; border: 0; border-top: 1px solid rgb(255 255 255 / 12%); border-radius: 0 0 18px 18px;
  background: linear-gradient(118deg, #062747 0%, #064761 54%, #075b70 100%);
  box-shadow: 0 30px 70px -32px rgb(2 22 41 / 62%);
}
.v2-shell .site-header[data-tone="dark"] .itss-mega-panel { background: linear-gradient(118deg, #031c34 0%, #04384e 54%, #06485c 100%); }
.v2-shell .itss-mega-intro {
  position: relative; isolation: isolate; min-width: 0; min-height: 0; justify-content: space-between; overflow: hidden;
  padding: clamp(24px, 3.1vw, 48px) clamp(22px, 2.6vw, 40px); border: 0; border-radius: 0;
  background: radial-gradient(ellipse at 15% 100%, rgb(20 138 174 / 22%), transparent 52%), linear-gradient(150deg, #062847, #073759 78%, #064965);
  color: #f7f9fd;
}
.v2-shell .itss-mega-intro::after {
  position: absolute; z-index: -1; right: -92px; bottom: -130px; width: 310px; height: 310px;
  border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; content: ""; box-shadow: 0 0 0 24px rgb(255 255 255 / 2%), 0 0 0 49px rgb(255 255 255 / 2%);
  pointer-events: none;
}
.v2-shell .itss-mega-brand { display: flex; min-width: 0; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.v2-shell .itss-mega-brand img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: #fff; box-shadow: 0 6px 22px rgb(0 0 0 / 18%); }
.v2-shell .itss-mega-brand span { display: grid; gap: 3px; }
.v2-shell .itss-mega-brand strong { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.v2-shell .itss-mega-brand small { color: #bfd2e3; font-size: 11px; }
.v2-shell .itss-mega-intro-copy { max-width: 32ch; margin-block: auto; padding-block: 30px; }
.v2-shell .itss-mega-eyebrow { margin: 0 0 14px; color: #ff9b61; font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.5; }
.v2-shell .itss-mega-intro h2 { margin: 0 0 13px; color: #fff; font-size: clamp(25px, 2.2vw, 34px); font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.v2-shell .itss-mega-summary { margin: 0; color: #d3e2ef; font-size: 14px; line-height: 1.65; text-align: left; }
.v2-shell .itss-mega-all { position: relative; z-index: 1; min-height: 46px; align-self: flex-start; gap: 12px; margin: 0; padding: 12px 17px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 7px; background: linear-gradient(110deg, #f36f21, #ff7a23); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px -14px #000; }
.v2-shell .itss-mega-all:hover { color: #fff; box-shadow: 0 14px 30px -14px rgb(243 111 33 / 72%); }
.v2-shell .itss-mega-all span { font-size: 17px; }
.v2-shell .itss-mega-motto { position: relative; z-index: 1; margin: 16px 0 0; color: #a9c3d8; font-size: 10px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.v2-shell .itss-mega-links {
  display: flex; min-width: 0; flex-direction: column; justify-content: center; align-content: initial; gap: 0; overflow: auto; overscroll-behavior: contain;
  padding: clamp(20px, 2.4vw, 36px) clamp(12px, 1.8vw, 26px); background: linear-gradient(160deg, #07516c, #06445d 74%, #063a54); scrollbar-color: rgb(255 255 255 / 28%) transparent; scrollbar-width: thin;
}
.v2-shell .itss-mega-link {
  position: relative; display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px; border: 0; border-bottom: 1px solid rgb(215 235 246 / 16%); border-radius: 0;
  color: #f7fbff; text-decoration: none; transition: background-color .2s ease, color .2s ease, padding .25s cubic-bezier(.22,1,.36,1);
}
.v2-shell .itss-mega-link:last-child { border-bottom-color: transparent; }
.v2-shell .itss-mega-link::before { width: 3px; height: 0; flex: 0 0 3px; border-radius: 3px; background: #ff8b43; content: ""; transition: height .24s cubic-bezier(.22,1,.36,1); }
.v2-shell .itss-mega-link:hover,
.v2-shell .itss-mega-link:focus-visible,
.v2-shell .itss-mega-link.is-featured { padding-left: 16px; border-color: rgb(215 235 246 / 16%); border-radius: 7px; background: rgb(255 255 255 / 9%); color: #fff; }
.v2-shell .itss-mega-link:hover::before,
.v2-shell .itss-mega-link:focus-visible::before,
.v2-shell .itss-mega-link.is-featured::before { height: 30px; }
.v2-shell .itss-mega-link-copy { display: grid; min-width: 0; flex: 1 1 auto; gap: 4px; }
.v2-shell .itss-mega-link strong { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; }
.v2-shell .itss-mega-link small { max-width: 36ch; color: #c3d8e7; font-size: 11px; line-height: 1.45; }
.v2-shell .itss-mega-icon { display: none; }
.v2-shell .itss-mega-link-arrow { display: inline-grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; color: #ff9b61; font-size: 16px; }
.v2-shell .itss-mega-preview {
  display: flex; min-width: 0; min-height: 0; height: 100%; flex-direction: column; align-self: stretch; overflow: auto;
  padding: clamp(18px, 2.4vw, 36px); border-radius: 0; background: linear-gradient(145deg, #07536e 0%, #06475f 70%, #07364f 100%); color: #fff; scrollbar-width: thin;
}
.v2-shell .itss-mega-photo { position: relative; width: 100%; min-height: 210px; flex: 1 1 auto; aspect-ratio: 1.72 / 1; overflow: hidden; border-radius: 8px; background: #0a2a42; box-shadow: 0 18px 38px -22px rgb(0 0 0 / 70%); }
.v2-shell .itss-mega-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(3 24 42 / 38%), transparent); content: ""; pointer-events: none; }
.v2-shell .itss-mega-photo img { object-fit: cover; }
.v2-shell .itss-mega-preview .itss-mega-feature-copy { display: grid; min-height: 0; align-items: stretch; gap: 9px; padding: 20px 0 0; background: transparent; color: #fff; }
.v2-shell .itss-mega-preview .itss-mega-feature-copy::before { display: none; }
.v2-shell .itss-mega-caption { margin: 0; color: #ffad78; font-size: 10px; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.v2-shell .itss-mega-feature-copy h3 { margin: 0; color: #fff; font-size: clamp(23px, 2.5vw, 34px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; }
.v2-shell .itss-mega-feature-description { max-width: 60ch; margin: 0; color: #d4e3ed; font-size: 13px; line-height: 1.7; }
.v2-shell .itss-mega-feature-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 2px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 45%); text-underline-offset: 4px; }
.v2-shell .itss-mega-feature-link span { color: #ff9b61; font-size: 17px; transition: transform .2s ease; }
.v2-shell .itss-mega-feature-link:hover span { transform: translateX(4px); }
.v2-shell .site-header[data-tone="dark"] .itss-mega-intro { background: radial-gradient(ellipse at 15% 100%, rgb(9 115 151 / 18%), transparent 52%), linear-gradient(150deg, #031c34, #052e4b 78%, #054159); }
.v2-shell .site-header[data-tone="dark"] .itss-mega-links { background: linear-gradient(160deg, #043d54, #03364c 74%, #032e45); }
.v2-shell .site-header[data-tone="dark"] .itss-mega-preview { background: linear-gradient(145deg, #043c53 0%, #03374d 70%, #032a40 100%); }
.v2-shell .mega-nav-group.is-active > .mega-nav-trigger { position: relative; background: rgb(243 111 33 / 10%); color: var(--accent-hover); }
.v2-shell .mega-nav-group.is-active > .mega-nav-trigger::after { position: absolute; right: 12px; bottom: 2px; left: 12px; height: 2px; border-radius: 2px; background: var(--accent); content: ""; }
@media (min-width: 1101px) and (max-width: 1280px) {
  .v2-shell .itss-mega-panel { grid-template-columns: minmax(230px, .78fr) minmax(285px, .92fr) minmax(0, 1.45fr); }
  .v2-shell .itss-mega-link { min-height: 62px; }
  .v2-shell .itss-mega-link small { font-size: 10px; }
}
@media (max-height: 700px) and (min-width: 1101px) {
  .v2-shell .itss-mega-panel { height: calc(100dvh - 118px); }
  .v2-shell .itss-mega-links,
  .v2-shell .itss-mega-preview { padding-block: 16px; }
  .v2-shell .itss-mega-link { min-height: 56px; }
  .v2-shell .itss-mega-photo { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .itss-mega-intro::after { animation: none !important; }
  .v2-shell .itss-mega-link::before { transition: none !important; }
}

/* Finition éditoriale, indicateurs, documentation et catalogue ITSS. */
.v2-shell main#contenu :is(h1, h2, h3, .h1, .h1-page, .h2, .h3) {
  text-wrap: balance; word-break: normal; overflow-wrap: normal; hyphens: none;
}
.v2-shell main#contenu .h1-page { max-width: 22ch; line-height: 1.08; }
.v2-shell main#contenu .h2 { max-width: 28ch; }
.v2-shell main#contenu :is(.lead, .story p, .feature p, .catalogue-card > p:not(.eyebrow), .lib-item p) { text-wrap: pretty; }

/* Chiffres publics reliés aux données réelles. */
.v2-shell .facts[data-public-stats] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; perspective: 900px; }
.v2-shell .facts[data-public-stats] > div,
.v2-shell .facts[data-public-stats] > div + div {
  position: relative; display: flex; min-width: 0; min-height: 124px; flex-direction: column; justify-content: center;
  padding: 19px 20px; overflow: hidden; border: 1px solid #e3e9f1; border-radius: 15px;
  background: radial-gradient(circle at 100% 0%, rgb(243 111 33 / 9%), transparent 44%), linear-gradient(145deg, #fff, #f9fbfd);
  box-shadow: 0 12px 28px -25px rgb(10 31 60 / 45%);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.v2-shell .facts[data-public-stats] > div::before { position: absolute; top: 0; left: 20px; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent), #f2b34e); content: ""; }
.v2-shell .facts[data-public-stats] b { color: var(--navy); font-size: clamp(29px, 3.2vw, 40px); font-weight: 750; letter-spacing: -.055em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.v2-shell .facts[data-public-stats] span { margin-top: 8px; color: #5e6d80; font-size: 12px; font-weight: 650; letter-spacing: .025em; line-height: 1.4; }
.v2-shell .facts[data-public-stats] > div:hover { transform: translateY(-4px) rotateX(1deg); border-color: rgb(243 111 33 / 30%); box-shadow: 0 20px 34px -25px rgb(10 31 60 / 48%); }

/* Centre documentaire: recherche, filtres et ressources mis en valeur. */
.v2-shell #contenu:has(.lib-tools) .page-hero { background: radial-gradient(ellipse at 88% 18%, rgb(243 111 33 / 8%), transparent 34%), linear-gradient(180deg, #fbfcfe, #fff); }
.v2-shell .lib-tools {
  align-items: center; gap: 12px; margin: 0 0 20px; padding: 17px; border: 1px solid #e3e9f1; border-radius: 17px;
  background: linear-gradient(135deg, #fff, #f8fafc); box-shadow: 0 14px 32px -28px rgb(10 31 60 / 48%);
}
.v2-shell .lib-search { min-height: 52px; flex-basis: 360px; padding-inline: 15px; border-color: #d9e1eb; border-radius: 11px; background: #fff; }
.v2-shell .lib-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(243 111 33 / 10%), 0 8px 20px -18px var(--navy); }
.v2-shell .lib-search input { min-height: 50px; font-size: 14px; }
.v2-shell .chips { gap: 7px; }
.v2-shell .chip { min-height: 36px; padding: 9px 13px; border-color: #e1e7ef; color: #53647a; font-size: 12px; font-weight: 650; transition: .2s ease; }
.v2-shell .chip:hover { transform: translateY(-1px); border-color: #f4b18b; color: var(--accent-hover); }
.v2-shell .chip.is-on { border-color: var(--navy); background: linear-gradient(135deg, #0a1f3c, #173b60); box-shadow: 0 6px 14px -10px #0a1f3c; }
.v2-shell .lib-tools [data-lib-count] { flex: 0 0 auto; margin: 0 0 0 auto; color: #68778a; font-size: 12px; font-weight: 600; }
.v2-shell .lib-list { display: grid; gap: 10px; border: 0; }
.v2-shell .lib-item {
  position: relative; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 17px; min-width: 0; padding: 17px 19px;
  border: 1px solid #e4eaf1; border-radius: 14px; background: linear-gradient(115deg, #fff, #fbfcfe);
  box-shadow: 0 9px 22px -23px rgb(10 31 60 / 45%); transition: transform .28s cubic-bezier(.22,1,.36,1), border-color .22s ease, box-shadow .22s ease;
}
.v2-shell .lib-item:not(.sk):hover { transform: translateY(-2px); border-color: rgb(243 111 33 / 38%); box-shadow: 0 18px 30px -24px rgb(10 31 60 / 35%); }
.v2-shell .lib-item .ext { width: 48px; height: 54px; padding-bottom: 8px; border: 1px solid #f1d7c8; border-radius: 10px; background: linear-gradient(155deg, #fff8f3, #fff); color: #c65316; font-size: 10px; font-weight: 800; letter-spacing: .06em; box-shadow: inset 0 -3px 0 rgb(243 111 33 / 12%); }
.v2-shell .lib-item h3 { color: var(--navy); font-size: 15px; font-weight: 700; letter-spacing: -.012em; line-height: 1.4; text-wrap: pretty; }
.v2-shell .lib-item p { max-width: 78ch; margin-top: 4px; color: #65758a; font-size: 13px; line-height: 1.55; }
.v2-shell .lib-item .meta { color: #8491a1; font-size: 11px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; }
.v2-shell .lib-item > .btn { min-width: 132px; justify-content: center; border-color: #dce4ed; background: #fff; color: var(--navy); }
.v2-shell .lib-item > .btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }

/* Catalogue premium, alimenté par les sessions validées. */
.v2-shell .catalogue-page {
  min-height: 62vh; padding: clamp(24px, 3vw, 38px) 0 clamp(44px, 5vw, 64px);
  background: radial-gradient(ellipse at 92% 8%, rgb(243 111 33 / 7%), transparent 28%), linear-gradient(180deg, #fbfcfe 0, #fff 34%);
}
.v2-shell .catalogue-page > .wrap { max-width: 1180px; }
.v2-shell .catalogue-crumb { margin-bottom: 17px; }
.v2-shell .catalogue-head { align-items: end; margin-bottom: 23px; padding-bottom: 20px; border-bottom: 1px solid #e6ebf2; }
.v2-shell .catalogue-head h1 { max-width: 20ch; margin: 4px 0 8px; color: var(--navy); font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; }
.v2-shell .catalogue-head .lead { max-width: 60ch; margin: 0; color: #5e6d80; font-size: 16px; line-height: 1.6; }
.v2-shell .catalogue-count { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #e8d4c8; border-radius: 999px; background: #fff8f3; color: #a84712; font-size: 12px; font-weight: 700; }
.v2-shell .catalogue-tools { gap: 10px; margin-bottom: 15px; padding: 12px; border: 1px solid #e5eaf1; border-radius: 13px; background: rgb(255 255 255 / 88%); box-shadow: 0 8px 24px -24px rgb(10 31 60 / 55%); }
.v2-shell .catalogue-tools input, .v2-shell .catalogue-tools select { min-height: 46px; border-color: #dce4ed; border-radius: 9px; box-shadow: inset 0 1px 2px rgb(10 31 60 / 3%); font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.v2-shell .catalogue-tools input:focus, .v2-shell .catalogue-tools select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(243 111 33 / 11%); }
.v2-shell .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.v2-shell .catalogue-card {
  position: relative; min-height: 275px; padding: 20px; overflow: hidden; border-color: #e1e8f0; border-radius: 15px;
  background: radial-gradient(ellipse at 100% 0%, rgb(243 111 33 / 6%), transparent 36%), linear-gradient(155deg, #fff, #fbfcfe);
  box-shadow: 0 15px 33px -30px rgb(10 31 60 / 55%); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .22s ease, box-shadow .28s ease;
}
.v2-shell .catalogue-card::before { position: absolute; top: 0; right: 20px; left: 20px; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--accent), #f2b34e 54%, transparent); content: ""; opacity: .8; }
.v2-shell .catalogue-card:hover { transform: translateY(-4px); border-color: rgb(243 111 33 / 34%); box-shadow: 0 24px 38px -28px rgb(10 31 60 / 42%); }
.v2-shell .catalogue-card .eyebrow { margin-bottom: 8px; color: #b04f19; font-size: 10px; font-weight: 750; letter-spacing: .09em; line-height: 1.45; text-transform: uppercase; }
.v2-shell .catalogue-card h2 { margin: 0 0 9px; color: var(--navy); font-size: clamp(17px, 1.5vw, 20px); font-weight: 750; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
.v2-shell .catalogue-card > p:not(.eyebrow) { color: #596a7f; font-size: 13px; line-height: 1.62; }
.v2-shell .catalogue-meta { gap: 6px; margin: 14px 0 16px; }
.v2-shell .catalogue-meta span { padding: 5px 9px; border-color: #e0e6ee; background: #f7f9fc; color: #56677b; font-size: 10px; font-weight: 650; line-height: 1.35; }
.v2-shell .catalogue-bottom { margin-top: auto; padding-top: 14px; border-top-color: #e8edf2; }
.v2-shell .catalogue-price { color: var(--navy); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.v2-shell .catalogue-bottom .btn { min-height: 40px; padding: 9px 12px; border-radius: 8px; font-size: 12px; }
.v2-shell .catalogue-bottom .btn span { display: inline-block; margin-left: 6px; transition: transform .22s ease; }
.v2-shell .catalogue-bottom .btn:hover span { transform: translateX(3px); }
.v2-shell .catalogue-state {
  min-height: 170px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 28px; border-color: #e2e8f0; border-radius: 16px;
  background: radial-gradient(circle at 50% 0, rgb(243 111 33 / 8%), transparent 38%), linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 18px 38px -32px rgb(10 31 60 / 55%); line-height: 1.6;
}
.v2-shell .catalogue-state strong { margin: 0 0 3px; color: var(--navy); font-size: 17px; font-weight: 750; }

/* Tableaux des critères et résultats publics. */
.v2-shell main#contenu .criteria { border: 1px solid #dce4ed; border-collapse: separate; border-spacing: 0; border-radius: 13px; background: #fff; box-shadow: 0 18px 34px -30px rgb(10 31 60 / 50%); font-size: 13px; overflow: hidden; }
.v2-shell main#contenu .criteria thead th { padding: 14px 16px; border: 0; background: linear-gradient(120deg, #0a1f3c, #173b60); color: #f8fafc; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.v2-shell main#contenu .criteria tbody td { padding: 14px 16px; border-bottom: 1px solid #edf1f5; color: #33465d; font-size: 12px; line-height: 1.5; }
.v2-shell main#contenu .criteria tbody tr:nth-child(even) { background: #f8fafc; }
.v2-shell main#contenu .criteria tbody tr:hover { background: #fff7f1; }
.v2-shell main#contenu .criteria tbody tr:last-child td { border-bottom: 0; }
.v2-shell main#contenu .criteria tbody td:last-child { color: #ad4a12; font-size: 14px; font-weight: 800; }
.v2-shell .competitor-panel { overflow: hidden; border: 1px solid #e0e7ef; border-radius: 17px; background: #fff; box-shadow: 0 19px 42px -35px rgb(10 31 60 / 55%); }
.v2-shell .competitor-panel-head { padding: 19px 20px; border-bottom: 1px solid #e6ebf2; background: linear-gradient(110deg, #fbfcfe, #fff8f3); }
.v2-shell .competitor-panel-head h2 { color: var(--navy); font-size: clamp(19px, 2.2vw, 25px); font-weight: 750; letter-spacing: -.025em; }
.v2-shell .scoreboard-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; scrollbar-color: #b6c3d2 #f2f5f8; scrollbar-width: thin; }
.v2-shell .scoreboard-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; color: #30445b; font-size: 12px; }
.v2-shell .scoreboard-table th { position: sticky; top: 0; z-index: 1; padding: 12px 13px; border: 0; background: #0a1f3c; color: #f7f9fc; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.v2-shell .scoreboard-table td { padding: 12px 13px; border-bottom: 1px solid #e9eef3; vertical-align: middle; }
.v2-shell .scoreboard-table tbody tr:nth-child(even) { background: #f7f9fc; }
.v2-shell .scoreboard-table tbody tr:hover { background: #fff5ed; }
.v2-shell .scoreboard-table td:first-child { color: #b04f19; font-weight: 800; font-variant-numeric: tabular-nums; }
.v2-shell .scoreboard-status { margin: 0; padding: 16px 20px; color: #5c6d81; font-size: 13px; }
.v2-shell .scoreboard-status[aria-busy="true"]::before { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border: 2px solid #f1c5ad; border-top-color: var(--accent); border-radius: 50%; content: ""; vertical-align: -1px; animation: itss-status-spin .75s linear infinite; }
@keyframes itss-status-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .v2-shell .facts[data-public-stats] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-shell .facts[data-public-stats] > div, .v2-shell .facts[data-public-stats] > div + div { min-height: 112px; padding: 16px; }
  .v2-shell .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-shell .catalogue-card { min-height: 260px; }
  .v2-shell .lib-tools [data-lib-count] { flex-basis: 100%; margin: 0; }
  .v2-shell .lib-item { gap: 14px; }
}
@media (max-width: 680px) {
  .v2-shell main#contenu .h1-page { max-width: 19ch; font-size: clamp(31px, 8.4vw, 40px); line-height: 1.1; }
  .v2-shell main#contenu .h2 { max-width: 24ch; font-size: clamp(24px, 6.5vw, 31px); }
  .v2-shell .facts[data-public-stats] { gap: 8px; }
  .v2-shell .facts[data-public-stats] > div, .v2-shell .facts[data-public-stats] > div + div { min-height: 100px; padding: 14px; border-radius: 12px; }
  .v2-shell .facts[data-public-stats] b { font-size: clamp(27px, 8vw, 34px); }
  .v2-shell .facts[data-public-stats] span { font-size: 11px; }
  .v2-shell .catalogue-page { min-height: 0; padding: 22px 0 40px; }
  .v2-shell .catalogue-head { align-items: flex-start; gap: 8px; padding-bottom: 16px; }
  .v2-shell .catalogue-head h1 { font-size: clamp(30px, 8.2vw, 38px); }
  .v2-shell .catalogue-count { min-height: 32px; font-size: 11px; }
  .v2-shell .catalogue-tools { gap: 8px; padding: 9px; }
  .v2-shell .catalogue-tools input { flex-basis: 100%; }
  .v2-shell .catalogue-tools select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .v2-shell .catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .v2-shell .catalogue-card { min-height: 0; padding: 18px; }
  .v2-shell .catalogue-bottom { align-items: center; flex-direction: row; }
  .v2-shell .catalogue-bottom .btn { width: auto; }
  .v2-shell .lib-tools { padding: 12px; border-radius: 14px; }
  .v2-shell .lib-search { flex-basis: 100%; }
  .v2-shell .chips { gap: 6px; }
  .v2-shell .chip { min-height: 34px; padding: 8px 10px; font-size: 11px; }
  .v2-shell .lib-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .v2-shell .lib-item .ext { width: 40px; height: 48px; }
  .v2-shell .lib-item > .btn { grid-column: 2; justify-self: start; min-width: 124px; }
  .v2-shell main#contenu .criteria { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; white-space: nowrap; scrollbar-color: #b6c3d2 #f2f5f8; scrollbar-width: thin; }
  .v2-shell main#contenu .criteria th, .v2-shell main#contenu .criteria td { padding: 12px 13px; }
  .v2-shell .competitor-panel-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 15px; }
  .v2-shell .scoreboard-table { min-width: 860px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .facts[data-public-stats] > div, .v2-shell .catalogue-card, .v2-shell .lib-item { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .v2-shell .scoreboard-status[aria-busy="true"]::before { animation: none !important; }
}

/* Tableaux publics — grille éditoriale à accents ITSS, inspirée du modèle fourni. */
.v2-shell main#contenu :is(.criteria, .scoreboard-table) {
  border: 0;
  border-collapse: separate;
  border-spacing: 2px;
  border-radius: 13px;
  background: #fff;
  color: #30445b;
  font-size: 12px;
  line-height: 1.45;
}
.v2-shell main#contenu .criteria { box-shadow: 0 15px 30px -28px rgb(10 31 60 / 48%); }
.v2-shell .scoreboard-scroll { border: 1px solid #e4eaf1; border-radius: 13px; background: #fff; box-shadow: 0 12px 26px -25px rgb(10 31 60 / 45%); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th {
  padding: 11px 13px;
  border: 0;
  background: linear-gradient(135deg, #257fc2, #14548e);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th:first-child { background: linear-gradient(135deg, #f27928, #ca4e12); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th:nth-child(3n) { background: linear-gradient(135deg, #155e9d, #103d75); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th:nth-child(4n) { background: linear-gradient(135deg, #e66b25, #b74013); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th:last-child { background: linear-gradient(135deg, #1e83b7, #075b7b); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody td {
  padding: 10px 13px;
  border: 0;
  border-bottom: 2px solid #fff;
  background: #f1f3f6;
  color: #4c5d71;
  font-size: 11.5px;
  line-height: 1.45;
  vertical-align: middle;
}
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody tr:nth-child(even) td { background: #e9edf2; }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody tr:hover td { background: #fff1e7; color: #253a52; }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody td:first-child {
  background: linear-gradient(115deg, #12448c, #148ac3);
  color: #fff;
  font-weight: 750;
}
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody tr:nth-child(even) td:first-child { background: linear-gradient(115deg, #1658a2, #24a1d1); }
.v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody tr:hover td:first-child { background: linear-gradient(115deg, #f27928, #d45416); color: #fff; }
.v2-shell main#contenu .criteria tbody td:last-child { color: #173d70; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-shell main#contenu .criteria tbody tr:hover td:last-child { color: #a74411; }
.v2-shell .scoreboard-table td:first-child { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.v2-shell .scoreboard-table td:nth-child(2),
.v2-shell .scoreboard-table td:nth-child(7) { font-variant-numeric: tabular-nums; }
.v2-shell .scoreboard-table td:nth-child(4) { color: #243d5a; font-weight: 700; }
@media (max-width: 680px) {
  .v2-shell main#contenu :is(.criteria, .scoreboard-table) { border-spacing: 1px; font-size: 11px; }
  .v2-shell main#contenu :is(.criteria, .scoreboard-table) thead th { padding: 10px 11px; font-size: 9px; }
  .v2-shell main#contenu :is(.criteria, .scoreboard-table) tbody td { padding: 10px 11px; font-size: 11px; }
  .v2-shell .scoreboard-table { min-width: 860px; }
}
@media (max-width: 420px) {
  .v2-shell .site-header .wrap { gap: 6px; }
  .v2-shell .brand { min-width: 0; gap: 7px; }
  .v2-shell .brand-name { min-width: 0; }
  .v2-shell .brand-name small { display: none; }
  .v2-shell .header-actions { gap: 5px; }
  .v2-shell .header-actions > .mega-catalogue-cta { flex: 0 0 88px; min-width: 0; max-width: 88px; padding-inline: 7px; overflow: hidden; font-size: 11px; white-space: nowrap; }
  .v2-shell .mega-catalogue-icon,
  .v2-shell .mega-catalogue-arrow { display: none; }
  .v2-shell .header-actions > .nav-search-toggle { width: 36px; height: 36px; }
  .v2-shell .header-actions > .menu-btn { width: 36px; height: 36px; }
}

/* Fiches d'applications ITSS — hiérarchie inspirée des boutiques d'applications. */
.v2-shell .app-store-section {
  padding-block: 34px 48px;
  background: radial-gradient(ellipse at 90% 8%, rgb(243 111 33 / 5%), transparent 34%), linear-gradient(180deg, #f7f9fc, #fff 42%);
}
.v2-shell .app-directory { display: grid; max-width: 1120px; gap: 20px; }
.v2-shell .app-store-card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fff 68%, #fbfcfe 100%);
  box-shadow: 0 18px 44px -38px rgb(10 31 60 / 40%);
  transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .3s ease;
}
.v2-shell .app-store-card::before {
  position: absolute; inset: 0 auto auto 28px; width: 58px; height: 3px;
  border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--accent), #f2b34e); content: "";
}
.v2-shell .app-store-card:hover { transform: translateY(-2px); border-color: #d2dce9; box-shadow: 0 24px 48px -38px rgb(10 31 60 / 48%); }
.v2-shell .app-store-heading {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); align-items: center; gap: 28px;
  padding: 4px 0 22px; border-bottom: 1px solid #e9edf3;
}
.v2-shell .app-store-identity { display: flex; min-width: 0; align-items: center; gap: 19px; }
.v2-shell .app-store-icon {
  width: 84px; height: 84px; flex: 0 0 84px; padding: 5px; object-fit: contain;
  border: 1px solid #e6ebf2; border-radius: 19px; background: linear-gradient(145deg, #fff, #f5f8fc);
  box-shadow: 0 9px 20px -17px rgb(10 31 60 / 55%);
}
.v2-shell .app-kicker { margin: 0 0 5px; color: #a94a19; font-size: 10px; font-weight: 750; letter-spacing: .095em; line-height: 1.4; text-transform: uppercase; }
.v2-shell .app-store-identity h2 { margin: 0; color: var(--navy); font-size: clamp(25px, 2.6vw, 32px); font-weight: 750; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; }
.v2-shell .app-developer { margin: 6px 0 0; color: #66758a; font-size: 13px; line-height: 1.45; }
.v2-shell .app-developer a { color: #465a72; font-weight: 650; text-decoration: none; }
.v2-shell .app-developer a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.v2-shell .app-store-lead { max-width: 48ch; margin: 0; padding-left: 17px; border-left: 2px solid #f1d6c6; color: #53647a; font-size: 14px; line-height: 1.65; }
.v2-shell .app-store-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; padding: 0 0 18px; border-bottom: 1px solid #e9edf3; }
.v2-shell .app-store-facts > div { display: flex; min-width: 0; min-height: 42px; flex-direction: column; justify-content: center; gap: 4px; padding: 2px 17px; border-left: 1px solid #e8edf3; }
.v2-shell .app-store-facts > div:first-child { padding-left: 0; border-left: 0; }
.v2-shell .app-store-facts span { color: #77869a; font-size: 10px; font-weight: 650; letter-spacing: .055em; line-height: 1.3; text-transform: uppercase; }
.v2-shell .app-store-facts strong { overflow-wrap: anywhere; color: #203752; font-size: 13px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.v2-shell .app-store-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); align-items: start; gap: clamp(20px, 3vw, 34px); padding: 23px 0 18px; }
.v2-shell .app-store-about { min-width: 0; }
.v2-shell .app-store-about .app-kicker { margin-bottom: 7px; }
.v2-shell .app-store-about h3 { margin: 0 0 8px; color: var(--navy); font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
.v2-shell .app-store-about > p:not(.app-kicker) { max-width: 68ch; margin: 0; color: #58697f; font-size: 13px; line-height: 1.65; }
.v2-shell .app-feature-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.v2-shell .app-feature-list li { padding: 6px 9px; border: 1px solid #e7ebf1; border-radius: 999px; background: #f8fafc; color: #4f6075; font-size: 10px; font-weight: 600; line-height: 1.35; }
.v2-shell .app-feature-list li::before { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); content: ""; }
.v2-shell .app-install-panel { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 9px; padding: 18px; border: 1px solid #f0e3d9; border-radius: 15px; background: radial-gradient(ellipse at 100% 0%, rgb(243 111 33 / 8%), transparent 45%), #fffaf7; }
.v2-shell .app-release-label { color: #a94a19; font-size: 10px; font-weight: 750; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
.v2-shell .app-install-panel > strong { color: #203752; font-size: 16px; font-weight: 750; letter-spacing: -.015em; line-height: 1.35; }
.v2-shell .app-install-panel > strong span { color: #718096; font-size: 13px; font-weight: 600; }
.v2-shell .app-install-panel > p { margin: -5px 0 3px; color: #758297; font-size: 11px; }
.v2-shell .app-install-panel .btn { width: 100%; min-height: 43px; justify-content: center; padding-inline: 12px; font-size: 12px; }
.v2-shell .app-install-panel .btn-ghost { border-color: #e2e7ee; background: #fff; }
.v2-shell .app-install-panel small { color: #77869a; font-size: 10px; line-height: 1.5; }
.v2-shell .app-version-details,
.v2-shell .app-guidance { border-top: 1px solid #e9edf3; }
.v2-shell .app-version-details summary,
.v2-shell .app-guidance summary { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 14px; color: #334a64; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.v2-shell .app-version-details summary::-webkit-details-marker,
.v2-shell .app-guidance summary::-webkit-details-marker { display: none; }
.v2-shell .app-version-details summary::after,
.v2-shell .app-guidance summary::after { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid #65758a; border-bottom: 1.5px solid #65758a; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.v2-shell .app-version-details[open] summary::after,
.v2-shell .app-guidance[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.v2-shell .app-version-details summary span { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #f1f4f8; color: #6d7b8e; font-size: 10px; font-weight: 650; }
.v2-shell .app-version-list { border-top: 1px solid #eef1f5; }
.v2-shell .app-version-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.v2-shell .app-version-row:last-child { border-bottom: 0; }
.v2-shell .app-version-row > div { display: grid; min-width: 0; gap: 3px; }
.v2-shell .app-version-row strong { color: #334a64; font-size: 12px; font-weight: 700; }
.v2-shell .app-version-row strong span { color: #738197; font-weight: 600; }
.v2-shell .app-version-row small { color: #79879a; font-size: 10px; line-height: 1.45; }
.v2-shell .app-version-row .btn { flex: 0 0 auto; min-width: 102px; justify-content: center; }
.v2-shell .app-guidance { margin-top: 1px; }
.v2-shell .app-guidance summary { justify-content: flex-start; }
.v2-shell .app-guidance summary::after { margin-left: auto; }
.v2-shell .app-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 0 5px; }
.v2-shell .app-guidance-grid > div { padding: 12px; border: 1px solid #e8edf3; border-radius: 11px; background: #fafbfd; }
.v2-shell .app-guidance-grid h4 { margin: 0 0 5px; color: #324a64; font-size: 11px; font-weight: 700; }
.v2-shell .app-guidance-grid p { margin: 0; color: #66768b; font-size: 10px; line-height: 1.55; }
.v2-shell .app-install-note { margin: 14px 0 0; color: #6c7b8f; font-size: 11px; line-height: 1.5; }
.v2-shell .app-help-section { padding-block: 0 46px; }
.v2-shell .app-help-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 23px; border: 1px solid #e4eaf1; border-radius: 16px; background: linear-gradient(115deg, #fff, #f8fafc); }
.v2-shell .app-help-card h2 { margin: 0 0 5px; color: var(--navy); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.v2-shell .app-help-card p:not(.app-kicker) { max-width: 72ch; margin: 0; color: #627288; font-size: 12px; line-height: 1.55; }
.v2-shell .app-help-card .btn { flex: 0 0 auto; justify-content: center; }
.v2-shell .app-store-card :is(a, summary, .btn):focus-visible { outline: 3px solid rgb(243 111 33 / 32%); outline-offset: 3px; }
.v2-shell .app-store-card { padding: 0; }
.v2-shell .app-entry > .app-entry-summary { list-style: none; }
.v2-shell .app-entry > .app-entry-summary::-webkit-details-marker { display: none; }
.v2-shell .app-entry-summary {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 19px;
  min-height: 124px; padding: 19px 27px; cursor: pointer; transition: background .22s ease;
}
.v2-shell .app-entry-summary:hover { background: linear-gradient(105deg, #fff, #f8fafc); }
.v2-shell .app-entry-summary .app-store-icon { margin: 0; }
.v2-shell .app-entry-identity { display: grid; min-width: 0; justify-items: start; }
.v2-shell .app-entry-identity .app-kicker { margin-bottom: 4px; }
.v2-shell .app-entry-identity > strong { color: var(--navy); font-size: clamp(23px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; }
.v2-shell .app-entry-identity .app-developer { margin-top: 5px; color: #66758a; font-size: 12px; }
.v2-shell .app-entry-action { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5eaf1; border-radius: 999px; background: #fff; color: #42566e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.v2-shell .app-entry-action i { width: 8px; height: 8px; border-right: 1.5px solid #617187; border-bottom: 1.5px solid #617187; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.v2-shell .app-entry[open] > .app-entry-summary { border-bottom: 1px solid #e9edf3; background: #fbfcfe; }
.v2-shell .app-entry[open] > .app-entry-summary .app-entry-action i { transform: rotate(225deg) translate(-1px, -1px); }
.v2-shell .app-entry-body { padding: 22px clamp(20px, 3vw, 32px) 24px; animation: app-entry-in .28s cubic-bezier(.22,1,.36,1) both; }
.v2-shell .app-store-heading { display: block; padding: 0 0 18px; border: 0; }
.v2-shell .app-store-lead { max-width: 76ch; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #f1d6c6; }
@keyframes app-entry-in { from { opacity: .3; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 860px) {
  .v2-shell .app-store-heading { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .v2-shell .app-store-lead { max-width: 70ch; }
  .v2-shell .app-store-content { grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr); gap: 19px; }
  .v2-shell .app-guidance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v2-shell .app-store-section { padding-block: 23px 32px; }
  .v2-shell .app-directory { gap: 14px; }
  .v2-shell .app-store-card { padding: 0; border-radius: 16px; }
  .v2-shell .app-store-card::before { left: 17px; }
  .v2-shell .app-entry-summary { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 13px; min-height: 98px; padding: 15px 16px; }
  .v2-shell .app-store-icon { width: 66px; height: 66px; flex-basis: 66px; padding: 4px; border-radius: 15px; }
  .v2-shell .app-entry-identity > strong { font-size: clamp(21px, 6.2vw, 26px); }
  .v2-shell .app-entry-action { gap: 0; width: 28px; height: 28px; justify-content: center; padding: 0; font-size: 0; }
  .v2-shell .app-entry-action i { width: 7px; height: 7px; }
  .v2-shell .app-entry-body { padding: 16px 16px 18px; }
  .v2-shell .app-store-heading { gap: 0; padding-bottom: 15px; }
  .v2-shell .app-kicker { font-size: 9px; }
  .v2-shell .app-entry-identity .app-developer { margin-top: 4px; font-size: 10px; }
  .v2-shell .app-store-lead { padding-left: 12px; font-size: 12px; line-height: 1.55; }
  .v2-shell .app-store-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 11px; margin-top: 14px; padding-bottom: 15px; }
  .v2-shell .app-store-facts > div { min-height: 38px; padding: 2px 10px; }
  .v2-shell .app-store-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .v2-shell .app-store-facts span { font-size: 9px; }
  .v2-shell .app-store-facts strong { font-size: 11px; }
  .v2-shell .app-store-content { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 17px 0 13px; }
  .v2-shell .app-store-about h3 { font-size: 19px; }
  .v2-shell .app-store-about > p:not(.app-kicker) { font-size: 12px; }
  .v2-shell .app-feature-list { gap: 6px; margin-top: 11px; }
  .v2-shell .app-feature-list li { font-size: 9px; }
  .v2-shell .app-install-panel { gap: 7px; padding: 14px; border-radius: 12px; }
  .v2-shell .app-version-details summary, .v2-shell .app-guidance summary { min-height: 44px; font-size: 11px; }
  .v2-shell .app-version-row { align-items: flex-start; gap: 8px; }
  .v2-shell .app-version-row .btn { min-width: 88px; padding-inline: 9px; font-size: 10px; }
  .v2-shell .app-guidance-grid > div { padding: 10px; }
  .v2-shell .app-help-section { padding-bottom: 30px; }
  .v2-shell .app-help-card { align-items: stretch; flex-direction: column; gap: 13px; padding: 17px; }
  .v2-shell .app-help-card .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .app-store-card,
  .v2-shell .app-entry-summary,
  .v2-shell .app-entry-body,
  .v2-shell .app-version-details summary::after,
  .v2-shell .app-guidance summary::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Applications : grille compacte façon boutique, avec une fiche distincte par produit. */
.v2-shell.applications-page .announce { display: none; }
.v2-shell .app-directory-hero {
  padding-block: 18px 20px;
  background: radial-gradient(ellipse at 94% 35%, rgb(243 111 33 / 7%), transparent 34%), #fff;
}
.v2-shell .app-directory-hero .wrap,
.v2-shell .app-gallery-section .wrap { max-width: 1280px; }
.v2-shell .app-directory-hero .crumbs { margin-bottom: 11px; }
.v2-shell .app-directory-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 32px; }
.v2-shell .app-directory-head .eyebrow { margin-bottom: 3px; }
.v2-shell .app-directory-head h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 3.3vw, 39px); line-height: 1.12; letter-spacing: -.04em; }
.v2-shell .app-directory-lead { max-width: 68ch; margin: 0; color: #596a80; font-size: 14px; line-height: 1.6; }
.v2-shell .app-gallery-section { min-height: 48vh; padding: 25px 0 38px; background: linear-gradient(180deg, #f7f9fc, #fff 78%); }
.v2-shell .app-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.v2-shell .app-gallery-head h2 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.v2-shell .app-gallery-head > span { color: #77869a; font-size: 11px; font-weight: 600; white-space: nowrap; }
.v2-shell .application-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.v2-shell .application-tile {
  display: flex; min-width: 0; min-height: 208px; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 13px; border: 1px solid transparent; border-radius: 16px; color: inherit; text-decoration: none;
  transition: transform .28s cubic-bezier(.22,1,.36,1), border-color .22s ease, background .22s ease, box-shadow .25s ease;
}
.v2-shell .application-tile:hover { transform: translateY(-4px); border-color: #e3e9f1; background: #fff; box-shadow: 0 16px 30px -26px rgb(10 31 60 / 42%); }
.v2-shell .application-tile:focus-visible { outline: 3px solid rgb(243 111 33 / 34%); outline-offset: 2px; }
.v2-shell .application-tile img { width: clamp(84px, 7.4vw, 112px); height: clamp(84px, 7.4vw, 112px); margin-bottom: 7px; object-fit: contain; border: 1px solid #e6ebf2; border-radius: 22px; background: #fff; box-shadow: 0 9px 20px -17px rgb(10 31 60 / 48%); }
.v2-shell .application-tile > strong { display: -webkit-box; min-height: 2.55em; overflow: hidden; color: #243b56; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v2-shell .application-tile > span { color: #6b7a8f; font-size: 11px; line-height: 1.35; }
.v2-shell .application-tile > small { margin-top: auto; padding-top: 5px; color: #8995a5; font-size: 10px; font-weight: 650; line-height: 1.3; }
.v2-shell .app-gallery-help { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 13px 16px; border: 1px solid #e5eaf1; border-radius: 12px; background: rgb(255 255 255 / 80%); color: #607187; font-size: 12px; }
.v2-shell .app-gallery-help a { color: #a94a19; font-weight: 700; text-decoration: none; }
.v2-shell .app-gallery-help a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.v2-shell .app-gallery-help a span { margin-left: 5px; }
.v2-shell .app-detail-page { min-height: 56vh; padding: 23px 0 48px; background: radial-gradient(ellipse at 92% 5%, rgb(243 111 33 / 6%), transparent 30%), linear-gradient(180deg, #f7f9fc, #fff 52%); }
.v2-shell .app-detail-page > .wrap { max-width: 1080px; }
.v2-shell .app-detail-back { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 11px; border: 1px solid #e0e7f0; border-radius: 999px; background: #fff; color: #40556e; font-size: 11px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.v2-shell .app-detail-back span { color: #bd521b; font-size: 16px; line-height: 1; }
.v2-shell .app-detail-back:hover { transform: translateX(-2px); border-color: #edc6ae; color: #a74411; }
.v2-shell .app-detail-card { padding: clamp(19px, 3vw, 30px); border: 1px solid #e1e8f0; border-radius: 19px; background: #fff; box-shadow: 0 18px 40px -36px rgb(10 31 60 / 42%); }
.v2-shell .app-detail-heading { display: grid; grid-template-columns: 98px minmax(0, 1fr) minmax(205px, .62fr); align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #e8edf3; }
.v2-shell .app-detail-icon { width: 98px; height: 98px; padding: 5px; object-fit: contain; border: 1px solid #e6ebf2; border-radius: 21px; background: linear-gradient(145deg, #fff, #f5f8fc); box-shadow: 0 10px 22px -18px rgb(10 31 60 / 52%); }
.v2-shell .app-detail-identity { min-width: 0; }
.v2-shell .app-detail-identity .eyebrow { margin-bottom: 5px; }
.v2-shell .app-detail-identity h1 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.v2-shell .app-detail-identity > p:last-child { margin: 7px 0 0; color: #65758a; font-size: 12px; line-height: 1.5; }
.v2-shell .app-detail-actions { display: grid; gap: 8px; }
.v2-shell .app-detail-actions .btn { min-height: 43px; justify-content: center; padding-inline: 12px; font-size: 11px; }
.v2-shell .app-detail-actions .btn span,
.v2-shell .app-detail-format .btn span { margin-left: 4px; }
.v2-shell .app-detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-bottom: 1px solid #e8edf3; }
.v2-shell .app-detail-facts > div { display: grid; gap: 4px; min-width: 0; padding: 0 14px; border-left: 1px solid #e8edf3; }
.v2-shell .app-detail-facts > div:first-child { padding-left: 0; border-left: 0; }
.v2-shell .app-detail-facts span { color: #7b899b; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.v2-shell .app-detail-facts strong { overflow-wrap: anywhere; color: #314963; font-size: 12px; font-weight: 700; }
.v2-shell .app-detail-about { padding: 22px 0; }
.v2-shell .app-detail-about .app-kicker { margin-bottom: 6px; }
.v2-shell .app-detail-about h2,
.v2-shell .app-detail-format h2 { margin: 0 0 7px; color: var(--navy); font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.v2-shell .app-detail-about > p:not(.app-kicker),
.v2-shell .app-detail-format > div > p:not(.app-kicker) { max-width: 76ch; margin: 0; color: #5b6c82; font-size: 13px; line-height: 1.65; }
.v2-shell .app-detail-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.v2-shell .app-detail-features li { padding: 7px 10px; border: 1px solid #e5eaf1; border-radius: 999px; background: #f8fafc; color: #4f6075; font-size: 10px; font-weight: 600; }
.v2-shell .app-detail-features li::before { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); content: ""; }
.v2-shell .app-detail-versions,
.v2-shell .app-detail-guidance { border-top: 1px solid #e8edf3; }
.v2-shell .app-detail-versions > summary,
.v2-shell .app-detail-guidance > summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; color: #334a64; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.v2-shell .app-detail-versions > summary::-webkit-details-marker,
.v2-shell .app-detail-guidance > summary::-webkit-details-marker { display: none; }
.v2-shell .app-detail-versions > summary::after,
.v2-shell .app-detail-guidance > summary::after { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid #65758a; border-bottom: 1.5px solid #65758a; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.v2-shell .app-detail-versions[open] > summary::after,
.v2-shell .app-detail-guidance[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.v2-shell .app-detail-versions > summary span { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #f1f4f8; color: #6d7b8e; font-size: 10px; }
.v2-shell .app-detail-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 4px; }
.v2-shell .app-detail-guidance-grid > div { padding: 13px; border: 1px solid #e8edf3; border-radius: 11px; background: #fafbfd; }
.v2-shell .app-detail-guidance-grid h3 { margin: 0 0 5px; color: #334a64; font-size: 11px; }
.v2-shell .app-detail-guidance-grid p { margin: 0; color: #65758a; font-size: 10px; line-height: 1.55; }
.v2-shell .app-detail-format { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 0 0 18px; padding: 17px; border: 1px solid #e8edf3; border-radius: 13px; background: linear-gradient(110deg, #fafbfd, #fff); scroll-margin-top: 95px; }
.v2-shell .app-detail-format .app-kicker { margin-bottom: 5px; }
.v2-shell .app-detail-format h2 { font-size: 18px; }
.v2-shell .app-detail-format > .btn { min-height: 43px; justify-content: center; padding-inline: 15px; font-size: 11px; }
.v2-shell .app-detail-versions, .v2-shell .app-detail-guidance, .v2-shell .app-detail-about { scroll-margin-top: 95px; }
.v2-shell .app-detail-page :is(a, summary, .btn):focus-visible { outline: 3px solid rgb(243 111 33 / 32%); outline-offset: 3px; }
@media (max-width: 900px) {
  .v2-shell .application-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v2-shell .app-detail-heading { grid-template-columns: 82px minmax(0, 1fr); gap: 15px; }
  .v2-shell .app-detail-icon { width: 82px; height: 82px; border-radius: 18px; }
  .v2-shell .app-detail-actions { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
  .v2-shell .app-detail-guidance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .v2-shell .app-directory-hero { padding-block: 14px 15px; }
  .v2-shell .app-directory-hero .crumbs { margin-bottom: 8px; }
  .v2-shell .app-directory-head { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .v2-shell .app-directory-head h1 { font-size: 29px; }
  .v2-shell .app-directory-lead { font-size: 12px; }
  .v2-shell .app-gallery-section { min-height: 0; padding: 19px 0 29px; }
  .v2-shell .app-gallery-head h2 { font-size: 17px; }
  .v2-shell .application-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .v2-shell .application-tile { min-height: 174px; gap: 4px; padding: 9px; border-radius: 12px; }
  .v2-shell .application-tile img { width: clamp(68px, 19vw, 88px); height: clamp(68px, 19vw, 88px); margin-bottom: 5px; border-radius: 16px; }
  .v2-shell .application-tile > strong { font-size: 11px; }
  .v2-shell .application-tile > span { font-size: 9px; }
  .v2-shell .application-tile > small { font-size: 9px; }
  .v2-shell .app-gallery-help { margin-top: 13px; padding: 11px 12px; font-size: 10px; }
  .v2-shell .app-detail-page { min-height: 0; padding: 16px 0 31px; }
  .v2-shell .app-detail-back { min-height: 35px; margin-bottom: 10px; }
  .v2-shell .app-detail-card { padding: 16px; border-radius: 15px; }
  .v2-shell .app-detail-heading { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-bottom: 15px; }
  .v2-shell .app-detail-icon { width: 64px; height: 64px; padding: 3px; border-radius: 14px; }
  .v2-shell .app-detail-identity .eyebrow { font-size: 9px; }
  .v2-shell .app-detail-identity h1 { font-size: clamp(22px, 6vw, 28px); }
  .v2-shell .app-detail-identity > p:last-child { margin-top: 4px; font-size: 10px; }
  .v2-shell .app-detail-actions { grid-template-columns: minmax(0, 1fr); }
  .v2-shell .app-detail-actions .btn { min-height: 41px; }
  .v2-shell .app-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; padding: 14px 0; }
  .v2-shell .app-detail-facts > div { padding: 0 10px; }
  .v2-shell .app-detail-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .v2-shell .app-detail-about { padding: 17px 0; }
  .v2-shell .app-detail-about h2 { font-size: 20px; }
  .v2-shell .app-detail-about > p:not(.app-kicker) { font-size: 12px; }
  .v2-shell .app-detail-features { gap: 6px; }
  .v2-shell .app-detail-features li { font-size: 9px; }
  .v2-shell .app-detail-format { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px; }
  .v2-shell .app-detail-format > .btn { width: 100%; }
  .v2-shell .app-detail-versions > summary, .v2-shell .app-detail-guidance > summary { min-height: 45px; font-size: 11px; }
  .v2-shell .app-detail-guidance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .v2-shell .application-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-shell .application-tile { min-height: 166px; }
  .v2-shell .application-tile img { width: 78px; height: 78px; }
  .v2-shell .app-gallery-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .v2-shell .app-detail-format > .btn { padding-inline: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .application-tile, .v2-shell .app-detail-back,
  .v2-shell .app-detail-versions > summary::after,
  .v2-shell .app-detail-guidance > summary::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Community directory, video channel and compact document discovery */
.v2-shell .community-hub-hero,
.v2-shell .cine-youtube-hero { padding: 18px 0 17px; border-bottom: 1px solid #e5eaf0; background: radial-gradient(ellipse at 88% 18%, rgb(243 111 33 / 9%), transparent 33%), linear-gradient(180deg, #f8fafc, #fff); }
.v2-shell .community-hub-hero .crumbs,
.v2-shell .cine-youtube-hero .crumbs { margin-bottom: 12px; }
.v2-shell .community-hub-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; gap: 28px; padding: 5px 0 18px; }
.v2-shell .community-hub-intro .h1-page { max-width: 760px; margin: 7px 0 10px; font-size: clamp(32px, 3.65vw, 48px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.v2-shell .community-hub-intro .lead { max-width: 66ch; margin: 0; font-size: 15px; line-height: 1.55; }
.v2-shell .community-hub-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.v2-shell .community-hub-actions .btn { min-height: 43px; padding-inline: 15px; font-size: 12px; white-space: nowrap; }
.v2-shell .community-hub-tools { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(165px, .65fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid #e4e9ef; border-radius: 14px; background: #fff; box-shadow: 0 12px 25px -28px #10243c; }
.v2-shell .community-hub-tools > .btn { min-height: 43px; padding-inline: 13px; font-size: 11px; white-space: nowrap; }
.v2-shell .community-hub-main { padding: 27px 0 40px; }
.v2-shell .community-hub-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, .75fr); gap: 22px; align-items: start; }
.v2-shell .community-hub-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.v2-shell .community-hub-section-head .h2 { margin: 3px 0 0; font-size: clamp(22px, 2.4vw, 29px); }
.v2-shell .community-hub-section-head .link { flex: 0 0 auto; font-size: 12px; }
.v2-shell .community-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.v2-shell .community-topic-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 80px; padding: 12px; border: 1px solid #e2e8ef; border-radius: 13px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 10px 24px -28px #0b1f3a; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.v2-shell .community-topic-card:hover { transform: translateY(-2px); border-color: #efc3a5; box-shadow: 0 15px 26px -24px rgb(11 31 58 / 28%); }
.v2-shell .community-topic-code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #fff3e9, #ffeadc); color: #b94b14; font-size: 9px; font-weight: 850; letter-spacing: .05em; }
.v2-shell .community-topic-copy { display: grid; min-width: 0; gap: 3px; }
.v2-shell .community-topic-copy strong { overflow: hidden; color: #18314f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v2-shell .community-topic-copy small { display: -webkit-box; overflow: hidden; color: #758398; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v2-shell .community-topic-count { grid-column: 2 / 4; margin-top: -5px; color: #8a96a5; font-size: 9px; }
.v2-shell .community-hub-aside { display: grid; gap: 10px; }
.v2-shell .community-hub-event,
.v2-shell .community-hub-guide { padding: 16px; border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; }
.v2-shell .community-hub-event { position: relative; overflow: hidden; border-color: #153c60; background: linear-gradient(145deg, #0b1f3a, #164767); color: #fff; }
.v2-shell .community-hub-event::after { position: absolute; right: -44px; bottom: -64px; width: 142px; height: 142px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%; box-shadow: 0 0 0 14px rgb(255 255 255 / 4%), 0 0 0 29px rgb(255 255 255 / 3%); content: ''; pointer-events: none; }
.v2-shell .community-hub-event .eyebrow { color: #ffc49d; }
.v2-shell .community-event-date { display: inline-grid; grid-template-columns: 38px auto; align-items: center; gap: 7px; margin: 2px 0 8px; padding: 6px 9px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; background: rgb(255 255 255 / 8%); }
.v2-shell .community-event-date strong { color: #fff; font: 700 25px/1 'Bricolage Grotesque', sans-serif; }
.v2-shell .community-event-date span { color: #ffc49d; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.v2-shell .community-hub-event h3,
.v2-shell .community-hub-guide h3 { margin: 0 0 6px; font: 700 16px/1.25 'Bricolage Grotesque', sans-serif; }
.v2-shell .community-hub-event > p:not(.eyebrow),
.v2-shell .community-hub-guide > p:not(.eyebrow) { margin: 0 0 12px; color: #687a90; font-size: 11px; line-height: 1.5; }
.v2-shell .community-hub-event > p:not(.eyebrow) { color: #d0dbe5; }
.v2-shell .community-hub-event .link { position: relative; z-index: 1; color: #ffc49d; font-size: 11px; }
.v2-shell .community-hub-guide { background: linear-gradient(145deg, #fff, #fbfcfd); }
.v2-shell .community-hub-latest { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5eaf0; }
.v2-shell .community-hub-latest .community-feed-heading { margin-bottom: 12px; }
.v2-shell .community-hub-latest .community-feed-heading .h2 { margin: 3px 0 4px; font-size: 23px; }
.v2-shell .community-hub-latest .community-feed-heading .muted { margin: 0; font-size: 12px; }
.v2-shell .community-hub-latest .community-post { padding: 15px 18px; }
.v2-shell .community-hub-latest .community-post h3 { font-size: 18px; }

.v2-shell .cine-youtube-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); align-items: end; gap: 28px; padding: 3px 0 2px; }
.v2-shell .cine-youtube-heading .h1-page { margin: 6px 0 0; font-size: clamp(30px, 3.7vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.v2-shell .cine-youtube-search { display: flex; align-items: center; gap: 12px; }
.v2-shell .cine-youtube-search .community-search { flex: 1; }
.v2-shell .cine-youtube-search .cine-count { min-width: max-content; color: #6e7e92; font-size: 11px; font-weight: 650; }
.v2-shell .cine-youtube-content { padding: 22px 0 32px; }
.v2-shell .cine-youtube-page .cine-layout { grid-template-columns: minmax(0, 1.85fr) minmax(285px, .8fr); gap: 18px; }
.v2-shell .cine-youtube-page .cine-feature,
.v2-shell .cine-youtube-page .cine-rail { border-radius: 15px; }
.v2-shell .cine-youtube-page .cine-player-shell { border-radius: 14px 14px 0 0; aspect-ratio: 16 / 9; }
.v2-shell .cine-youtube-page .cine-current { padding: 16px 18px 15px; }
.v2-shell .cine-youtube-page .cine-current h2 { margin: 0 0 12px; color: #10243c; font-size: clamp(18px, 1.9vw, 23px); }
.v2-shell .cine-channel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.v2-shell .cine-channel-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2-shell .cine-channel-brand img { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #e5eaf0; border-radius: 50%; object-fit: cover; }
.v2-shell .cine-channel-brand > span { display: grid; min-width: 0; gap: 3px; }
.v2-shell .cine-channel-brand b { overflow: hidden; color: #19324f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v2-shell .cine-channel-brand small { color: #7c899a; font-size: 10px; }
.v2-shell .cine-share-button { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #dfe5ec; border-radius: 999px; background: #f4f6f8; color: #253d59; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.v2-shell .cine-share-button:hover { transform: translateY(-1px); border-color: #efc3a5; background: #fff2e9; }
.v2-shell .cine-current-description { margin: 12px 0 0; color: #596b80; font-size: 12px; line-height: 1.55; }
.v2-shell .cine-rail { padding: 14px; }
.v2-shell .cine-youtube-page .cine-rail-head { align-items: center; margin-bottom: 8px; }
.v2-shell .cine-youtube-page .cine-rail-head .h3 { font-size: 17px; }
.v2-shell .cine-youtube-page .cine-list { gap: 4px; max-height: 560px; overflow-y: auto; }
.v2-shell .cine-youtube-page .cine-video-item { grid-template-columns: minmax(105px, .95fr) minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 11px; }
.v2-shell .cine-youtube-page .cine-video-item:hover { transform: translateY(-1px); }
.v2-shell .cine-youtube-page .cine-video-thumb { position: relative; display: grid; min-width: 0; aspect-ratio: 16 / 9; border-radius: 8px; background: radial-gradient(circle at 76% 20%, rgb(255 149 67 / 68%), transparent 28%), linear-gradient(140deg, #09213e, #0d6170); }
.v2-shell .cine-youtube-page .cine-video-thumb::after { position: absolute; right: 6px; bottom: 5px; padding: 3px 5px; border-radius: 4px; background: rgb(0 0 0 / 70%); color: #fff; content: 'ITSS'; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.v2-shell .cine-youtube-page .cine-thumb-2 { background: radial-gradient(circle at 24% 20%, rgb(255 180 104 / 55%), transparent 26%), linear-gradient(140deg, #16304d, #824b2b); }
.v2-shell .cine-youtube-page .cine-thumb-3 { background: radial-gradient(circle at 70% 25%, rgb(45 185 196 / 55%), transparent 26%), linear-gradient(140deg, #173c53, #243357); }
.v2-shell .cine-youtube-page .cine-thumb-4 { background: radial-gradient(circle at 30% 30%, rgb(248 124 56 / 58%), transparent 28%), linear-gradient(140deg, #1b2d49, #5a3847); }
.v2-shell .cine-youtube-page .cine-thumb-play { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(5 18 34 / 44%); color: #fff; font-size: 10px; }
.v2-shell .cine-youtube-page .cine-video-thumb > b { display: none; }
.v2-shell .cine-youtube-page .cine-video-item-copy { align-content: start; gap: 5px; }
.v2-shell .cine-youtube-page .cine-video-item-copy strong { font-size: 12px; }
.v2-shell .cine-youtube-page .cine-video-item-copy small { font-size: 9px; line-height: 1.4; }
.v2-shell .cine-youtube-page .cine-item-arrow { display: none; }
.v2-shell .cine-rail-note { margin: 7px 8px 0; color: #8692a0; font-size: 10px; line-height: 1.45; }
.v2-shell .cine-bottom-band { padding: 18px 0 28px; border-top: 1px solid #e7ebf0; background: #f8fafc; }
.v2-shell .cine-youtube-page .cine-bottom .h2 { margin: 4px 0 0; font-size: clamp(18px, 2vw, 24px); }
.v2-shell .community-forum-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 20px; }
.v2-shell .community-forum-topics { position: sticky; top: 102px; display: grid; gap: 3px; padding: 14px; border: 1px solid #e2e8ef; border-radius: 14px; background: #fff; }
.v2-shell .community-forum-topics > .eyebrow { margin-bottom: 2px; }
.v2-shell .community-forum-topics h2 { margin: 0 0 6px; color: #19324f; font: 700 16px/1.25 'Bricolage Grotesque', sans-serif; }
.v2-shell .community-forum-topic { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; color: #52647a; font-size: 11px; text-decoration: none; transition: background .16s ease, color .16s ease; }
.v2-shell .community-forum-topic:hover,
.v2-shell .community-forum-topic[aria-current="page"] { background: #fff1e7; color: #b74b13; }
.v2-shell .community-forum-topic span { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 99px; background: #f2f5f8; color: #758398; font-size: 9px; font-weight: 700; }
.v2-shell .community-forum-help { margin-top: 8px; padding: 11px; border-radius: 10px; background: #f5f8fb; }
.v2-shell .community-forum-help strong { color: #19324f; font-size: 11px; }
.v2-shell .community-forum-help p { margin: 4px 0 7px; color: #718096; font-size: 10px; line-height: 1.45; }
.v2-shell .community-forum-help a { color: #b74b13; font-size: 10px; font-weight: 750; text-decoration: none; }
.v2-shell .community-forum-main { min-width: 0; }
.v2-shell .community-forum-main .community-feed-heading { margin-bottom: 12px; }
.v2-shell .community-forum-main .community-feed-heading .h2 { font-size: clamp(22px, 2.5vw, 30px); }

.v2-shell.library-page .library-hero { padding-block: 15px 18px; }
.v2-shell.library-page .library-hero-row { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 22px; padding: 8px 0 7px; }
.v2-shell.library-page .library-hero-row .h1-page { margin-block: 5px 8px; font-size: clamp(31px, 3.6vw, 46px); }
.v2-shell.library-page .library-hero-row .lead { font-size: 14px; line-height: 1.5; }
.v2-shell.library-page .library-hero-note { padding: 14px 16px; }
.v2-shell.library-page .library-catalogue { padding-top: 24px; }
.v2-shell.library-page .library-grid .lib-card:only-child { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(260px, .62fr) minmax(0, 1fr); align-items: stretch; gap: 0; }
.v2-shell.library-page .library-grid .lib-card:only-child .lib-cover { min-height: 220px; margin: 14px; }
.v2-shell.library-page .library-grid .lib-card:only-child .lib-card-body { justify-content: center; padding: 22px clamp(18px, 3vw, 34px); }
.v2-shell.library-page .library-grid .lib-card:only-child .lib-card-description { min-height: 0; max-width: 62ch; }
.v2-shell.library-page .lib-tools .chip[hidden] { display: none !important; }
@media (max-width: 900px) {
  .v2-shell .community-forum-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 12px; }
  .v2-shell .community-forum-topics { padding: 11px; }
  .v2-shell .community-hub-grid { grid-template-columns: minmax(0, 1.45fr) minmax(225px, .8fr); gap: 14px; }
  .v2-shell .community-hub-tools { grid-template-columns: minmax(0, 1fr) minmax(155px, .7fr); }
  .v2-shell .community-hub-tools > .btn { grid-column: 1 / -1; justify-self: start; }
  .v2-shell .cine-youtube-page .cine-layout { grid-template-columns: minmax(0, 1.4fr) minmax(245px, .85fr); gap: 12px; }
  .v2-shell .cine-youtube-page .cine-video-item { grid-template-columns: minmax(80px, .9fr) minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 680px) {
  .v2-shell .community-forum-layout { grid-template-columns: 1fr; gap: 12px; }
  .v2-shell .community-forum-topics { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; }
  .v2-shell .community-forum-topics > .eyebrow,
  .v2-shell .community-forum-topics h2,
  .v2-shell .community-forum-help { grid-column: 1 / -1; }
  .v2-shell .community-forum-topic { min-height: 32px; font-size: 9px; }
  .v2-shell .community-hub-hero,
  .v2-shell .cine-youtube-hero { padding: 12px 0 13px; }
  .v2-shell .community-hub-hero .crumbs,
  .v2-shell .cine-youtube-hero .crumbs { margin-bottom: 8px; }
  .v2-shell .community-hub-intro { grid-template-columns: 1fr; gap: 11px; padding: 3px 0 12px; }
  .v2-shell .community-hub-intro .h1-page { margin: 4px 0 7px; font-size: clamp(29px, 8vw, 39px); }
  .v2-shell .community-hub-intro .lead { font-size: 12px; line-height: 1.5; }
  .v2-shell .community-hub-actions { justify-content: flex-start; }
  .v2-shell .community-hub-actions .btn { min-height: 39px; }
  .v2-shell .community-hub-tools { grid-template-columns: 1fr; gap: 7px; padding: 8px; }
  .v2-shell .community-hub-tools > .btn { grid-column: auto; width: 100%; justify-content: center; }
  .v2-shell .community-hub-main { padding: 19px 0 27px; }
  .v2-shell .community-hub-grid { grid-template-columns: 1fr; gap: 12px; }
  .v2-shell .community-hub-section-head { align-items: flex-start; }
  .v2-shell .community-hub-section-head .h2 { font-size: 21px; }
  .v2-shell .community-hub-section-head .link { margin-top: 5px; font-size: 10px; }
  .v2-shell .community-topic-grid { gap: 7px; }
  .v2-shell .community-topic-card { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; min-height: 74px; padding: 9px; }
  .v2-shell .community-topic-code { width: 34px; height: 34px; border-radius: 10px; font-size: 8px; }
  .v2-shell .community-topic-copy strong { font-size: 10px; }
  .v2-shell .community-topic-copy small { font-size: 9px; }
  .v2-shell .community-topic-count { font-size: 8px; }
  .v2-shell .community-hub-aside { grid-template-columns: 1fr 1fr; gap: 7px; }
  .v2-shell .community-hub-event,
  .v2-shell .community-hub-guide { padding: 12px; }
  .v2-shell .community-hub-event h3,
  .v2-shell .community-hub-guide h3 { font-size: 13px; }
  .v2-shell .community-hub-event > p:not(.eyebrow),
  .v2-shell .community-hub-guide > p:not(.eyebrow) { font-size: 9px; }
  .v2-shell .community-hub-latest { margin-top: 17px; padding-top: 16px; }
  .v2-shell .community-hub-latest .community-feed-heading { align-items: flex-start; }
  .v2-shell .community-hub-latest .community-feed-heading .h2 { font-size: 20px; }
  .v2-shell .community-hub-latest .community-post { padding: 13px; }
  .v2-shell .community-hub-latest .community-post h3 { font-size: 16px; }
  .v2-shell .cine-youtube-heading { grid-template-columns: 1fr; gap: 10px; padding: 2px 0 0; }
  .v2-shell .cine-youtube-heading .h1-page { margin-top: 4px; font-size: clamp(26px, 7.5vw, 35px); }
  .v2-shell .cine-youtube-search { gap: 8px; }
  .v2-shell .cine-youtube-search .cine-count { font-size: 10px; }
  .v2-shell .cine-youtube-content { padding: 14px 0 20px; }
  .v2-shell .cine-youtube-page .cine-layout { grid-template-columns: 1fr; gap: 10px; }
  .v2-shell .cine-youtube-page .cine-feature,
  .v2-shell .cine-youtube-page .cine-rail { border-radius: 12px; }
  .v2-shell .cine-youtube-page .cine-current { padding: 13px; }
  .v2-shell .cine-youtube-page .cine-current h2 { margin-bottom: 8px; font-size: 17px; }
  .v2-shell .cine-channel-brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .v2-shell .cine-channel-brand b { font-size: 11px; }
  .v2-shell .cine-channel-brand small { font-size: 9px; }
  .v2-shell .cine-share-button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
  .v2-shell .cine-current-description { margin-top: 9px; font-size: 11px; }
  .v2-shell .cine-rail { padding: 11px; }
  .v2-shell .cine-youtube-page .cine-list { max-height: none; }
  .v2-shell .cine-youtube-page .cine-video-item { grid-template-columns: minmax(118px, .8fr) minmax(0, 1fr); padding: 6px; }
  .v2-shell .cine-youtube-page .cine-video-item-copy strong { font-size: 11px; }
  .v2-shell .cine-rail-note { margin-inline: 6px; }
  .v2-shell .cine-bottom-band { padding: 15px 0 20px; }
  .v2-shell.library-page .library-hero { padding-block: 10px 13px; }
  .v2-shell.library-page .library-hero-row { grid-template-columns: 1fr; gap: 11px; padding: 4px 0 0; }
  .v2-shell.library-page .library-hero-row .h1-page { font-size: clamp(29px, 8vw, 36px); }
  .v2-shell.library-page .library-hero-row .lead { font-size: 12px; }
  .v2-shell.library-page .library-hero-note { padding: 11px 12px; }
  .v2-shell.library-page .library-catalogue { padding-top: 19px; }
  .v2-shell.library-page .library-grid .lib-card:only-child { grid-template-columns: 1fr; }
  .v2-shell.library-page .library-grid .lib-card:only-child .lib-cover { min-height: 165px; margin: 10px 10px 0; }
  .v2-shell.library-page .library-grid .lib-card:only-child .lib-card-body { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell .community-topic-card,
  .v2-shell .cine-share-button { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 680px) {
  .v2-shell.library-page .lib-tools .chips { flex-wrap: wrap; overflow: visible; padding: 0; }
  .v2-shell.library-page .lib-tools .chip { flex: 0 1 auto; max-width: 100%; line-height: 1.25; white-space: normal; }
}

/* Bibliothèque compacte : le document reste au premier plan, pas son cadre. */
.v2-shell.library-page > .announce { display: flex; }
.v2-shell.library-page .site-header .wrap { min-height: 68px; }
.v2-shell.library-page .library-hero { padding: 3px 0 13px; background: #fff; }
.v2-shell.library-page .library-hero .crumbs { margin-bottom: 7px; }
.v2-shell.library-page .library-hero-row { display: block; padding: 5px 0 0; }
.v2-shell.library-page .library-intro .eyebrow { margin-bottom: 3px; }
.v2-shell.library-page .library-hero .h1-page { margin: 0 0 5px; font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.v2-shell.library-page .library-hero .lead { max-width: 66ch; font-size: 14px; line-height: 1.5; }
.v2-shell.library-page .library-catalogue { padding: 17px 0 26px; }
.v2-shell.library-page .library-section-head { align-items: center; margin-bottom: 11px; }
.v2-shell.library-page .library-section-head .eyebrow { margin-bottom: 2px; }
.v2-shell.library-page .library-section-head .h2 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); }
.v2-shell.library-page .library-updated { margin: 0; font-size: 11px; }
.v2-shell.library-page .lib-tools { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.5fr); gap: 9px 13px; margin-bottom: 12px; padding: 9px; border-radius: 12px; }
.v2-shell.library-page .lib-search { min-height: 40px; }
.v2-shell.library-page .lib-search input { min-height: 38px; }
.v2-shell.library-page .lib-tools .chip { min-height: 31px; padding: 6px 9px; font-size: 10px; }
.v2-shell.library-page .library-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 11px; }
.v2-shell.library-page .library-grid:has(.lib-card:only-child) { max-width: 800px; }
.v2-shell.library-page .lib-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0; padding: 10px; border-radius: 13px; box-shadow: 0 10px 22px -24px #0b1f3a; }
.v2-shell.library-page .library-grid .lib-card:only-child { grid-template-columns: 132px minmax(0, 1fr); }
.v2-shell.library-page .lib-card:hover { transform: translateY(-2px); }
.v2-shell.library-page .lib-cover { min-height: 170px; margin: 0; padding: 11px; border-radius: 9px; }
.v2-shell.library-page .library-grid .lib-card:only-child .lib-cover { min-height: 170px; margin: 0; }
.v2-shell.library-page .lib-cover-type { width: 30px; height: 30px; border-radius: 8px; }
.v2-shell.library-page .lib-cover-title { max-width: 100%; font-size: 15px; }
.v2-shell.library-page .lib-cover-foot { font-size: 8px; }
.v2-shell.library-page .lib-card-body { justify-content: center; min-width: 0; padding: 4px 5px 4px 13px; }
.v2-shell.library-page .library-grid .lib-card:only-child .lib-card-body { justify-content: center; padding: 4px 5px 4px 13px; }
.v2-shell.library-page .lib-card-category { margin-bottom: 4px; font-size: 8px; letter-spacing: .09em; }
.v2-shell.library-page .lib-card h3 { font-size: 16px; line-height: 1.25; }
.v2-shell.library-page .lib-card-description { min-height: 0; margin: 5px 0 8px; font-size: 11px; line-height: 1.45; }
.v2-shell.library-page .lib-card-meta { margin: 0 0 9px; font-size: 9px; }
.v2-shell.library-page .lib-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.v2-shell.library-page .lib-card-actions .btn { width: auto; min-height: 34px; padding: 7px 11px; font-size: 11px; }
.v2-shell.library-page .lib-download-link { display: inline-flex; align-items: center; gap: 5px; color: #a84a19; font-size: 11px; font-weight: 700; text-decoration: none; }
.v2-shell.library-page .lib-download-link:hover { color: #733211; text-decoration: underline; }
.v2-shell.library-page .lib-download-link svg { width: 14px; height: 14px; }
.v2-shell.library-page .library-help-strip { padding: 0 0 22px; }
.v2-shell.library-page .library-help-strip .wrap { align-items: center; gap: 10px 28px; padding: 14px 17px; border: 1px solid #e5e9ef; border-radius: 12px; background: #fafbfd; }
.v2-shell.library-page .library-help-strip .h2 { margin: 2px 0 0; font-size: 17px; }
.v2-shell.library-page .library-help-strip .lead { margin: 0; font-size: 12px; line-height: 1.5; }
.v2-shell.library-page .library-help-strip .actions { gap: 8px; margin-top: 8px !important; }
.v2-shell.library-page .library-reader { width: min(1040px, calc(100vw - 36px)); max-width: none; max-height: min(92dvh, 920px); padding: 0; overflow: hidden; border: 1px solid #dbe2ea; border-radius: 16px; background: #f7f8fa; color: #142b48; box-shadow: 0 26px 90px rgb(4 15 29 / 34%); }
.v2-shell.library-page .library-reader::backdrop { background: rgb(4 15 29 / 70%); backdrop-filter: blur(3px); }
.v2-shell.library-page .library-reader-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px 10px; background: #fff; }
.v2-shell.library-page .library-reader-head .eyebrow { margin: 0 0 3px; font-size: 9px; }
.v2-shell.library-page .library-reader-head h2 { margin: 0; font: 700 18px/1.25 'Bricolage Grotesque', sans-serif; }
.v2-shell.library-page .library-reader-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #e1e6ec; border-radius: 50%; background: #fff; color: #243a55; font-size: 23px; cursor: pointer; }
.v2-shell.library-page .library-reader-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; border-block: 1px solid #e8ebef; background: #fff; }
.v2-shell.library-page .library-reader-tools p { margin: 0; color: #69798d; font-size: 11px; }
.v2-shell.library-page .library-reader-tools .btn { min-height: 32px; }
.v2-shell.library-page .library-reader iframe { display: block; width: 100%; height: min(72dvh, 740px); border: 0; background: #e8ebef; }
.v2-shell.library-page .library-reader :focus-visible { outline: 3px solid #f36f21; outline-offset: 2px; }
@media (max-width: 680px) {
  .v2-shell.library-page .library-hero { padding: 0 0 11px; }
  .v2-shell.library-page .library-hero-row { padding-top: 3px; }
  .v2-shell.library-page .library-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .v2-shell.library-page .lib-tools { grid-template-columns: 1fr; }
  .v2-shell.library-page .lib-tools .chips { flex-wrap: wrap; overflow: visible; padding: 0; }
  .v2-shell.library-page .lib-tools .chip { flex: 0 1 auto; max-width: 100%; line-height: 1.25; white-space: normal; }
  .v2-shell.library-page .library-grid,
  .v2-shell.library-page .library-grid:has(.lib-card:only-child) { grid-template-columns: 1fr; max-width: none; }
  .v2-shell.library-page .lib-card { grid-template-columns: 104px minmax(0, 1fr); padding: 8px; }
  .v2-shell.library-page .library-grid .lib-card:only-child { grid-template-columns: 104px minmax(0, 1fr); }
  .v2-shell.library-page .lib-cover { min-height: 144px; padding: 9px; }
  .v2-shell.library-page .library-grid .lib-card:only-child .lib-cover { min-height: 144px; margin: 0; }
  .v2-shell.library-page .lib-cover-head { font-size: 7px; letter-spacing: .08em; }
  .v2-shell.library-page .lib-cover-type { width: 25px; height: 25px; font-size: 8px; }
  .v2-shell.library-page .lib-cover-title { font-size: 12px; }
  .v2-shell.library-page .lib-card-body { padding-left: 10px; }
  .v2-shell.library-page .library-grid .lib-card:only-child .lib-card-body { padding: 4px 2px 4px 10px; }
  .v2-shell.library-page .lib-card h3 { font-size: 14px; }
  .v2-shell.library-page .lib-card-description { font-size: 10px; }
  .v2-shell.library-page .lib-card-actions { gap: 6px 9px; }
  .v2-shell.library-page .lib-card-actions .btn { min-height: 31px; padding: 6px 8px; font-size: 10px; }
  .v2-shell.library-page .lib-download-link { font-size: 10px; }
  .v2-shell.library-page .library-help-strip { padding-bottom: 14px; }
  .v2-shell.library-page .library-help-strip .wrap { grid-template-columns: 1fr; padding: 12px; }
  .v2-shell.library-page .library-reader { width: calc(100vw - 18px); max-height: 94dvh; border-radius: 12px; }
  .v2-shell.library-page .library-reader-head { padding: 10px 12px 8px; }
  .v2-shell.library-page .library-reader-head h2 { font-size: 15px; }
  .v2-shell.library-page .library-reader-tools { padding: 7px 12px; }
  .v2-shell.library-page .library-reader iframe { height: 76dvh; }
}

/* ITSS Cine watch experience: restrained, dark and focused on the video. */
.cine-watch-shell {
  --cine-bg: #0f0f0f;
  --cine-panel: #181818;
  --cine-panel-raised: #242424;
  --cine-line: #303030;
  --cine-text: #f1f1f1;
  --cine-muted: #aaa;
  --cine-accent: #ff7a24;
  min-height: 100vh;
  margin: 0;
  background: var(--cine-bg);
  color: var(--cine-text);
}
.cine-watch-shell .announce,
.cine-watch-shell .site-header,
.cine-watch-shell .site-footer { display: none !important; }
.cine-watch-shell .skip { z-index: 1400; }
.cine-app-header { position: sticky; z-index: 1200; top: 0; height: 64px; border-bottom: 1px solid #252525; background: rgb(15 15 15 / 96%); backdrop-filter: blur(16px); }
.cine-app-header-inner { display: grid; width: min(100% - 40px, 1740px); height: 100%; grid-template-columns: 40px 210px minmax(220px, 680px) auto; align-items: center; gap: 17px; margin: auto; }
.cine-menu-toggle { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--cine-text); cursor: pointer; transition: background .16s ease; }
.cine-menu-toggle:hover { background: #272727; }
.cine-menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cine-watch-shell .cine-watch-brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--cine-text); text-decoration: none; }
.cine-watch-shell .cine-watch-brand img { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #3a3a3a; border-radius: 50%; object-fit: cover; }
.cine-watch-shell .cine-watch-brand > span { display: grid; min-width: 0; gap: 1px; }
.cine-watch-shell .cine-watch-brand b { color: #f6f6f6; font: 700 16px/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.025em; white-space: nowrap; }
.cine-watch-shell .cine-watch-brand em { color: var(--cine-accent); font-style: normal; }
.cine-watch-shell .cine-watch-brand small { color: #929292; font-size: 10px; white-space: nowrap; }
.cine-watch-shell .cine-watch-search { display: grid; min-width: 0; height: 42px; grid-template-columns: minmax(0, 1fr) 52px; justify-self: center; overflow: hidden; border: 1px solid #383838; border-radius: 22px; background: #121212; }
.cine-watch-shell .cine-watch-search:focus-within { border-color: #5c5c5c; box-shadow: inset 1px 0 #1c1c1c, 0 0 0 1px #1c1c1c; }
.cine-watch-shell .cine-watch-search input { width: 100%; min-width: 0; height: 40px; padding: 0 17px; border: 0; outline: 0; background: transparent; color: var(--cine-text); font: 400 14px/1 'Instrument Sans', sans-serif; }
.cine-watch-shell .cine-watch-search input::placeholder { color: #858585; }
.cine-watch-shell .cine-watch-search input::-webkit-search-cancel-button { cursor: pointer; }
.cine-watch-shell .cine-watch-search button { display: grid; width: 52px; height: 40px; place-items: center; border: 0; border-left: 1px solid #383838; background: #222; color: #eee; cursor: pointer; }
.cine-watch-shell .cine-watch-search button:hover { background: #303030; }
.cine-watch-shell .cine-watch-search button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cine-watch-login { display: inline-flex; align-items: center; justify-self: end; gap: 7px; padding: 9px 15px; border: 1px solid #3f3f3f; border-radius: 22px; color: #c9dcff; font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .16s ease, border-color .16s ease; }
.cine-watch-login svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cine-watch-login:hover { border-color: #607a9e; background: #192334; }
.cine-navigation { position: fixed; z-index: 1250; top: 64px; bottom: 0; left: 0; display: flex; width: min(280px, calc(100vw - 56px)); flex-direction: column; gap: 4px; padding: 17px 12px; border-right: 1px solid #2e2e2e; background: #151515; box-shadow: 18px 0 42px rgb(0 0 0 / 25%); transform: translateX(-105%); transition: transform .2s ease; }
.cine-nav-open .cine-navigation { transform: translateX(0); }
.cine-nav-backdrop:not([hidden]) { position: fixed; z-index: 1240; inset: 64px 0 0; background: rgb(0 0 0 / 48%); }
.cine-navigation a { display: flex; min-height: 44px; align-items: center; gap: 13px; padding: 0 12px; border-radius: 9px; color: #dedede; font-size: 13px; text-decoration: none; transition: background .16s ease; }
.cine-navigation a:hover,
.cine-navigation a[aria-current="page"] { background: #292929; color: #fff; }
.cine-navigation a[aria-current="page"] { font-weight: 700; }
.cine-navigation a > span { width: 20px; color: #bbb; font-size: 20px; text-align: center; }
.cine-nav-label { margin: 4px 12px 7px; color: #858585; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cine-nav-divider { height: 1px; margin: 10px 8px; background: #303030; }
.cine-nav-note { margin: auto 11px 5px; padding-top: 15px; border-top: 1px solid #303030; color: #888; font-size: 11px; line-height: 1.55; }
.cine-watch-shell .cine-youtube-content { min-height: calc(100vh - 64px); padding: 22px 0 46px; background: var(--cine-bg); }
.cine-watch-shell .cine-youtube-content > .wrap { width: min(100% - 48px, 1740px); max-width: none; margin-inline: auto; }
.cine-watch-shell .cine-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 396px); align-items: start; gap: 24px; }
.cine-watch-shell .cine-main-column { min-width: 0; }
.cine-watch-shell .cine-feature { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cine-watch-shell .cine-player-shell { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; background: #000; }
.cine-watch-shell .cine-player-shell video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.cine-watch-shell .cine-player-shell video[hidden] { display: none; }
.cine-watch-shell .cine-placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 11px; padding: 24px; background: #111; color: #aaa; text-align: center; }
.cine-watch-shell .cine-placeholder[hidden] { display: none; }
.cine-watch-shell .cine-placeholder strong { color: #f3f3f3; font-size: 17px; }
.cine-watch-shell .cine-placeholder > span:last-child { font-size: 13px; }
.cine-watch-shell .cine-play { display: grid; width: 50px; height: 50px; place-items: center; padding-left: 3px; border: 1px solid #555; border-radius: 50%; color: var(--cine-accent); font-size: 18px; }
.cine-watch-shell .cine-current { padding: 14px 0 0; }
.cine-watch-shell .cine-current h1 { margin: 0 0 12px; color: #f4f4f4; font: 700 clamp(18px, 1.65vw, 22px)/1.28 'Instrument Sans', sans-serif; letter-spacing: -.015em; }
.cine-watch-shell .cine-channel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0 12px; border: 0; }
.cine-watch-shell .cine-channel-brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.cine-watch-shell .cine-channel-brand img { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #353535; border-radius: 50%; object-fit: cover; }
.cine-watch-shell .cine-channel-brand > span { display: grid; min-width: 0; gap: 4px; }
.cine-watch-shell .cine-channel-brand b { color: #f1f1f1; font-size: 13px; font-weight: 700; }
.cine-watch-shell .cine-channel-brand small { display: flex; flex-wrap: wrap; gap: 5px; color: var(--cine-muted); font-size: 11px; }
.cine-watch-shell .cine-video-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cine-watch-shell .cine-action-button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 20px; background: #272727; color: #eee; font: 600 12px/1 'Instrument Sans', sans-serif; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.cine-watch-shell .cine-action-button:hover:not(:disabled) { transform: translateY(-1px); background: #383838; }
.cine-watch-shell .cine-action-button:disabled { cursor: not-allowed; opacity: .55; }
.cine-watch-shell .cine-action-button > span:first-child { font-size: 17px; }
.cine-watch-shell .cine-like-button b { display: inline-grid; min-width: 19px; height: 19px; place-items: center; padding: 0 4px; border-radius: 11px; background: rgb(255 255 255 / 10%); color: #c4c4c4; font-size: 10px; }
.cine-watch-shell .cine-like-button.is-liked { background: #3b211c; color: #ffb391; }
.cine-watch-shell .cine-action-status { min-height: 0; margin: -4px 0 7px; color: #b7c8e3; font-size: 11px; }
.cine-watch-shell .cine-action-status:empty { display: none; }
.cine-watch-shell .cine-action-status a { margin-left: 5px; color: #9fc5ff; text-decoration: underline; }
.cine-watch-shell .cine-current-description { margin: 8px 0 0; padding: 14px 16px; border: 1px solid #292929; border-radius: 12px; background: #1b1b1b; color: #d1d1d1; font-size: 12px; line-height: 1.6; }
.cine-watch-shell .cine-comments { margin-top: 24px; }
.cine-watch-shell .cine-comments-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.cine-watch-shell .cine-comments-heading h2 { margin: 0; color: #f1f1f1; font-size: 17px; font-weight: 700; }
.cine-watch-shell .cine-comments-heading h2 span { margin-left: 5px; color: #a7a7a7; font-size: 13px; font-weight: 500; }
.cine-watch-shell .cine-comments-heading a { color: #a8c8f4; font-size: 11px; text-decoration: none; }
.cine-watch-shell .cine-comment-form { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 17px; }
.cine-watch-shell .cine-comment-form textarea { width: 100%; min-height: 42px; max-height: 160px; resize: vertical; padding: 11px 12px; border: 0; border-bottom: 1px solid #444; border-radius: 0; outline: 0; background: transparent; color: #f4f4f4; font: 400 13px/1.5 'Instrument Sans', sans-serif; }
.cine-watch-shell .cine-comment-form textarea::placeholder { color: #929292; }
.cine-watch-shell .cine-comment-form textarea:focus { border-bottom-color: #bbb; }
.cine-watch-shell .cine-comment-submit { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; }
.cine-watch-shell .cine-comment-submit [role="status"] { color: #aaa; font-size: 11px; }
.cine-watch-shell .cine-comment-submit [role="status"] a { margin-left: 5px; color: #a8c8f4; }
.cine-watch-shell .cine-comment-submit button { min-height: 33px; padding-inline: 13px; }
.cine-watch-shell .cine-comment-list { display: grid; gap: 16px; }
.cine-watch-shell .cine-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 11px; }
.cine-watch-shell .cine-comment-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #343434; color: #e4e4e4; font-size: 12px; font-weight: 700; }
.cine-watch-shell .cine-comment-copy { min-width: 0; }
.cine-watch-shell .cine-comment-copy > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cine-watch-shell .cine-comment-copy strong { color: #e9e9e9; font-size: 11px; }
.cine-watch-shell .cine-comment-copy time { color: #909090; font-size: 10px; }
.cine-watch-shell .cine-comment-copy p { margin: 4px 0 0; color: #ddd; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cine-watch-shell .cine-comments-empty { margin: 0; padding: 15px 0; color: #999; font-size: 12px; }
.cine-watch-shell .cine-rail { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cine-watch-shell .cine-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 11px; }
.cine-watch-shell .cine-rail-head .eyebrow { margin: 0 0 2px; color: #999; font-size: 9px; letter-spacing: .1em; }
.cine-watch-shell .cine-rail-head .h3 { margin: 0; color: #f1f1f1; font-size: 16px; font-weight: 700; }
.cine-watch-shell .cine-rail-head > span:last-child { color: #999; font-size: 10px; }
.cine-watch-shell .cine-list { display: grid; max-height: calc(100vh - 110px); gap: 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #464646 transparent; }
.cine-watch-shell .cine-video-item { display: grid; width: 100%; grid-template-columns: minmax(130px, 43%) minmax(0, 1fr); align-items: start; gap: 10px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .16s ease; }
.cine-watch-shell .cine-video-item:hover,
.cine-watch-shell .cine-video-item.is-active { background: #202020; }
.cine-watch-shell .cine-video-thumb { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #242424; }
.cine-watch-shell .cine-video-thumb img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.cine-watch-shell .cine-video-thumb.has-thumbnail img { opacity: 1; }
.cine-watch-shell .cine-thumb-fallback { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 3px; background: #202020; color: #a8a8a8; font: 700 12px/1 'Bricolage Grotesque', sans-serif; letter-spacing: .14em; }
.cine-watch-shell .cine-thumb-fallback b { color: var(--cine-accent); font-size: 10px; }
.cine-watch-shell .cine-thumb-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / 88%); font-size: 15px; opacity: 0; transition: opacity .16s ease; }
.cine-watch-shell .cine-video-item:hover .cine-thumb-play,
.cine-watch-shell .cine-video-item.is-active .cine-thumb-play { opacity: 1; }
.cine-watch-shell .cine-video-item-copy { display: grid; min-width: 0; align-content: start; gap: 5px; padding: 2px 7px 2px 0; }
.cine-watch-shell .cine-video-item-copy strong { display: -webkit-box; overflow: hidden; color: #e7e7e7; font-size: 12px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cine-watch-shell .cine-video-item-copy small { overflow: hidden; color: #999; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cine-watch-shell .cine-rail-note { margin: 12px 0 0; color: #858585; font-size: 10px; line-height: 1.45; }
.cine-watch-shell .cine-empty { display: grid; justify-items: start; gap: 7px; padding: 20px 14px; border: 1px solid #303030; border-radius: 10px; background: #181818; color: #aaa; }
.cine-watch-shell .cine-empty > span { color: var(--cine-accent); font-size: 19px; }
.cine-watch-shell .cine-empty p { margin: 0; color: #eee; font-size: 13px; }
.cine-watch-shell .cine-empty small { color: #999; font-size: 11px; }
.cine-watch-shell .cine-retry { min-height: 34px; padding: 0 12px; border: 1px solid #424242; border-radius: 18px; background: #292929; color: #eee; cursor: pointer; }
.cine-watch-shell :is(button, a, input, textarea):focus-visible { outline: 2px solid #ff9c5e; outline-offset: 2px; }

@media (max-width: 1100px) {
  .cine-watch-shell .cine-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 36%); gap: 18px; }
  .cine-watch-shell .cine-video-item { grid-template-columns: minmax(112px, 43%) minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 900px) {
  .cine-watch-shell .cine-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cine-watch-shell .cine-list { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cine-watch-shell .cine-video-item { grid-template-columns: minmax(120px, .85fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cine-app-header { height: 58px; }
  .cine-app-header-inner { width: calc(100% - 18px); grid-template-columns: 34px 105px minmax(0, 1fr) 34px; gap: 5px; }
  .cine-menu-toggle { width: 34px; height: 34px; }
  .cine-watch-shell .cine-watch-brand { gap: 6px; }
  .cine-watch-shell .cine-watch-brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .cine-watch-shell .cine-watch-brand b { font-size: 13px; }
  .cine-watch-shell .cine-watch-brand small { display: none; }
  .cine-watch-shell .cine-watch-search { height: 37px; grid-template-columns: minmax(0, 1fr) 38px; border-radius: 19px; }
  .cine-watch-shell .cine-watch-search input { height: 35px; padding-inline: 10px; font-size: 11px; }
  .cine-watch-shell .cine-watch-search button { width: 38px; height: 35px; }
  .cine-watch-shell .cine-watch-search button svg { width: 17px; height: 17px; }
  .cine-watch-login { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; padding: 0; border-color: transparent; }
  .cine-watch-login span { display: none; }
  .cine-watch-login svg { display: block; }
  .cine-navigation { top: 58px; }
  .cine-nav-backdrop:not([hidden]) { inset-block-start: 58px; }
  .cine-watch-shell .cine-youtube-content { min-height: calc(100vh - 58px); padding: 10px 0 28px; }
  .cine-watch-shell .cine-youtube-content > .wrap { width: 100%; }
  .cine-watch-shell .cine-layout { gap: 20px; }
  .cine-watch-shell .cine-player-shell { border-radius: 0; }
  .cine-watch-shell .cine-current,
  .cine-watch-shell .cine-comments,
  .cine-watch-shell .cine-rail { margin-inline: 14px; }
  .cine-watch-shell .cine-current { padding-top: 12px; }
  .cine-watch-shell .cine-current h1 { margin-bottom: 9px; font-size: 17px; }
  .cine-watch-shell .cine-channel-row { align-items: flex-start; gap: 8px; padding-block: 7px 9px; }
  .cine-watch-shell .cine-channel-brand { gap: 8px; }
  .cine-watch-shell .cine-channel-brand img { width: 35px; height: 35px; flex-basis: 35px; }
  .cine-watch-shell .cine-channel-brand b { font-size: 11px; }
  .cine-watch-shell .cine-channel-brand small { gap: 3px; font-size: 9px; }
  .cine-watch-shell .cine-video-actions { gap: 5px; }
  .cine-watch-shell .cine-action-button { min-height: 32px; gap: 5px; padding-inline: 9px; font-size: 10px; }
  .cine-watch-shell .cine-action-button > span:first-child { font-size: 14px; }
  .cine-watch-shell .cine-like-button b { min-width: 16px; height: 16px; font-size: 9px; }
  .cine-watch-shell .cine-current-description { margin-top: 6px; padding: 10px 11px; font-size: 11px; }
  .cine-watch-shell .cine-comments { margin-top: 19px; }
  .cine-watch-shell .cine-comments-heading h2 { font-size: 15px; }
  .cine-watch-shell .cine-comments-heading a { font-size: 10px; }
  .cine-watch-shell .cine-comment { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .cine-watch-shell .cine-comment-avatar { width: 27px; height: 27px; }
  .cine-watch-shell .cine-rail { padding-top: 13px; border-top: 1px solid #303030; }
  .cine-watch-shell .cine-list { grid-template-columns: 1fr; gap: 8px; }
  .cine-watch-shell .cine-video-item { grid-template-columns: minmax(130px, 39%) minmax(0, 1fr); gap: 9px; padding: 4px; }
  .cine-watch-shell .cine-video-item-copy { gap: 4px; }
  .cine-watch-shell .cine-video-item-copy strong { font-size: 11px; }
  .cine-watch-shell .cine-video-item-copy small { font-size: 9px; }
}
@media (max-width: 370px) {
  .cine-app-header-inner { grid-template-columns: 30px 89px minmax(0, 1fr) 30px; gap: 3px; }
  .cine-watch-shell .cine-watch-brand img { width: 29px; height: 29px; flex-basis: 29px; }
  .cine-watch-shell .cine-watch-brand b { font-size: 12px; }
  .cine-watch-shell .cine-watch-search input { padding-inline: 7px; font-size: 10px; }
  .cine-watch-shell .cine-video-actions { flex-wrap: nowrap; }
  .cine-watch-shell .cine-action-button { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-watch-shell *, .cine-watch-shell *::before, .cine-watch-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Bibliothèque numérique ITSS : recherche éditoriale et rayonnage documentaire. */
.library-page { min-height: 100vh; background: #f7f9fc; color: #122845; }
.library-page .wrap { width: min(100% - 48px, 1450px); margin-inline: auto; }
.library-page .scroll-progress { background: #1477ef; }
.library-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid #e6ebf2; background: rgb(255 255 255 / 96%); backdrop-filter: blur(16px); }
.library-header-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 26px; }
.library-brand { display: inline-flex; min-width: 280px; align-items: center; gap: 11px; color: #0e2948; text-decoration: none; }
.library-brand-mark { display: grid; width: 48px; height: 44px; place-items: center; color: #0d345c; }
.library-brand-mark svg { display: block; width: 46px; height: 40px; }
.library-brand > span:last-child { display: grid; gap: 1px; }
.library-brand strong { font: 750 18px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.025em; }
.library-brand small { color: #536a84; font-size: 12px; font-weight: 650; }
.library-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: clamp(15px, 2.2vw, 34px); }
.library-nav a { position: relative; display: inline-flex; min-height: 70px; align-items: center; color: #243b57; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .18s ease; }
.library-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #1679f5; content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.library-nav a:hover, .library-nav a[aria-current="page"] { color: #1268d7; }
.library-nav a:hover::after, .library-nav a[aria-current="page"]::after { transform: scaleX(1); }
.library-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.library-login, .library-signup { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; color: #153350; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.library-login { border-color: #e4eaf1; background: #f6f8fb; }
.library-login:hover { border-color: #c9d9ed; background: #edf4fd; }
.library-signup { border-color: #176de1; background: #1678f5; color: #fff; box-shadow: 0 5px 14px rgb(22 120 245 / 18%); }
.library-signup:hover { background: #0867df; transform: translateY(-1px); }
.library-menu-btn { display: none; width: 39px; height: 39px; place-items: center; border: 1px solid #e4eaf1; border-radius: 9px; background: #fff; color: #173958; cursor: pointer; }
.library-mobile-nav { display: none; }

.library-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 350px; background: #09233d url('/site-v2/static/img/library-reading-room.webp') center 54% / cover no-repeat; color: #fff; }
.library-hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(5 25 47 / 96%) 0%, rgb(5 27 50 / 90%) 40%, rgb(5 27 50 / 62%) 67%, rgb(5 27 50 / 50%) 100%); content: ''; }
.library-hero::after { position: absolute; z-index: -1; right: -110px; bottom: -250px; width: 620px; height: 420px; border: 1px solid rgb(94 179 255 / 18%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(94 179 255 / 3%), 0 0 0 92px rgb(94 179 255 / 3%); content: ''; }
.library-hero-inner { display: grid; min-height: 350px; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: clamp(26px, 5vw, 82px); padding-block: 36px; }
.library-hero-copy { min-width: 0; max-width: 860px; animation: library-rise .55s cubic-bezier(.2,.7,.25,1) both; }
.library-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; color: #a8d7ff; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.library-kicker > span { width: 20px; height: 2px; background: #2e99ff; box-shadow: 0 0 12px rgb(46 153 255 / 80%); }
.library-hero h1 { max-width: 850px; margin: 0 0 10px; color: #fff; font: 750 clamp(34px, 4.2vw, 54px)/1.06 'Bricolage Grotesque', sans-serif; letter-spacing: -.045em; text-wrap: balance; }
.library-hero h1 em { color: #38a2ff; font-style: normal; }
.library-hero-lead { max-width: 690px; margin: 0; color: rgb(239 247 255 / 88%); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.5; }
.library-search { display: grid; width: min(100%, 810px); min-height: 54px; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-top: 22px; padding: 5px 6px 5px 17px; border: 1px solid rgb(255 255 255 / 76%); border-radius: 10px; background: #fff; box-shadow: 0 11px 26px rgb(2 15 30 / 20%); color: #173857; }
.library-search-icon { color: #244a70; }
.library-search input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: #193654; font: 500 14px/1.3 'Instrument Sans', sans-serif; }
.library-search input::placeholder { color: #8292a7; opacity: 1; }
.library-search input:focus-visible { outline: 0; }
.library-search:focus-within { border-color: #55a9ff; box-shadow: 0 0 0 3px rgb(63 154 255 / 25%), 0 11px 26px rgb(2 15 30 / 20%); }
.library-search button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 8px; background: #1679f5; color: #fff; font: 700 13px/1 'Instrument Sans', sans-serif; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.library-search button:hover { background: #0868df; transform: translateY(-1px); }
.library-hero-note { display: flex; width: auto; max-width: none; align-items: center; gap: 7px; margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: rgb(226 238 250 / 78%); font-size: 11px; }
.library-hero-note svg { color: #6dd6b6; }
.library-hero-guide { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 13px; background: rgb(7 29 52 / 65%); box-shadow: 0 18px 46px rgb(0 0 0 / 18%); backdrop-filter: blur(12px); animation: library-rise .6s .07s both; }
.library-hero-guide > div { display: grid; min-height: 62px; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; padding: 8px 0; }
.library-hero-guide > div + div { border-top: 1px solid rgb(255 255 255 / 13%); }
.library-guide-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgb(94 177 255 / 20%); border-radius: 11px; background: rgb(46 139 228 / 17%); color: #67c6ff; font-size: 23px; font-weight: 650; }
.library-hero-guide p { display: grid; gap: 3px; margin: 0; }
.library-hero-guide strong { color: #fff; font-size: 13px; }
.library-hero-guide small { color: rgb(230 240 250 / 73%); font-size: 10px; line-height: 1.35; }
@keyframes library-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.library-category-band { padding: 16px 0 14px; border-bottom: 1px solid #e8edf3; background: #fff; }
.library-mini-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.library-mini-heading h2 { margin: 0; color: #1c3552; font: 700 13px/1.2 'Bricolage Grotesque', sans-serif; }
.library-mini-heading > span { color: #8695a8; font-size: 10px; }
.library-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; }
.library-category { display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; color: #fff; text-align: left; cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.library-category:hover { filter: saturate(1.12); transform: translateY(-2px); box-shadow: 0 8px 16px rgb(21 46 74 / 16%); }
.library-category.is-on { outline: 2px solid #fff; outline-offset: -4px; }
.library-category-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 8px; background: rgb(255 255 255 / 18%); font-size: 19px; }
.library-category > span:last-child { display: grid; min-width: 0; gap: 3px; }
.library-category strong { overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.library-category small { color: rgb(255 255 255 / 83%); font-size: 9px; }
.library-category--blue { background: linear-gradient(115deg, #1589ff, #1171e6); }
.library-category--green { background: linear-gradient(115deg, #41bc65, #23a54e); }
.library-category--purple { background: linear-gradient(115deg, #9b4de8, #7540d5); }
.library-category--coral { background: linear-gradient(115deg, #ed5961, #d94253); }
.library-category--orange { background: linear-gradient(115deg, #ffa21a, #f17c00); }
.library-category--teal { background: linear-gradient(115deg, #10aaa9, #078e97); }
.library-category--slate { background: linear-gradient(115deg, #405a73, #293f57); }

.library-main-section { padding: 23px 0 26px; background: #f7f9fc; scroll-margin-top: 80px; }
.library-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.library-section-kicker { margin: 0 0 3px; color: #1680e8; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.library-section-title h2 { margin: 0; color: #132d4b; font: 700 clamp(22px, 2.3vw, 29px)/1.12 'Bricolage Grotesque', sans-serif; letter-spacing: -.025em; }
.library-section-title > p { margin: 0 0 2px; color: #657b94; font-size: 11px; font-weight: 650; }
.library-results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; align-items: start; gap: 16px; }
.library-page .library-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.library-page .lib-card { display: grid; min-width: 0; grid-template-columns: 133px minmax(0,1fr); gap: 0; padding: 10px; border: 1px solid #e0e8f1; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgb(19 47 78 / 4%); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.library-page .lib-card:hover { border-color: #c2d8f1; box-shadow: 0 12px 28px rgb(19 47 78 / 9%); transform: translateY(-2px); }
.library-page .lib-cover { position: relative; display: flex; min-height: 172px; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; margin: 0; padding: 12px; border-radius: 8px; background: radial-gradient(ellipse at 88% 6%, rgb(50 164 255 / 34%), transparent 38%), linear-gradient(150deg, #0b2848, #0e3a68 55%, #102948); color: #fff; }
.library-page .lib-cover::after { position: absolute; right: -28px; bottom: -34px; width: 116px; height: 116px; border: 1px solid rgb(126 205 255 / 30%); border-radius: 50%; box-shadow: 0 0 0 12px rgb(126 205 255 / 5%), 0 0 0 27px rgb(126 205 255 / 5%); content: ''; }
.library-page .lib-cover-head, .library-page .lib-cover-foot, .library-page .lib-cover-title, .library-page .lib-cover-emblem { position: relative; z-index: 1; }
.library-page .lib-cover-head { display: flex; width: 100%; align-items: center; justify-content: space-between; color: #cae2ff; font-size: 7px; font-weight: 750; letter-spacing: .09em; }
.library-page .lib-cover-type { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 6px; background: rgb(255 255 255 / 10%); font-size: 8px; }
.library-page .lib-cover-emblem { position: absolute; top: 56px; right: 12px; color: rgb(136 209 255 / 34%); font-size: 42px; }
.library-page .lib-cover-title { display: -webkit-box; width: 100%; overflow: hidden; color: #fff; font: 700 15px/1.22 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.library-page .lib-cover-foot { color: rgb(219 235 250 / 74%); font-size: 7px; font-weight: 650; letter-spacing: .07em; }
.library-page .lib-card-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 16px; }
.library-page .lib-card-category { margin: 0 0 5px; color: #1479df; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.library-page .lib-card h3 { margin: 0; color: #173451; font: 700 18px/1.28 'Bricolage Grotesque', sans-serif; }
.library-page .lib-card-description { max-width: 72ch; margin: 6px 0 8px; color: #61758c; font-size: 12px; line-height: 1.48; }
.library-page .lib-card-meta { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: #7789a0; font-size: 10px; }
.library-page .lib-card-meta span:first-child { color: #cf3c49; font-weight: 800; letter-spacing: .05em; }
.library-page .lib-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.library-page .lib-card-actions .btn { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 13px; border-radius: 7px; background: #1679f5; color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.library-page .lib-card-actions .btn:hover { background: #0868df; transform: translateY(-1px); }
.library-page .lib-download-link { display: inline-flex; align-items: center; gap: 5px; color: #1a6ed1; font-size: 11px; font-weight: 700; text-decoration: none; }
.library-page .lib-download-link:hover { color: #104f9d; text-decoration: underline; }
.library-page .lib-download-link svg { width: 14px; height: 14px; }
.library-page .lib-empty { padding: 22px; border: 1px dashed #cdd8e5; border-radius: 11px; background: #fff; color: #29425d; }
.library-page .lib-empty strong { font: 700 16px 'Bricolage Grotesque', sans-serif; }
.library-page .lib-empty p { margin: 5px 0 0; color: #718198; font-size: 12px; }
.library-page .library-loading { display: flex; min-height: 122px; align-items: center; justify-content: center; gap: 9px; border: 1px solid #e3eaf2; border-radius: 11px; background: #fff; color: #6d8199; font-size: 12px; }
.library-quick-access { padding: 13px 15px 12px; border: 1px solid #e2eaf3; border-radius: 11px; background: #fff; box-shadow: 0 6px 20px rgb(19 47 78 / 4%); }
.library-quick-access h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #163451; font: 700 17px/1.2 'Bricolage Grotesque', sans-serif; }
.library-quick-access h2 span { color: #147ef2; font-size: 20px; }
.library-quick-access > a { display: grid; min-height: 53px; grid-template-columns: 33px minmax(0,1fr) 12px; align-items: center; gap: 9px; padding: 6px 0; color: #28435f; text-decoration: none; }
.library-quick-access > a + a { border-top: 1px solid #e9eef4; }
.library-quick-access > a:hover strong { color: #1474df; }
.library-quick-access > a > span:nth-child(2) { display: grid; gap: 3px; }
.library-quick-access > a strong { color: #294460; font-size: 11px; transition: color .16s ease; }
.library-quick-access > a small { color: #8492a3; font-size: 9px; }
.library-quick-access > a > b { color: #a4b0bd; font-size: 20px; font-weight: 500; }
.quick-access-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; font-size: 17px; font-weight: 700; }
.quick-access-blue { background: #eaf4ff; color: #1680f5; }
.quick-access-teal { background: #e8f9f5; color: #159d8b; }
.quick-access-orange { background: #fff3e9; color: #e98320; }
.library-access-note { margin: 5px 0 0; padding-top: 8px; border-top: 1px solid #e9eef4; color: #8997a7; font-size: 9px; line-height: 1.45; }

.library-facts { padding: 15px 0; border-top: 1px solid #e3eaf2; border-bottom: 1px solid #e3eaf2; background: linear-gradient(105deg, #eff6ff, #fff 62%, #f4f8fc); }
.library-facts > .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 12px; }
.library-fact { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; column-gap: 10px; padding: 4px 12px; border-right: 1px solid #dce7f2; }
.library-fact > span { grid-row: span 2; display: grid; width: 36px; height: 36px; place-items: center; color: #167af0; font-size: 23px; font-weight: 800; }
.library-fact:nth-child(2) > span { color: #1c527c; font-size: 10px; }
.library-fact strong { color: #1379ec; font: 700 15px/1.15 'Bricolage Grotesque', sans-serif; }
.library-fact small { margin-top: 3px; color: #61758d; font-size: 9px; }
.library-explore { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; border-radius: 8px; background: #1679f5; color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.library-explore:hover { background: #0868df; transform: translateY(-1px); }
.library-explore b { font-size: 16px; }
.library-footer { padding: 16px 0 18px; background: #0d2948; color: #d7e3f0; }
.library-footer > .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 22px; }
.library-footer-brand { color: #fff; font: 750 13px 'Bricolage Grotesque', sans-serif; text-decoration: none; }
.library-footer-brand span { margin-left: 6px; color: #aebfd0; font: 500 11px 'Instrument Sans', sans-serif; }
.library-footer p { margin: 0; color: #b8c8d9; font-size: 10px; }
.library-footer > .wrap > div { display: flex; flex-wrap: wrap; gap: 14px; }
.library-footer > .wrap > div a { color: #d4e2ef; font-size: 10px; text-decoration: none; }
.library-footer > .wrap > div a:hover { color: #fff; text-decoration: underline; }
.library-footer > .wrap > small { grid-column: 1/-1; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 13%); color: #8299b0; font-size: 9px; }

.library-reader { width: min(1120px, calc(100vw - 34px)); max-width: none; max-height: min(94dvh, 1050px); padding: 0; overflow: hidden; border: 1px solid #dce5ef; border-radius: 14px; background: #f1f4f8; color: #173451; box-shadow: 0 26px 90px rgb(2 15 30 / 38%); }
.library-reader::backdrop { background: rgb(4 17 31 / 74%); backdrop-filter: blur(4px); }
.library-reader-head { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 16px; background: #fff; }
.library-reader-head .library-section-kicker { margin-bottom: 2px; font-size: 8px; }
.library-reader-head h2 { overflow: hidden; max-width: min(760px, 72vw); margin: 0; color: #153351; font: 700 16px/1.25 'Bricolage Grotesque', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.library-reader-close { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #e0e7ee; border-radius: 50%; background: #fff; color: #425b75; font: 400 23px/1 'Instrument Sans', sans-serif; cursor: pointer; }
.library-reader-close:hover { background: #f0f5fb; }
.library-reader-toolbar { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-block: 1px solid #e2e8ef; background: #f9fbfd; }
.library-reader-toolbar > p { margin: 0; color: #657991; font-size: 10px; }
.library-reader-controls { display: flex; align-items: center; gap: 5px; color: #526b84; font-size: 10px; }
.library-reader-controls button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dfe7ef; border-radius: 6px; background: #fff; color: #29445f; font-size: 19px; line-height: 1; cursor: pointer; }
.library-reader-controls button:hover:not(:disabled) { border-color: #b7d4f4; background: #edf6ff; color: #126dd6; }
.library-reader-controls button:disabled { cursor: not-allowed; opacity: .45; }
.library-reader-controls label input { width: 38px; height: 28px; padding: 2px 4px; border: 1px solid #dfe7ef; border-radius: 6px; color: #29445f; text-align: center; font: 600 10px 'Instrument Sans', sans-serif; }
.library-reader-controls input::-webkit-inner-spin-button { appearance: none; }
.reader-control-separator { width: 1px; height: 20px; margin-inline: 5px; background: #dfe7ef; }
.library-reader-download { display: inline-flex; min-height: 30px; align-items: center; gap: 8px; margin-left: 8px; padding: 0 11px; border-radius: 6px; background: #1679f5; color: #fff; font-size: 10px; font-weight: 700; text-decoration: none; }
.library-reader-download:hover { background: #0868df; }
.library-reader-download span { font-size: 15px; }
.library-reader-viewport { display: flex; min-height: min(68dvh, 720px); max-height: calc(94dvh - 115px); justify-content: center; overflow: auto; padding: 18px; background: #e5eaf0; overscroll-behavior: contain; }
.library-reader-viewport canvas { display: block; max-width: none; height: auto; background: #fff; box-shadow: 0 4px 18px rgb(25 42 61 / 17%); }
.library-reader :focus-visible, .library-page :is(a, button, input):focus-visible { outline: 2px solid #1683f7; outline-offset: 2px; }

@media (max-width: 1080px) {
  .library-page .wrap { width: min(100% - 36px, 1450px); }
  .library-brand { min-width: 220px; }
  .library-nav { gap: 15px; }
  .library-nav a { font-size: 12px; }
  .library-header-inner { gap: 14px; }
  .library-results-layout { grid-template-columns: minmax(0,1fr) 245px; }
  .library-hero-inner { grid-template-columns: minmax(0,1fr) 270px; gap: 30px; }
}
@media (max-width: 850px) {
  .library-header-inner { min-height: 64px; }
  .library-nav { display: none; }
  .library-brand { flex: 1; min-width: 0; }
  .library-menu-btn { display: grid; }
  .library-mobile-nav.open { display: grid; position: absolute; top: 100%; right: 14px; left: 14px; gap: 0; padding: 7px; border: 1px solid #e1e8f0; border-radius: 11px; background: #fff; box-shadow: 0 16px 36px rgb(11 35 61 / 16%); }
  .library-mobile-nav a { padding: 11px 12px; border-radius: 7px; color: #213c59; font-size: 13px; text-decoration: none; }
  .library-mobile-nav a:hover { background: #f0f6fd; color: #126fdc; }
  .library-hero, .library-hero-inner { min-height: 324px; }
  .library-hero-inner { grid-template-columns: minmax(0,1fr) 245px; gap: 22px; padding-block: 27px; }
  .library-hero h1 { font-size: clamp(32px, 5.5vw, 46px); }
  .library-results-layout { grid-template-columns: minmax(0,1fr); }
  .library-quick-access { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
  .library-quick-access h2, .library-access-note { grid-column: 1/-1; }
  .library-quick-access > a + a { border-top: 0; }
  .library-quick-access > a { min-height: 46px; }
  .library-facts > .wrap { grid-template-columns: 1fr 1fr 1fr; }
  .library-explore { grid-column: 1/-1; justify-self: end; }
}
@media (max-width: 620px) {
  .library-page .wrap { width: calc(100% - 28px); }
  .library-header-inner { min-height: 60px; gap: 8px; }
  .library-brand { gap: 7px; }
  .library-brand-mark { width: 39px; height: 38px; }
  .library-brand-mark svg { width: 39px; height: 34px; }
  .library-brand strong { font-size: 15px; }
  .library-brand small { font-size: 10px; }
  .library-header-actions { gap: 5px; }
  .library-login { display: none; }
  .library-signup { min-height: 34px; padding-inline: 10px; border-radius: 7px; font-size: 10px; }
  .library-menu-btn { width: 34px; height: 34px; }
  .library-hero { min-height: 0; background-position: 65% center; }
  .library-hero::before { background: linear-gradient(90deg, rgb(5 25 47 / 95%) 0%, rgb(5 27 50 / 88%) 65%, rgb(5 27 50 / 69%) 100%); }
  .library-hero-inner { min-height: 0; grid-template-columns: minmax(0,1fr); gap: 14px; padding-block: 24px 18px; }
  .library-kicker { margin-bottom: 8px; font-size: 9px; }
  .library-hero h1 { margin-bottom: 8px; font-size: clamp(30px, 8vw, 39px); }
  .library-hero-lead { max-width: 50ch; font-size: 12px; line-height: 1.48; }
  .library-search { min-height: 47px; grid-template-columns: 19px minmax(0,1fr) auto; gap: 7px; margin-top: 15px; padding: 4px 4px 4px 11px; border-radius: 8px; }
  .library-search-icon { width: 18px; height: 18px; }
  .library-search input { min-height: 36px; font-size: 11px; }
  .library-search input::placeholder { font-size: 10px; }
  .library-search button { width: 38px; min-height: 38px; padding: 0; border-radius: 6px; }
  .library-search button span { display: none; }
  .library-search button svg { width: 17px; height: 17px; }
  .library-hero-note { margin-top: 8px; font-size: 9px; }
  .library-hero-guide { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; padding: 5px 7px; border-radius: 9px; }
  .library-hero-guide > div { min-height: 41px; grid-template-columns: 28px minmax(0,1fr); gap: 6px; padding: 4px 3px; }
  .library-hero-guide > div + div { border-top: 0; border-left: 1px solid rgb(255 255 255 / 13%); padding-left: 7px; }
  .library-guide-icon { width: 27px; height: 27px; border-radius: 7px; font-size: 17px; }
  .library-hero-guide p { gap: 2px; }
  .library-hero-guide strong { font-size: 9px; }
  .library-hero-guide small { font-size: 8px; line-height: 1.2; }
  .library-category-band { padding: 12px 0; }
  .library-mini-heading { margin-bottom: 8px; }
  .library-mini-heading h2 { font-size: 12px; }
  .library-mini-heading > span { font-size: 9px; }
  .library-categories { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .library-category { min-height: 51px; gap: 7px; padding: 6px 8px; border-radius: 7px; }
  .library-category-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 6px; font-size: 15px; }
  .library-category strong { font-size: 9px; }
  .library-category small { font-size: 8px; }
  .library-main-section { padding: 17px 0 18px; scroll-margin-top: 66px; }
  .library-section-title { align-items: flex-start; margin-bottom: 10px; }
  .library-section-title h2 { font-size: 21px; }
  .library-section-title > p { font-size: 9px; }
  .library-results-layout { gap: 9px; }
  .library-page .lib-card { grid-template-columns: 92px minmax(0,1fr); padding: 7px; border-radius: 9px; }
  .library-page .lib-cover { min-height: 132px; padding: 8px; border-radius: 6px; }
  .library-page .lib-cover-head { font-size: 6px; }
  .library-page .lib-cover-type { width: 21px; height: 21px; font-size: 7px; }
  .library-page .lib-cover-emblem { top: 45px; right: 6px; font-size: 28px; }
  .library-page .lib-cover-title { font-size: 11px; }
  .library-page .lib-cover-foot { font-size: 5px; }
  .library-page .lib-card-body { padding: 5px 8px; }
  .library-page .lib-card-category { margin-bottom: 3px; font-size: 7px; }
  .library-page .lib-card h3 { font-size: 13px; line-height: 1.24; }
  .library-page .lib-card-description { display: -webkit-box; overflow: hidden; margin: 4px 0 5px; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .library-page .lib-card-meta { gap: 5px; margin-bottom: 6px; font-size: 8px; }
  .library-page .lib-card-actions { gap: 6px 9px; }
  .library-page .lib-card-actions .btn { min-height: 29px; padding: 0 8px; border-radius: 6px; font-size: 9px; }
  .library-page .lib-download-link { gap: 3px; font-size: 9px; }
  .library-page .lib-download-link svg { width: 12px; height: 12px; }
  .library-quick-access { grid-template-columns: 1fr; gap: 0; padding: 10px 12px; }
  .library-quick-access h2 { font-size: 15px; }
  .library-quick-access > a { min-height: 43px; }
  .library-quick-access > a + a { border-top: 1px solid #e9eef4; }
  .library-quick-access > a strong { font-size: 10px; }
  .library-quick-access > a small { font-size: 8px; }
  .library-access-note { font-size: 8px; }
  .library-facts { padding: 10px 0; }
  .library-facts > .wrap { grid-template-columns: 1fr 1fr; gap: 7px; }
  .library-fact { grid-template-columns: 28px 1fr; column-gap: 6px; padding: 4px; }
  .library-fact:nth-child(2) { border-right: 0; }
  .library-fact > span { width: 27px; height: 29px; font-size: 19px; }
  .library-fact:nth-child(2) > span { font-size: 8px; }
  .library-fact strong { font-size: 12px; }
  .library-fact small { font-size: 8px; }
  .library-explore { min-height: 33px; grid-column: 1/-1; justify-self: stretch; font-size: 10px; }
  .library-footer { padding: 12px 0; }
  .library-footer > .wrap { grid-template-columns: 1fr; gap: 6px; }
  .library-footer-brand { font-size: 12px; }
  .library-footer > .wrap > div { gap: 12px; }
  .library-footer > .wrap > small { grid-column: auto; margin-top: 3px; padding-top: 6px; }
  .library-reader { width: calc(100vw - 12px); max-height: 96dvh; border-radius: 9px; }
  .library-reader-head { min-height: 54px; padding: 7px 9px; }
  .library-reader-head h2 { max-width: calc(100vw - 78px); font-size: 13px; }
  .library-reader-close { flex-basis: 30px; width: 30px; height: 30px; }
  .library-reader-toolbar { min-height: 76px; flex-direction: column; align-items: stretch; gap: 3px; padding: 5px 7px; }
  .library-reader-toolbar > p { min-height: 14px; font-size: 9px; }
  .library-reader-controls { justify-content: center; gap: 4px; font-size: 9px; }
  .library-reader-controls button { width: 25px; height: 25px; }
  .library-reader-controls label input { width: 32px; height: 25px; }
  .reader-control-separator { margin-inline: 2px; }
  .library-reader-download { min-height: 26px; gap: 5px; margin-left: 2px; padding-inline: 7px; font-size: 9px; }
  .library-reader-viewport { min-height: 68dvh; max-height: calc(96dvh - 140px); padding: 10px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .library-page *, .library-page *::before, .library-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* La note sous la recherche reste une ligne discrète, sans reprendre l'ancienne carte blanche. */
.v2-shell.library-page .library-hero-copy > .library-hero-note {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgb(226 238 250 / 78%);
  font-size: 11px;
  line-height: 1.35;
}
.v2-shell.library-page .library-hero-copy > .library-hero-note svg { flex: 0 0 16px; color: #6dd6b6; }
@media (max-width: 620px) {
  .v2-shell.library-page .library-hero-copy > .library-hero-note { margin-top: 8px; font-size: 9px; }
}

/* Performance: preserve the polished motion while keeping the first paint quick. */
.v2-shell main > section:first-child,
.v2-shell main > .page-hero { animation-duration: .42s; }
.v2-shell .reveal { transform: translateY(10px); transition-duration: .3s; }
.v2-shell .reveal .stg { transform: translateY(7px); transition-duration: .3s; transition-delay: calc(var(--i, 0) * 36ms); }
.v2-shell .hero-fig > img,
.v2-shell .grid-hero > img { animation-duration: .65s; }
.v2-shell .hero-video { animation-duration: .5s; animation-delay: .04s; }
.v2-shell .h1,
.v2-shell .h1-page,
.v2-shell .grid-hero .lead,
.v2-shell .page-hero .lead,
.v2-shell .grid-hero .actions,
.v2-shell .page-hero .actions { animation-duration: .48s; animation-delay: 0s; }
.v2-shell .itss-mega-panel { filter: none; transition-duration: .22s; }
@keyframes titleIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes photo-drift {
  from { transform: scale(1.015); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-shell main > section:first-child,
  .v2-shell main > .page-hero,
  .v2-shell .hero-fig > img,
  .v2-shell .grid-hero > img,
  .v2-shell .hero-video { animation: none !important; }
}
