/* Scène Expert · variante « JK » (chargée après site.css, seulement avec node sources/build.js --jk)
   Fond blanc, titres condensés en capitales, accent rouge vif, boutons arrondis, encadrés pointillés,
   sections noires, photos en mouvement (zoom lent, mosaïque). Polices libres auto-hébergées :
   Roboto Condensed (titres), Public Sans (texte). */
@font-face { font-family: "JK Cond"; src: url(fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JK Sans"; src: url(fonts/public-sans-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "JK Sans"; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JK Sans"; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JK Sans"; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff; --paper: #ffffff; --ink: #111111; --ink-2: #2e2e2e; --muted: #6a6a6a; --line: #e4e4e4; --line-2: #c9c9c9;
  --accent: #b3261e; --accent-ink: #ffffff; --accent-soft: #fbeceb; --methode: #2f5d7a; --methode-soft: #eef3f6;
  --serif: "JK Sans", "Helvetica Neue", Arial, sans-serif; --sans: "JK Sans", "Helvetica Neue", Arial, sans-serif;
  --cond: "JK Cond", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --w: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0b; --paper: #141414; --ink: #f2f2f2; --ink-2: #d6d6d6; --muted: #9a9a9a; --line: #2a2a2a; --line-2: #444; --accent: #e5483d; --accent-ink: #fff; --accent-soft: #2a1412; }
}
:root[data-theme="dark"] { --bg: #0b0b0b; --paper: #141414; --ink: #f2f2f2; --ink-2: #d6d6d6; --muted: #9a9a9a; --line: #2a2a2a; --line-2: #444; --accent: #e5483d; --accent-ink: #fff; --accent-soft: #2a1412; }

body.jk { font: 400 1rem/1.7 var(--sans); }
.jk main { overflow-x: clip; }
.jk h1, .jk h2 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.02; }
.jk h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.jk h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.jk h3, .jk h4 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.jk .lead { font-family: var(--sans); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink-2); }
.jk .sur { font-family: var(--sans); font-weight: 600; letter-spacing: .14em; }
.jk .sur::before { display: none; }
.jk .sec + .sec { border-top: 0; }

/* Boutons arrondis rouges */
.jk .btn { border-radius: 999px; padding: .8em 1.9em; font-weight: 600; background: var(--accent); border-color: var(--accent); color: #fff; }
.jk .btn:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.jk .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.jk .btn.ghost:hover { background: var(--ink); color: var(--bg); }
.jk .lien { border-bottom-color: var(--accent); }

/* En-tête : logo hexagonal */
.jk .tete { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 0; }
.jk .tete .in { min-height: 88px; max-width: none; }
.jk .hexa { width: 58px; height: 51px; }
@media (max-width: 520px) { .jk .hexa { width: 42px; height: 37px; } }
.jk .marque b { font-family: var(--cond); font-weight: 700; font-size: 1.12rem; letter-spacing: .12em; }
.jk .marque small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.jk .nav a { font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.jk .nav a[aria-current="page"], .jk .nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
/* Menu replié plus tôt : navigation en capitales plus large, deux logos */
@media (max-width: 1180px) {
  .jk .menu-btn { display: block; }
  .jk .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--g) 20px; }
  .jk .nav.ouvert { display: flex; }
  .jk .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Titres de page */
.jk .titre-page { border-bottom: 0; padding-top: clamp(40px, 6vw, 80px); }
.jk .titre-page h1 { max-width: 24ch; }
.jk .bandeau { min-height: 52vh; }
.jk .bandeau img, .jk .plein img { animation: jk-zoom 18s ease-out both; }
.jk .bandeau h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

/* Diaporama plein écran de l'accueil */
.jk-diapo { position: relative; height: min(86vh, 860px); min-height: 440px; background: #0b0b0b; overflow: hidden; }
.jk-diapo .fondu-scene { height: 100%; }
.jk-diapo .fondu-diapo { position: absolute; inset: 0; margin: 0; }
.jk-diapo .fondu-diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.jk-diapo .fondu-diapo.actif img { animation: jk-zoom 9s ease-out both; }
.jk-diapo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--g) 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.jk-diapo .pastille { background: #fff; color: #111; text-decoration: none; border-radius: 999px; padding: .65em 1.4em; font-weight: 600; font-size: .95rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.jk-diapo .pastille::after { content: " →"; color: var(--accent); }
.jk-diapo .pastille:hover { color: var(--accent); }
.jk-diapo .credit-img { position: static; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.8); }
.jk-diapo .fondu-nav { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); margin: 0; color: #fff; z-index: 2; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.jk-diapo .fondu-nav button { color: #fff; border-color: rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.25); }
.jk-diapo .fondu-nav button:hover { background: #fff; color: #111; border-color: #fff; }
@keyframes jk-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@media (max-width: 700px) {
  .jk-diapo { height: 64vh; }
  .jk-diapo .fondu-nav { left: auto; right: var(--g); transform: none; bottom: 84px; }
  .jk-diapo .credit-img { display: none; }
}

/* Intro et encadrés pointillés */
.jk-intro h1 { margin-bottom: .35em; }
.jk-sous { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.3 var(--sans); color: var(--ink); margin: 1.2em 0 .7em; }
.jk-intro .jk-sous:first-of-type { margin-top: 0; }
.jk-intro p { max-width: 68ch; }
.jk-intro .actions { margin-top: 28px; }
.jk-cadres { display: flex; flex-direction: column; gap: 28px; }
.jk-cadre { border: 1.5px dashed var(--ink); padding: 26px 28px; }
.jk-cadre h2 { font-family: var(--sans); text-transform: none; font-weight: 400; font-size: 1.8rem; margin-bottom: .5em; }
.jk-cadre-sur { font-weight: 600; text-transform: uppercase; font-size: 1.1rem; margin-bottom: .6em; }
.jk-cadre ul { margin: 0; padding-left: 1.1em; }
.jk-cadre li { padding: 3px 0; }
.jk-cadre .btn { margin-top: 8px; }
@media (max-width: 860px) { .jk-cadres { margin-top: 40px; } }

/* Bloc agence : accroche rouge, chiffres, accordéon, pile de guides */
.jk-titre { margin-bottom: .2em; }
.jk-agence .jk-sous { margin-top: .2em; }
.jk-accroche { font: 300 clamp(2.2rem, 4.6vw, 4rem)/1.12 var(--sans); color: var(--accent); margin: .4em 0 .6em; letter-spacing: -.01em; }
.jk-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 48px; }
.jk-chiffres b { display: block; font: 300 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--sans); color: var(--ink); }
.jk-chiffres span { display: block; font: 300 clamp(1.05rem, 1.6vw, 1.45rem)/1.3 var(--sans); margin-top: 10px; }
.jk-accordeon details { border-bottom: 1px solid var(--line-2); }
.jk-accordeon summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font: 400 1.45rem/1.2 var(--sans); color: var(--ink-2); }
.jk-accordeon summary::-webkit-details-marker { display: none; }
.jk-accordeon summary::after { content: "+"; flex: none; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; transition: transform .3s ease; }
.jk-accordeon details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.jk-accordeon details p { padding: 0 0 22px; margin: 0; color: var(--ink-2); max-width: 64ch; }
.jk-pile { position: relative; min-height: 520px; }
.jk-pile > * { position: absolute; width: 48%; box-shadow: 0 24px 50px rgba(0,0,0,.22); animation: jk-flotte 7s ease-in-out infinite; }
.jk-pile > *:nth-child(1) { left: 2%; top: 22%; transform: rotate(-7deg); animation-delay: -2s; }
.jk-pile > *:nth-child(2) { left: 26%; top: 6%; transform: rotate(3deg); z-index: 1; }
.jk-pile > *:nth-child(3) { left: 48%; top: 30%; transform: rotate(9deg); animation-delay: -4s; }
.jk-pile > * img { width: 100%; height: auto; display: block; }
.jk-pile > img { height: auto; }
@keyframes jk-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 860px) { .jk-pile { min-height: 380px; margin-top: 24px; } .jk-chiffres { grid-template-columns: 1fr 1fr 1fr; gap: 14px; } }

/* Section noire : mosaïque des références */
.jk-noir { background: #000; color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.jk-noir h2 { color: #fff; }
.jk-liste { font: 300 clamp(1.6rem, 3.4vw, 2.7rem)/1.18 var(--sans); text-transform: uppercase; max-width: 26ch; margin: .2em 0 1em; }
.jk-lead-noir { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 28px; }
.jk-mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 250px); gap: 16px; grid-auto-flow: dense; }
.jk-mosaique a { display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none; background: #111; }
.jk-mosaique a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.jk-mosaique a:nth-child(7n+4) { grid-column: span 2; }
.jk-mosaique a:nth-child(7n+7) { grid-column: span 2; }
.jk-mosaique img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter .6s ease; animation: jk-respire 14s ease-in-out infinite alternate; }
.jk-mosaique a:nth-child(2n) img { animation-delay: -7s; }
.jk-mosaique a:hover img { transform: scale(1.08); filter: brightness(1.08); }
@media (max-width: 700px) { .jk-mosaique { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; } .jk-mosaique a:nth-child(7n+4), .jk-mosaique a:nth-child(7n+7) { grid-column: span 1; } .jk-mosaique a:nth-child(7n+1) { grid-column: span 2; } .jk-mosaique small { display: none; } .jk-mosaique span { padding: 30px 12px 10px; font-size: .85rem; } }
.jk-mosaique span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; font-weight: 600; line-height: 1.3; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.jk-mosaique small { display: block; font-weight: 400; font-size: .82rem; opacity: .85; margin-top: 4px; }
@keyframes jk-respire { from { scale: 1; } to { scale: 1.06; } }
.jk-noir .actions { margin-top: 28px; }
.jk-noir .btn.ghost { color: #fff; border-color: #fff; }

/* Bandeau de fin et pied de page */
.jk .appel { --appel-fond: #000; --appel-texte: #fff; }
.jk .appel .btn.ghost { color: #fff; border-color: #fff; }
.jk .appel .btn.ghost:hover { background: #fff; color: #111; }
.jk .appel h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.jk .pied { border-top: 0; background: #0b0b0b; color: #e8e8e8; }
.jk .pied h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.jk .pied .signature { border-top-color: #2a2a2a; }
.jk .pied .theme-btn { color: inherit; }

/* Cartes et repères */
.jk .reperes b, .jk .etapes li::before, .jk .liste-num > li::before { font-family: var(--sans); font-weight: 300; }
.jk .carte-ref .ci, .jk .carte-guide .couv { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .jk-diapo .fondu-diapo.actif img, .jk .bandeau img, .jk .plein img, .jk-pile > *, .jk-mosaique img { animation: none; }
}

/* Mobile : pile de guides en ligne, légendes courtes dans la mosaïque */
@media (max-width: 860px) {
  .jk-pile { min-height: 0; display: flex; justify-content: center; gap: 14px; padding: 28px 0 48px; }
  .jk-pile > * { position: static; width: 31%; }
}
@media (max-width: 700px) { .jk-mosaique small { display: none; } }

/* Bandeau défilant des équipements (photos) */
.jk-equip { padding: 0 0 clamp(40px, 6vw, 80px); }
.jk-equip .defile { margin-top: 0; -webkit-mask-image: none; mask-image: none; padding: 0; }
.jk-equip .defile-piste { animation-duration: 80s; }
.jk-equip .defile a { position: relative; width: clamp(240px, 26vw, 380px); aspect-ratio: 3 / 2; border: 0; background: #111; box-shadow: none; text-decoration: none; }
.jk-equip .defile a:hover { transform: none; }
.jk-equip .defile img { transition: transform 1.2s ease; }
.jk-equip .defile a:hover img { transform: scale(1.08); }
.jk-equip .defile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }

/* Machineries : vues de principe en fondu */
.jk-meca .planche-img { aspect-ratio: 3 / 2; background: #fff; }
.jk-meca .fondu-diapo .planche-img img { object-fit: contain; }

/* Types de salles : grille de 6 vues en coupe */
.jk-salles .jk-sous { margin-bottom: 28px; }
.jk-salles-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.jk-salles-grille a { color: inherit; text-decoration: none; display: block; }
.jk-salle-img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 4px; }
.jk-salle-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.jk-salles-grille a:hover .jk-salle-img img, .jk-salles-grille a:focus-visible .jk-salle-img img { transform: scale(1.06); }
.jk-salles-grille h3 { font-family: var(--cond); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; margin: 14px 0 4px; }
.jk-salles-grille a:hover h3 { color: var(--accent); }
.jk-salles-grille p { margin: 0; font-size: .95rem; color: var(--muted, #555); }
.jk-salles .credit-img { position: static; display: block; text-align: right; margin-top: 18px; font-size: .8rem; color: var(--muted, #666); text-shadow: none; }
@media (max-width: 900px) { .jk-salles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .jk-salles-grille { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .jk-salle-img img { transition: none; } }
.jk .marque small.metier { text-transform: none; letter-spacing: .04em; font-size: .7rem; }
