/* ═══════════════════════════════════════════════════════════
   RÉALISATEUR WEB — page.css (pages internes, cahier P1 V2)
   Mêmes tokens que styles.css / site.css. Défilement natif (pas de
   scroll-jacking), animations courtes et désactivées par
   prefers-reduced-motion. Le rouge n'est jamais une couleur de texte.
   ═══════════════════════════════════════════════════════════ */

body.page { overflow-x: hidden; }
body.page main { display: block; }
.page .dock { transition: transform .6s var(--ease-out), opacity .3s; }

/* apparitions douces (seulement si JS actif : sans JS tout est visible) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ═══════════ FIL D'ARIANE ═══════════ */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; color: var(--ash); margin-bottom: 26px; }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .5; }
.crumbs a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.crumbs a:hover { color: var(--ink); border-color: var(--ink-faint); }
.crumbs [aria-current] { color: rgba(var(--ink-rgb), .82); }

/* ═══════════ HERO INTERNE ═══════════ */
.p-hero { position: relative; padding: calc(96px + 9vh) var(--gutter) 11vh; overflow: hidden; }
.p-hero--compact { padding-bottom: 7vh; }
.p-hero-in { max-width: 1320px; margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.p-hero.has-media .p-hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.p-eyebrow { color: rgba(var(--ink-rgb), .82); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.p-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--lime); }
.p-h1 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.028em; max-width: 16em; text-wrap: balance; }
.p-intro { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: rgba(var(--ink-rgb), .8); max-width: 36em; margin-top: 24px; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.p-proof { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--ink-faint); color: rgba(var(--ink-rgb), .7); max-width: 40em; }
.btn-light { background: #fff; color: #141311; }
.btn-light:hover { filter: brightness(.94); }

/* variante rouge : aplat d'accent, texte blanc (grands corps uniquement) */
.p-hero--red { background: var(--lime); color: #fff; }
.p-hero--red .p-eyebrow, .p-hero--red .crumbs, .p-hero--red .crumbs [aria-current] { color: #fff; }
.p-hero--red .p-eyebrow::before { background: #fff; }
.p-hero--red .p-intro { color: #fff; }
.p-hero--red .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.p-hero--red .btn-ghost:hover { border-color: #fff; }

/* ═══ HERO « SITES INTERNET » — collection d'affiches en défilement ═══
   Deux rangées d'affiches 2:3 qui glissent en sens inverse, sans fin.
   Chaque piste contient DEUX FOIS le même jeu : la translation de -50 %
   ramène exactement au point de départ (boucle sans raccord). L'écart entre
   affiches est une marge à droite (et non un gap) pour que la moitié de la
   piste mesure exactement un jeu. Les bords sont fondus par un masque
   (mask-image) : l'affiche disparaît dans le fond réel, quel qu'il soit.
   La zone déborde jusqu'au bord droit de l'écran. */
.hero-reel {
  --pw: clamp(130px, 11.2vw, 172px);          /* largeur d'une affiche */
  --pg: clamp(12px, 1.1vw, 18px);              /* écart entre affiches */
  --bleed: max(var(--gutter), calc((100vw - 1320px) / 2));   /* distance jusqu'au bord de l'écran */
  position: relative; min-width: 0;          /* ne s'élargit pas à la longueur de la piste */
  margin-right: calc(-1 * var(--bleed));
  display: flex; flex-direction: column; gap: var(--pg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 90%, transparent 100%);
}
.reel-row { overflow: hidden; }
.reel-track { display: flex; width: max-content; will-change: transform; }
.reel-track img {
  width: var(--pw); height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  margin-right: var(--pg); border-radius: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform .6s var(--ease-out);
}
.reel-row--a .reel-track { animation: reel-left 38s linear infinite; }
/* rangée basse : sens inverse, un peu plus lente, et décalée d'une demi-affiche */
.reel-row--b .reel-track { animation: reel-right 44s linear infinite; margin-left: calc(-.5 * (var(--pw) + var(--pg))); }
@keyframes reel-left  { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(-50%, 0, 0); } }
@keyframes reel-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (hover: hover) {
  .reel-track img:hover { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none !important; }   /* composition statique, rangées décalées */
}
.hero-photo { aspect-ratio: 4 / 5; max-width: 460px; justify-self: end; width: 100%; border-radius: var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.is-placeholder { background: var(--white); border: 1px solid rgba(var(--ink-rgb), .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.hero-photo.is-placeholder img { width: 44%; height: auto; object-fit: contain; }

/* ═══════════ SECTIONS ═══════════ */
.p-sec { max-width: 1320px; margin: 0 auto; padding: 11vh var(--gutter); }
.p-sec--compact { padding-top: 6vh; padding-bottom: 6vh; }
.p-sec + .p-sec { border-top: 1px solid var(--ink-faint); }
.p-sec--rail, .p-sec--rail + .p-sec { border-top: 0; }
.p-head { max-width: 760px; margin-bottom: 6vh; }
.p-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.p-title { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.022em; margin-top: 12px; text-wrap: balance; }
.p-sub { color: var(--ash); margin-top: 14px; max-width: 40em; line-height: 1.45; }
.p-more { margin-top: 36px; }

/* cartes */
.p-cards { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.p-cards--2 { grid-template-columns: repeat(2, 1fr); }
.p-cards--3 { grid-template-columns: repeat(3, 1fr); }
.p-cards--4 { grid-template-columns: repeat(4, 1fr); }
.p-card { background: var(--white); border: 1px solid rgba(var(--ink-rgb), .06); border-radius: var(--radius); padding: clamp(22px, 2.2vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.p-card h3 { font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -0.015em; line-height: 1.15; }
.p-card p { color: rgba(var(--ink-rgb), .78); line-height: 1.45; font-size: 17px; }
.p-card .link-arrow { margin-top: auto; padding-top: 8px; }
.p-card-num { color: var(--ash); display: flex; align-items: center; gap: 10px; }
.p-card-num::after { content: ''; width: 22px; height: 2px; background: var(--lime); }

/* étapes numérotées (grands numéros, comme les actes de l'accueil) */
.p-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink-faint); }
.p-step { padding: 34px clamp(18px, 2.4vw, 36px) 38px 0; border-bottom: 1px solid var(--ink-faint); }
.p-step:not(:nth-child(3n)) { border-right: 1px solid var(--ink-faint); }
.p-step:not(:nth-child(3n+1)) { padding-left: clamp(18px, 2.4vw, 36px); }
.p-step-num { display: block; font-size: clamp(48px, 5vw, 76px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--ink-faint); margin-bottom: 18px; }
.p-step h3 { font-size: 22px; margin-bottom: 8px; }
.p-step p { color: rgba(var(--ink-rgb), .75); font-size: 17px; line-height: 1.45; }

/* chaîne requête → conversion */
.p-chain { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: ch; }
.p-chain li { position: relative; padding: 26px 22px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(var(--ink-rgb), .06); counter-increment: ch; }
.p-chain li::before { content: counter(ch, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--ash); display: block; margin-bottom: 18px; }
.p-chain li:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--lime); border-right: 2px solid var(--lime); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.p-chain h3 { font-size: 21px; margin-bottom: 8px; }
.p-chain p { font-size: 16px; color: rgba(var(--ink-rgb), .75); line-height: 1.4; }

/* deux colonnes titre / texte */
.p-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.p-split-r p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: rgba(var(--ink-rgb), .85); }
.p-split-r p + p { margin-top: 16px; }
.p-split-r .link-arrow { margin-top: 22px; }
.p-checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.p-checks li { position: relative; padding-left: 26px; line-height: 1.4; }
.p-checks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 12px; height: 2px; background: var(--lime); }
.p-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.p-chips li { padding: 10px 16px; border: 1px solid rgba(var(--ink-rgb), .22); border-radius: 40px; font-size: 16px; }

/* ponts vers les autres expertises */
.p-bridge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.p-bridge-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--ink-faint); border-radius: var(--radius); transition: border-color .3s, background .3s; position: relative; }
.p-bridge-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 40px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.p-bridge-card:hover { border-color: rgba(var(--ink-rgb), .4); background: rgba(var(--ink-rgb), .03); }
.p-bridge-card:hover::before { transform: scaleX(1); }
.p-bridge-card h3 { font-size: 22px; }
.p-bridge-card p { color: rgba(var(--ink-rgb), .75); font-size: 16px; line-height: 1.4; }
.p-bridge-card .mono { margin-top: auto; padding-top: 8px; }
.p-bridge-card--mini { padding: 18px 22px; }

/* secteurs */
.p-sectors { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.p-sectors li { font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -0.015em; padding: 10px 22px; border: 1px solid var(--ink-faint); border-radius: 60px; }

/* manifeste */
.p-manifest { padding: 14vh var(--gutter); text-align: center; border-top: 1px solid var(--ink-faint); }
.p-manifest p { font-size: clamp(32px, 4.8vw, 72px); line-height: 1.1; letter-spacing: -0.025em; color: rgba(var(--ink-rgb), .45); }
.p-manifest span { color: var(--ink); background: linear-gradient(var(--lime), var(--lime)) 0 92% / 100% .08em no-repeat; }

/* FAQ */
.faq { border-top: 1px solid var(--ink-faint); }
.faq:last-child { border-bottom: 1px solid var(--ink-faint); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; line-height: 1.3; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform .3s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 44px 24px 0; color: rgba(var(--ink-rgb), .8); line-height: 1.5; font-size: 17px; }

/* CTA final */
.p-cta { padding: 0 var(--gutter) 12vh; }
.p-cta-in { max-width: 1320px; margin: 0 auto; background: var(--lime); color: #fff; border-radius: var(--radius); padding: clamp(44px, 7vw, 100px) clamp(24px, 6vw, 90px); display: grid; gap: 18px; justify-items: start; }
.p-cta h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; max-width: 14em; text-wrap: balance; }
.p-cta p { font-size: clamp(18px, 1.5vw, 22px); max-width: 32em; }
.p-cta .btn { margin-top: 10px; }

/* avis */
.p-avis .reviews-list { max-width: none; }
.review-prod { margin-top: 6px; color: rgba(var(--ink-rgb), .8); }

/* applications (page Applications web) */
.p-apps { display: grid; gap: clamp(16px, 2vw, 28px); }
.p-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(16px, 2vw, 24px); background: var(--white); border: 1px solid rgba(var(--ink-rgb), .06); border-radius: var(--radius); }
.p-app:nth-child(even) .p-app-visual { order: 2; }
.p-app-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.p-app-body { display: grid; gap: 14px; justify-items: start; padding-right: 12px; }
.p-app-type { color: rgba(var(--ink-rgb), .75); }
.p-app h3 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.02em; line-height: 1.05; }
.p-app p { color: rgba(var(--ink-rgb), .8); line-height: 1.5; }

/* ═══════════ CARTE PRODUCTION + RAILS ═══════════ */
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pcard-link { position: relative; display: block; overflow: hidden; border-radius: 4px; clip-path: inset(0 round 4px); isolation: isolate; backface-visibility: hidden; will-change: transform; background: #0a0a09; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.pcard-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; backface-visibility: hidden; transition: transform .8s var(--ease-out); }
.pcard-over { position: absolute; inset: -2px; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; background: linear-gradient(to top, rgba(10,10,9,.96), rgba(10,10,9,.86) 55%, rgba(10,10,9,.62)); color: #f2f1ec; opacity: 0; transition: opacity .35s var(--ease-out); }
.pcard-syn { font-size: 16px; line-height: 1.35; }
.pcard-cta::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--lime); vertical-align: middle; margin-right: 8px; }
@media (hover: hover) {
  .pcard:hover .pcard-link, .pcard:focus-within .pcard-link { transform: translateY(-4px) scale(1.015); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
  .pcard:hover .pcard-over, .pcard:focus-within .pcard-over { opacity: 1; }
  .pcard:hover .pcard-link img { transform: scale(1.04); }
}
.pcard-title { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.pcard-title a::after { content: ''; position: absolute; inset: 0; } /* toute la carte cliquable */
.pcard-meta { position: relative; display: grid; gap: 6px; }
.pcard-link { z-index: 1; }
.pcard-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-tags li { font-size: 10.5px; padding: 4px 8px; border: 1px solid var(--ink-faint); border-radius: 30px; color: rgba(var(--ink-rgb), .75); }

.p-rails { padding-bottom: 4vh; }
.p-rail { max-width: 1600px; margin: 0 auto; padding: 5vh 0 1vh; }
.p-rails .p-rail { padding-left: var(--gutter); }
.p-sec--rail .p-rail { padding-top: 0; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-right: var(--gutter); margin-bottom: 20px; }
.rail-title { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; margin-top: 8px; display: flex; align-items: baseline; gap: 12px; }
.rail-count { color: var(--ash); }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 42px; height: 42px; border-radius: 50%; background: transparent; border: 1px solid rgba(var(--ink-rgb), .28); color: var(--ink); font-size: 16px; cursor: pointer; transition: border-color .3s, opacity .3s; }
.rail-btn:hover { border-color: var(--ink); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px - var(--gutter)) / 4.25); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 8px var(--gutter) 22px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > .pcard { scroll-snap-align: start; }
.p-sec--rail .rail { padding-right: 0; }
.p-sec--rail .rail-head { padding-right: 0; }

/* ═══════════ CATALOGUE : BIBLIOTHÈQUE + FILTRES ═══════════ */
.lib-filters { display: grid; gap: 12px; margin-bottom: 34px; }
.lib-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lib-row > .mono { width: 72px; flex: none; }
.f-pill { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid rgba(var(--ink-rgb), .24); border-radius: 40px; padding: 8px 14px; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.f-pill:hover { border-color: var(--ink); }
.f-pill[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 18px; }
.lib-grid .pcard[hidden] { display: none; }
.lib-empty { color: var(--ash); padding: 30px 0; }

/* ═══════════ FICHE RÉALISATION (logique « fiche de programme ») ═══════════ */
.fiche-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding: calc(96px + 6vh) var(--gutter) 9vh; overflow: hidden; isolation: isolate; }
.fiche-key { position: absolute; inset: 0; z-index: -1; }
.fiche-key img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fiche-key::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,17,.97) 0%, rgba(20,19,17,.86) 34%, rgba(20,19,17,.25) 70%, rgba(20,19,17,.1) 100%), linear-gradient(0deg, var(--bone) 0%, rgba(20,19,17,0) 38%); }
.fiche-hero-in { max-width: 1320px; width: 100%; margin: 0 auto; }
.fiche-hero-in > *:not(.crumbs) { max-width: 640px; }
.fiche-hero-in > .fiche-syn { max-width: 560px; }
.fiche-mark { display: flex; align-items: center; gap: 12px; color: rgba(var(--ink-rgb), .85); }
.fiche-mark img { width: 34px; height: 34px; border-radius: 0; }
.fiche-title { font-size: clamp(46px, 7vw, 108px); line-height: .96; letter-spacing: -0.035em; margin-top: 22px; text-wrap: balance; }
.fiche-meta { margin-top: 22px; color: rgba(var(--ink-rgb), .82); line-height: 1.7; }
.fiche-syn { margin-top: 18px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: rgba(var(--ink-rgb), .9); }
.fiche-flag { margin-top: 20px; color: rgba(var(--ink-rgb), .7); padding-left: 12px; border-left: 3px solid var(--lime); }
.fiche-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.fiche-main { display: grid; gap: 38px; }
.fiche-main .mono { margin-bottom: 12px; font-weight: 400; }
.fiche-main p { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.55; color: rgba(var(--ink-rgb), .86); }
.fiche-main .fiche-lead { font-size: clamp(21px, 1.8vw, 27px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.fiche-aside { position: sticky; top: 100px; background: var(--white); border: 1px solid rgba(var(--ink-rgb), .06); border-radius: var(--radius); padding: 26px; display: grid; gap: 22px; }
.fiche-dl { display: grid; gap: 14px; }
.fiche-dl div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-faint); }
.fiche-dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.fiche-dl dd { font-size: 16px; line-height: 1.35; }
.fiche-dl a { border-bottom: 1px solid var(--ink-faint); }
.fiche-dl a:hover { border-color: var(--ink); }
.gal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; align-items: start; }
.gal-item { grid-column: span 6; padding: 0; border: 0; background: var(--white); cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gal-item img { width: 100%; height: auto; border-radius: 0; transition: transform .6s var(--ease-out); }
.gal-item:hover img { transform: scale(1.02); }
.gal-m { grid-column: span 3; }
.fiche-quote { max-width: 980px; }
.fiche-quote blockquote { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -0.015em; }
.fiche-quote blockquote::before { content: '“'; display: block; font-size: 1.8em; line-height: .6; color: var(--ink-faint); margin-bottom: 6px; }
.fiche-quote figcaption { display: grid; gap: 4px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink-faint); }

/* visionneuse */
.lightbox:not([open]) { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8,8,7,.94); display: grid; place-items: center; padding: 70px 20px 30px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: #f2f1ec; }
.lightbox::backdrop { background: rgba(8,8,7,.94); }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-btn { position: fixed; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }
.lb-count { position: fixed; top: 30px; left: 24px; font-family: var(--mono); font-size: 12px; }

/* ═══════════ CONTACT ═══════════ */
.p-contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: 4vh; }
.p-contact-aside { display: grid; gap: 28px; }
.p-contact-aside .g-badge { justify-self: start; }
.p-aside-note { color: rgba(var(--ink-rgb), .8); line-height: 1.5; padding-left: 14px; border-left: 3px solid var(--lime); }
.p-zone ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.p-zone li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--ink-faint); border-radius: 30px; color: rgba(var(--ink-rgb), .75); }
.p-zone p + p { margin-top: 6px; color: rgba(var(--ink-rgb), .8); }

/* ═══════════ BLOG ═══════════ */
.p-blog .lib-filters { margin-top: 8vh; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 22px; }
.bcard { display: grid; gap: 16px; align-content: start; }
.bcard-img { display: block; overflow: hidden; border-radius: 4px; }
.bcard-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease-out); }
.bcard:hover .bcard-img img { transform: scale(1.03); }
.bcard-body { display: grid; gap: 10px; }
.bcard-title { font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -0.012em; }
.bcard-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.bcard:hover .bcard-title a { background-size: 100% 1px; }
.bcard-read { color: var(--ash); }
.bcard--une { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); align-items: center; }
.bcard--une .bcard-title { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.022em; }
.bcard--une p:not(.mono) { color: rgba(var(--ink-rgb), .8); line-height: 1.5; }

/* article : lecture sur fond clair, plus calme que le reste du site */

/* typographie de lecture (articles + pages légales) */
.prose { font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.018em; margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 23px; line-height: 1.25; margin-top: 1.6em; }
.prose h4 { font-size: 19px; font-weight: 500; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ash); }
.prose a:not(.link-arrow) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { width: 100%; height: auto; border-radius: 4px; margin: 1.6em 0; }
.prose strong { font-weight: 500; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--lime); font-size: 21px; }
.p-prose { max-width: 820px; }
.p-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.p-sitemap h2 { font-size: 12px; margin-bottom: 14px; }
.p-sitemap ul { list-style: none; display: grid; gap: 8px; }
.p-sitemap a:hover { text-decoration: underline; }

/* footer des pages internes : pas de marge vh héritée de l'accueil */
.p-footer { padding-top: 10vh; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .p-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .p-chain { grid-template-columns: repeat(2, 1fr); }
  .p-chain li::after { display: none; }
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * 16px - var(--gutter)) / 3.2); }
}
@media (max-width: 900px) {
  .p-hero { padding-top: calc(80px + 5vh); padding-bottom: 8vh; }
  .p-hero.has-media .p-hero-in { grid-template-columns: 1fr; }
  /* mobile / tablette étroite : la collection passe sous le texte, pleine largeur, plus lente */
  .hero-reel { --pw: clamp(98px, 26vw, 136px); --pg: 10px; margin: 8px calc(-1 * var(--gutter)) 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
  .reel-row--a .reel-track { animation-duration: 52s; }
  .reel-row--b .reel-track { animation-duration: 60s; }
  .hero-photo { justify-self: start; max-width: 360px; }
  .p-sec { padding-top: 8vh; padding-bottom: 8vh; }
  .p-cards--3, .p-cards--2 { grid-template-columns: 1fr; }
  .p-steps { grid-template-columns: 1fr; }
  .p-step, .p-step:not(:nth-child(3n+1)) { padding: 26px 0; border-right: 0 !important; }
  .p-split, .fiche-body, .p-contact { grid-template-columns: 1fr; }
  .fiche-aside { position: static; }
  .p-app { grid-template-columns: 1fr; }
  .p-app:nth-child(even) .p-app-visual { order: 0; }
  .p-app-body { padding: 0 6px 8px; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .blog-grid { grid-template-columns: 1fr; }
  .bcard--une { grid-template-columns: 1fr; }
  .gal-item { grid-column: span 12; }
  .gal-m { grid-column: span 6; }
  .fiche-hero { min-height: 0; padding-top: calc(80px + 26vh); }
  .fiche-key::after { background: linear-gradient(0deg, var(--bone) 8%, rgba(20,19,17,.85) 55%, rgba(20,19,17,.25) 100%); }
  .fiche-dl div { grid-template-columns: 92px 1fr; }
  .p-sectors li { font-size: 18px; padding: 8px 16px; }
  .rail-nav { display: none; }
  /* mobile : format vertical, la carte suivante reste visible */
  .rail { grid-auto-columns: 58vw; gap: 12px; }
  .rail .pcard-link img, .lib-grid .pcard-link img { aspect-ratio: 2 / 3; }
  .pcard-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .p-cards--4 { grid-template-columns: 1fr; }
  .p-chain { grid-template-columns: 1fr; }
  .lib-row > .mono { width: 100%; }
  .f-pill { font-size: 14px; padding: 7px 12px; }
  .prose { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .pcard-link, .pcard-link img { transition: none; }
}

/* une carte filtrée reste masquée même si son gabarit impose display:grid/flex */
.pcard[hidden], .bcard[hidden] { display: none !important; }

/* fond du héros de fiche = affiche 16:9 entière : cadrée vers le haut, là
   où se trouvent le titre et le slogan de l'affiche */
.fiche-key img { object-position: 50% 22%; }

/* ═══════════ FICHE — SHOWCASE « LE SITE SUR TOUS LES ÉCRANS » ═══════════
   Trois vues indépendantes (ordinateur, tablette, mobile), posées directement
   sur le fond de la page : pas de décor, pas de flou, cadres très sobres.
   Positions en % de la largeur de la scène (la hauteur de la scène est fixée
   par aspect-ratio), recomposées à chaque palier — pas une simple réduction. */
.show { position: relative; aspect-ratio: 100 / 60; margin-top: 8px; }
.dev { position: absolute; margin: 0; overflow: hidden; background: #0c0c0b;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .09); }
.dev img { display: block; width: 100%; height: auto; border-radius: 0; }
/* ordinateur : fine barre de fenêtre, rien d'autre */
.dev-desktop { left: 0; top: 0; width: 80%; border-radius: 8px; z-index: 1; }
.dev-bar { display: flex; gap: 6px; align-items: center; height: clamp(14px, 1.6vw, 24px); padding: 0 12px; background: #1c1b18; }
.dev-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
/* tablette : à droite, chevauche le bord de l'ordinateur */
.dev-tablette { right: 0; bottom: 0; width: 25%; border-radius: 14px; border: 5px solid #0c0c0b; z-index: 2; }
/* mobile : au premier plan, dans l'angle bas de l'ordinateur */
.dev-mobile { right: 21%; bottom: 0; width: 12.5%; border-radius: 18px; border: 4px solid #0c0c0b; z-index: 3; }
/* site archivé : la seule vue ordinateur, centrée */
.show--seul { aspect-ratio: auto; max-width: 900px; margin-inline: auto; }
.show--seul .dev-desktop { position: relative; width: 100%; }

/* tablette : l'ordinateur recule un peu, tablette et mobile gagnent en place */
@media (max-width: 1100px) {
  .show { aspect-ratio: 100 / 66; }
  .dev-desktop { width: 76%; }
  .dev-tablette { width: 29%; }
  .dev-mobile { right: 24%; width: 15%; }
}
/* mobile : le téléphone devient l'élément principal, les autres vues passent derrière */
@media (max-width: 700px) {
  .show { aspect-ratio: 100 / 112; }
  .dev-desktop { width: 88%; }
  .dev-bar { height: 12px; padding: 0 8px; gap: 4px; }
  .dev-bar i { width: 4px; height: 4px; }
  .dev-tablette { top: 20%; bottom: auto; width: 42%; border-width: 4px; border-radius: 12px; }
  .dev-mobile { left: 6%; right: auto; width: 43%; border-radius: 16px; }
}

/* split avec note discrète, bouton secondaire et visuel (ex. rapport de maintenance) */
.p-split-r .p-note { font-size: 16px; color: rgba(var(--ink-rgb), .6); }
.p-split-r .p-ctas { margin-top: 26px; }
.p-split--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'l img' 'r img'; grid-template-rows: auto 1fr; row-gap: 26px; align-items: start; }
.p-steps--4 { grid-template-columns: repeat(4, 1fr); }
/* séparateurs et retraits recalés sur 4 colonnes */
.p-steps--4 .p-step { border-right: 1px solid var(--ink-faint); padding-left: clamp(18px, 2.4vw, 36px); }
.p-steps--4 .p-step:nth-child(4n) { border-right: 0; }
.p-steps--4 .p-step:nth-child(4n+1) { padding-left: 0; }
@media (max-width: 1100px) {
  .p-steps--4 { grid-template-columns: repeat(2, 1fr); }
  .p-steps--4 .p-step:nth-child(2n) { border-right: 0; }
  .p-steps--4 .p-step:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 900px) { .p-steps--4 { grid-template-columns: 1fr; } .p-steps--4 .p-step { padding-left: 0; border-right: 0; } }
.p-split--img .p-split-l { grid-area: l; }
.p-split--img .p-split-r { grid-area: r; }
.p-split-img { grid-area: img; margin: 0; justify-self: end; width: min(100%, 500px); }
.p-split-img img { width: 100%; height: auto; border-radius: 0; }
@media (max-width: 900px) {
  .p-split--img { grid-template-columns: 1fr; grid-template-areas: 'l' 'r' 'img'; }
  .p-split-img { justify-self: center; width: min(100%, 380px); }
}

/* 5 étapes : une seule ligne sur grand écran ; en dessous, la grille standard de 3 */
@media (min-width: 1101px) {
  .p-steps--5 { grid-template-columns: repeat(5, 1fr); }
  .p-steps--5 .p-step { border-right: 1px solid var(--ink-faint); padding-left: clamp(16px, 1.8vw, 28px); padding-right: clamp(16px, 1.8vw, 28px); }
  .p-steps--5 .p-step:nth-child(5n) { border-right: 0; }
  .p-steps--5 .p-step:nth-child(5n+1) { padding-left: 0; }
}

/* ═══════════ HÉROS ANIMÉS — SEO et Google Ads ═══════════
   Illustrations en HTML/CSS (contenus/animations-hero.mjs). Tout est dimensionné
   en em sur une base en cqw : la composition garde ses proportions à toute largeur.
   Rouge = accent uniquement (filets, points, bouton), jamais couleur de texte.
   « Mouvement réduit » : l'animation est figée sur son état final. */
.ha { position: relative; width: 100%; aspect-ratio: 1 / .9; container-type: inline-size; justify-self: end; max-width: 580px; }
.ha-in { position: absolute; inset: 0; font-size: 2.55cqw; }
.ha-win { position: absolute; left: 0; top: 2%; width: 86%; padding: 1.5em; border-radius: .9em; background: #1d1c19; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.ha-search { display: flex; align-items: center; gap: .7em; height: 3.1em; padding: 0 1.2em; border-radius: 1.55em; background: #2a2925; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ha-loupe { width: 1.3em; height: 1.3em; fill: none; stroke: rgba(242, 241, 236, .55); stroke-width: 2; stroke-linecap: round; flex: none; }
.ha-query { overflow: hidden; white-space: nowrap; font-size: 1.12em; color: #f2f1ec; }
.ha-type { display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: ha-type var(--d) steps(24, end) infinite; }
.ha-caret { width: 1px; height: 1.3em; background: #f2f1ec; animation: ha-blink .9s steps(2) infinite; margin-left: -.3em; }
.ha-l { display: block; height: .55em; border-radius: .3em; background: rgba(242, 241, 236, .12); }
.ha-l--url { width: 34%; height: .45em; }
.ha-l--titre { width: 72%; height: .75em; margin-top: .55em; background: rgba(242, 241, 236, .26); }
.ha-l--desc { width: 90%; margin-top: .55em; }
.ha .ha-url { display: block; font-size: .78em; letter-spacing: .04em; color: rgba(242, 241, 236, .6); text-transform: none; }
.ha-titre { display: block; margin-top: .3em; font-size: 1.12em; font-weight: 500; color: #f2f1ec; white-space: nowrap; }
.ha-card { position: absolute; background: #201f1c; border-radius: .8em; box-shadow: 0 24px 48px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .09); }
.ha .ha-card .mono, .ha .ha-chain { font-size: .72em; letter-spacing: .1em; color: rgba(242, 241, 236, .55); }

/* ─── SEO : 12 s, le résultat remonte d'une place toutes les ~1,2 s ─── */
.ha-seo { --d: 12s; --e: cubic-bezier(.65, 0, .35, 1); --s: 4.55em; }
.ha-seo .ha-list { position: relative; height: 22.5em; margin-top: 1.4em; list-style: none; animation: ha-list var(--d) infinite; }
.ha-seo .ha-r { position: absolute; left: 0; right: 0; top: 0; height: 3.9em; padding: .55em 0 0 .9em; border-left: 3px solid transparent; }
.ha-seo .ha-r--a { animation: ha-a var(--d) var(--e) infinite; }
.ha-seo .ha-r--b { animation: ha-b var(--d) var(--e) infinite; }
.ha-seo .ha-r--c { animation: ha-c var(--d) var(--e) infinite; }
.ha-seo .ha-r--d { animation: ha-d var(--d) var(--e) infinite; }
.ha-seo .ha-r--you { animation: ha-you var(--d) var(--e) infinite; background: linear-gradient(90deg, rgba(228, 4, 39, .1), transparent 70%); border-radius: 0 .5em .5em 0; }
@keyframes ha-a { 0%, 60% { transform: translateY(0); } 64%, 100% { transform: translateY(var(--s)); } }
@keyframes ha-b { 0%, 50% { transform: translateY(var(--s)); } 54%, 100% { transform: translateY(calc(2 * var(--s))); } }
@keyframes ha-c { 0%, 40% { transform: translateY(calc(2 * var(--s))); } 44%, 100% { transform: translateY(calc(3 * var(--s))); } }
@keyframes ha-d { 0%, 30% { transform: translateY(calc(3 * var(--s))); } 34%, 100% { transform: translateY(calc(4 * var(--s))); } }
@keyframes ha-you {
  0%, 30% { transform: translateY(calc(4 * var(--s))); border-left-color: transparent; }
  34%, 40% { transform: translateY(calc(3 * var(--s))); }
  44%, 50% { transform: translateY(calc(2 * var(--s))); }
  54%, 60% { transform: translateY(var(--s)); border-left-color: transparent; }
  64%, 100% { transform: translateY(0); border-left-color: #e40427; }
}
@keyframes ha-list { 0%, 15% { opacity: 0; } 19%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes ha-type { 0% { width: 0; } 14%, 92% { width: 100%; } 97%, 100% { width: 0; } }
@keyframes ha-blink { 50% { opacity: 0; } }
.ha-pos { right: 0; bottom: 3%; width: 38%; padding: 1.2em 1.3em 1em; }
.ha-roll { height: 1em; overflow: hidden; font-size: 3.6em; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: #f2f1ec; margin-top: .15em; }
.ha-roll span { display: block; animation: ha-roll var(--d) var(--e) infinite; }
@keyframes ha-roll { 0%, 30% { transform: translateY(0); } 34%, 40% { transform: translateY(-100%); } 44%, 50% { transform: translateY(-200%); } 54%, 60% { transform: translateY(-300%); } 64%, 100% { transform: translateY(-400%); } }
.ha-spark { display: block; width: 100%; height: 2.6em; margin-top: .6em; overflow: visible; }
.ha-spark polyline { fill: none; stroke: #e40427; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 160; animation: ha-spark var(--d) linear infinite; }
@keyframes ha-spark { 0%, 28% { stroke-dashoffset: 160; } 66%, 92% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 160; } }
.ha-cap { margin-top: .5em; }

/* ─── Google Ads : 14 s, recherche → annonce → clic → page → demande ─── */
.ha-ads { --d: 14s; --e: cubic-bezier(.65, 0, .35, 1); }
.ha-ads .ha-win { height: 80%; }
.ha-serp { position: absolute; left: 1.5em; right: 1.5em; top: 6.1em; animation: ha-serp var(--d) infinite; }
.ha-ad { display: block; padding: .9em 1em 1em; border-radius: .6em; background: rgba(242, 241, 236, .04); box-shadow: inset 3px 0 0 #e40427; animation: ha-ad var(--d) var(--e) infinite; }
.ha .ha-chip { display: inline-block; padding: .25em .6em; border: 1px solid rgba(242, 241, 236, .3); border-radius: .3em; font-size: .7em; letter-spacing: .08em; color: #f2f1ec; }
.ha-ad .ha-url { display: inline; margin-left: .7em; }
.ha-links { display: flex; gap: .6em; margin-top: .7em; }
.ha-links i { font-style: normal; font-size: .82em; padding: .35em .8em; border-radius: 1em; box-shadow: inset 0 0 0 1px rgba(242, 241, 236, .2); color: rgba(242, 241, 236, .8); }
.ha-list--ads { list-style: none; margin-top: 1.2em; }
.ha-list--ads .ha-r { height: 3.9em; padding: .5em 0 0 1em; }
.ha-land { position: absolute; left: 1.5em; right: 1.5em; top: 6.1em; bottom: 1.5em; padding: 1.1em; border-radius: .6em; background: #f2f1ec; display: flex; flex-direction: column; gap: .7em; animation: ha-land var(--d) var(--e) infinite; }
.ha-land-bar { height: .9em; width: 100%; border-radius: .2em; background: #d8d6cf; }
.ha-land-h { height: 1.1em; width: 76%; border-radius: .3em; background: #141311; margin-top: .4em; }
.ha-land-h--2 { width: 52%; margin-top: 0; }
.ha-field { height: 1.9em; border-radius: .35em; background: #fff; box-shadow: inset 0 0 0 1px #d0cec7; }
.ha-field--court { width: 60%; }
.ha-btn { align-self: flex-start; margin-top: .2em; padding: .7em 1.2em; border-radius: .25em; background: #e40427; color: #fff; font-size: .82em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; animation: ha-press var(--d) infinite; }
.ha-cursor { position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; fill: #f2f1ec; stroke: #141311; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); animation: ha-cursor var(--d) var(--e) infinite; }
@keyframes ha-serp { 0%, 12% { opacity: 0; } 16%, 34% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ha-ad { 0%, 13% { transform: translateY(.8em); opacity: 0; } 18%, 29% { transform: none; opacity: 1; background-color: rgba(242, 241, 236, .04); } 31%, 34% { background-color: rgba(242, 241, 236, .12); } 100% { opacity: 1; } }
@keyframes ha-land { 0%, 36% { opacity: 0; transform: translateY(1.2em); } 42%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ha-press { 0%, 52% { filter: none; transform: none; } 53.5% { filter: brightness(1.2); transform: scale(.96); } 56%, 100% { filter: none; transform: none; } }
@keyframes ha-cursor {
  0%, 18% { transform: translate(28em, 24em); opacity: 0; }
  21% { opacity: 1; }
  29%, 32% { transform: translate(10em, 8.9em); }
  30.5% { transform: translate(10em, 8.9em) scale(.85); }
  44% { transform: translate(20em, 17em); }
  51%, 55% { transform: translate(5.5em, 20.6em); }
  53.5% { transform: translate(5.5em, 20.6em) scale(.85); }
  62%, 90% { transform: translate(14em, 26em); opacity: 1; }
  95%, 100% { opacity: 0; transform: translate(14em, 26em); }
}
.ha-toast { right: 0; bottom: 12%; width: 56%; padding: 1em 1.2em; display: flex; gap: .9em; align-items: center; animation: ha-toast var(--d) var(--e) infinite; }
.ha-check { flex: none; width: 2em; height: 2em; border-radius: 50%; background: #e40427; position: relative; }
.ha-check::after { content: ''; position: absolute; left: .72em; top: .45em; width: .45em; height: .8em; border: solid #fff; border-width: 0 .18em .18em 0; transform: rotate(45deg); }
.ha-toast b { display: block; font-weight: 500; font-size: .95em; color: #f2f1ec; }
.ha-toast em { display: block; font-style: normal; font-size: .8em; color: rgba(242, 241, 236, .55); margin-top: .15em; }
@keyframes ha-toast { 0%, 56% { opacity: 0; transform: translateY(1em); } 61%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(.4em); } }
.ha-chain { position: absolute; left: 0; bottom: 0; display: flex; gap: 1.6em; list-style: none; }
.ha-chain li { display: flex; align-items: center; gap: .6em; }
.ha-chain li::before { content: ''; width: .75em; height: .75em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(242, 241, 236, .35); animation: var(--k) var(--d) infinite; }
/* les points s'allument au fil du parcours et s'éteignent ensemble en fin de boucle */
.ha-chain li:nth-child(1) { --k: ha-dot1; } .ha-chain li:nth-child(2) { --k: ha-dot2; } .ha-chain li:nth-child(3) { --k: ha-dot3; } .ha-chain li:nth-child(4) { --k: ha-dot4; }
@keyframes ha-dot1 { 0%, 11% { background: transparent; } 13%, 90% { background: #e40427; box-shadow: none; } 95%, 100% { background: transparent; } }
@keyframes ha-dot2 { 0%, 29% { background: transparent; } 31%, 90% { background: #e40427; box-shadow: none; } 95%, 100% { background: transparent; } }
@keyframes ha-dot3 { 0%, 40% { background: transparent; } 42%, 90% { background: #e40427; box-shadow: none; } 95%, 100% { background: transparent; } }
@keyframes ha-dot4 { 0%, 58% { background: transparent; } 60%, 90% { background: #e40427; box-shadow: none; } 95%, 100% { background: transparent; } }
.ha-ads .ha-list--ads .ha-r { position: static; }

/* mouvement réduit : aucune animation, la composition montre directement l'état final */
@media (prefers-reduced-motion: reduce) {
  .ha *, .ha *::before { animation: none !important; }
  .ha-type { width: auto; } .ha-caret, .ha-cursor { display: none; }
  .ha-seo .ha-r--a { transform: translateY(var(--s)); } .ha-seo .ha-r--b { transform: translateY(calc(2 * var(--s))); }
  .ha-seo .ha-r--c { transform: translateY(calc(3 * var(--s))); } .ha-seo .ha-r--d { transform: translateY(calc(4 * var(--s))); }
  .ha-seo .ha-r--you { transform: none; border-left-color: #e40427; }
  .ha-roll span { transform: translateY(-400%); } .ha-spark polyline { stroke-dashoffset: 0; }
  .ha-serp { opacity: 0; } .ha-land, .ha-toast { opacity: 1; transform: none; }
  .ha-chain li::before { background: #e40427; box-shadow: none; }
}
/* sous 900 px : l'illustration passe sous le texte, centrée */
@media (max-width: 900px) { .ha { justify-self: center; max-width: 480px; margin-top: 8px; } }

/* ═══════════ ARTICLE DE BLOG — gabarit éditorial sombre ═══════════
   Héros en deux zones (texte à gauche, image qui file jusqu'au bord droit,
   fondue par un dégradé), sommaire collant à gauche, colonne de lecture
   maîtrisée, bloc auteur, puis CTA et articles liés.
   Sofia Pro partout ; DM Mono pour les seules informations éditoriales.
   Le rouge n'est qu'un accent (filet actif du sommaire). */
.article { --lire: 720px; }
.art-hero { position: relative; min-height: min(78vh, 700px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.art-hero-copy { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: calc(110px + 5vh) var(--gutter) 8vh; }
.art-hero-copy > * { max-width: min(620px, 48%); }
.art-hero-copy > .crumbs { max-width: none; }
.article .art-title { margin-top: 6px; font-size: clamp(38px, 3.9vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.art-chapeau { margin-top: 24px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: rgba(var(--ink-rgb), .8); }
.art-meta { margin-top: 28px; font-size: 11px; line-height: 1.7; letter-spacing: .08em; color: rgba(var(--ink-rgb), .55); }
.art-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; margin: 0; z-index: 0; }
.art-hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* fondu : l'image se dissout dans le fond, vers le texte et vers le bas */
.art-hero-img::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bone) 0%, rgba(20, 19, 17, .82) 22%, rgba(20, 19, 17, .25) 58%, rgba(20, 19, 17, 0) 100%),
  linear-gradient(0deg, var(--bone) 0%, rgba(20, 19, 17, 0) 30%); }

.art-layout { max-width: 1180px; margin: 0 auto; padding: 8vh var(--gutter) 10vh; display: grid; grid-template-columns: 250px minmax(0, var(--lire)); justify-content: center; gap: clamp(36px, 5vw, 84px); }
.art-layout--seul { grid-template-columns: minmax(0, var(--lire)); }
.art-side { position: sticky; top: 104px; align-self: start; }

/* sommaire */
.art-toc summary { list-style: none; cursor: default; font-size: 11px; letter-spacing: .1em; color: rgba(var(--ink-rgb), .55); padding-bottom: 14px; }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc ol { list-style: none; border-left: 1px solid var(--ink-faint); }
.art-toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: rgba(var(--ink-rgb), .55); transition: color .25s, border-color .25s; }
.art-toc a:hover { color: rgba(var(--ink-rgb), .9); }
.art-toc a[aria-current] { color: var(--ink); border-left-color: var(--lime); }
.art-side-cta { margin-top: 34px; padding: 22px; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-faint); }
.art-side-t { font-weight: 500; font-size: 17px; }
.art-side-cta p + p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: rgba(var(--ink-rgb), .7); }
.art-side-cta .btn { margin-top: 16px; padding: 12px 14px; font-size: 11.5px; }

/* colonne de lecture */
.article .art-body { font-size: 18px; line-height: 1.75; color: rgba(var(--ink-rgb), .84); }
.article .art-body > * + * { margin-top: 1.25em; }
.article .art-body h2 { margin-top: 2.6em; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 110px; }
.article .art-body > h2:first-child { margin-top: 0; }
.article .art-body h3 { margin-top: 2em; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; color: var(--ink); scroll-margin-top: 110px; }
.article .art-body h2 + *, .article .art-body h3 + * { margin-top: .7em; }
.article .art-body ul, .article .art-body ol { padding-left: 1.3em; }
.article .art-body li + li { margin-top: .65em; }
.article .art-body li::marker { color: rgba(var(--ink-rgb), .45); }
.article .art-body strong { color: var(--ink); font-weight: 600; }
.article .art-body a:not(.link-arrow) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(var(--ink-rgb), .35); text-underline-offset: 3px; }
.article .art-body a:not(.link-arrow):hover { text-decoration-color: var(--ink); }
.article .art-body blockquote { padding-left: 22px; border-left: 2px solid var(--lime); font-size: 20px; color: var(--ink); }
.art-zoom { display: block; width: 100%; margin: 2.2em 0; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.art-zoom img { display: block; width: 100%; height: auto; margin: 0; border-radius: 6px; transition: transform .6s var(--ease-out), opacity .3s; }
.art-zoom:hover img { transform: scale(1.015); }
.art-zoom:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
p:has(> .art-zoom) { margin-top: 0 !important; }

/* bloc auteur */
.art-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 72px; padding: 24px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-faint); }
.art-author-photo { flex: none; }
.art-author-photo img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; }
.art-author-name { font-size: 18px; font-weight: 500; }
.art-author .mono { margin-top: 4px; font-size: 10.5px; letter-spacing: .06em; }
.art-author-txt { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(var(--ink-rgb), .72); }
.art-author .link-arrow { margin-top: 14px; }

/* articles liés : secondaires, après le CTA */
.art-related .p-head--row { align-items: end; }
.art-related-t { font-size: clamp(24px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; margin-top: 8px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 28px; }
.rcard-link { display: block; }
.rcard-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--white); }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease-out); }
.rcard-link:hover .rcard-img img { transform: scale(1.03); }
.rcard-body { display: grid; gap: 8px; margin-top: 14px; }
.rcard-cat { font-size: 10.5px; letter-spacing: .08em; color: rgba(var(--ink-rgb), .7); }
.rcard-title { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.rcard-body .ash { font-size: 10.5px; letter-spacing: .06em; }

/* page auteur */
.auteur-fonction { margin-top: 14px; color: rgba(var(--ink-rgb), .6); letter-spacing: .08em; }
.p-bridge-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .p-bridge-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* visionneuse : compteur et boutons masqués s'il n'y a qu'une image */
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
.lightbox img { touch-action: pan-y; user-select: none; }

/* ─── tablette : deux colonnes tant que la largeur le permet ─── */
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .art-hero-copy > * { max-width: 56%; }
  .art-hero-img { width: 52%; }
}
/* ─── mobile et tablette étroite : tout en vertical, sommaire en accordéon ─── */
@media (max-width: 900px) {
  .art-hero { display: block; min-height: 0; }
  .art-hero-copy { padding: calc(88px + 4vh) var(--gutter) 28px; }
  .art-hero-copy > * { max-width: none; }
  .art-hero-img { position: relative; width: auto; margin: 0 var(--gutter); aspect-ratio: 16 / 9; }
  .art-hero-img img { border-radius: 6px; }
  .art-hero-img::after { display: none; }
  .art-layout, .art-layout--seul { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 28px; }
  .art-side { position: static; }
  .art-side-cta { display: none; }
  .art-toc details { border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-faint); }
  .art-toc summary { cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
  .art-toc summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
  .art-toc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .art-toc ol { margin: 0 18px 16px; }
  .article .art-body { font-size: 17px; line-height: 1.72; }
  .art-zoom { margin: 1.8em 0; }
  .art-author { padding: 18px; gap: 14px; margin-top: 56px; }
  .art-author-photo img { width: 56px; height: 70px; }
  .rel-grid { grid-template-columns: 1fr; gap: 26px; }
  .art-related .p-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (min-width: 901px) { .art-toc summary { pointer-events: none; } }
/* sommaire long : la colonne collante défile elle-même si elle dépasse l'écran */
@media (min-width: 901px) { .art-side { max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: none; } .art-side::-webkit-scrollbar { display: none; } }
.prose-lines { line-height: 1.65; }

/* article : sommaire calé sur la marge gauche du héros (même conteneur de 1320 px),
   colonne de lecture élargie à 800 px (≈ 80 caractères par ligne à 18 px) */
.article { --lire: 800px; }
.art-layout { max-width: 1320px; grid-template-columns: 250px minmax(0, var(--lire)); justify-content: start; gap: clamp(40px, 6vw, 96px); }
.article .art-body p, .article .art-body li { max-width: none; }
@media (max-width: 1100px) { .art-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 44px; } }
@media (max-width: 900px) { .art-layout, .art-layout--seul { grid-template-columns: minmax(0, 1fr); } }
/* article : les articles liés suivent le CTA de près (le CTA garde sa marge basse de 12vh) */
.article ~ .p-cta { padding-bottom: 5vh; }
.article ~ .art-related { padding-top: 3vh; }

/* page auteur : réseaux sociaux, discrets, sous les boutons */
.auteur-liens { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 11px; letter-spacing: .08em; }
.auteur-liens a { color: rgba(var(--ink-rgb), .7); border-bottom: 1px solid var(--ink-faint); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.auteur-liens a:hover { color: var(--ink); border-color: var(--ink); }
