/* FICHIER : serveur/public/site.css
   ROLE    : pages publiques de jalon-pro (accueil, boutique) : maquette Claude Design du 24/10/2026,
             titres Inter Tight 800, texte Inter, repères JetBrains Mono, nuit #0A1622, accent #FF5A1F.
   STATUT  : 24/10/2026, v2 : jalon-pro vend l'équipement (boîtier, énergie, fixation, logiciel)
   NE PAS TOUCHER SI : on remet Syne ; JO l'a refusée le 24/10/2026. */

@font-face { font-family: "Inter Tight"; font-weight: 700 800; font-display: swap; src: url(/polices/intertight.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/polices/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/polices/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/polices/inter-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/polices/jetbrainsmono-500.woff2) format("woff2"); }

:root {
  --nuit: #0A1622; --marine: #003566; --accent: #FF5A1F; --gris: #F2F5F8; --trait: #D5DEE7;
  --texte: #4A5663; --titre: "Inter Tight", Inter, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.vitrine { margin: 0; background: #fff; color: var(--nuit); font: 400 16px/26px Inter, -apple-system, "Segoe UI", sans-serif; }
.vitrine a { color: inherit; text-decoration: none; }
.vitrine h1, .vitrine h2, .vitrine h3 { margin: 0; font-family: var(--titre); }
.v-int { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Bande */
.v-bande { position: sticky; top: 0; z-index: 20; background: rgba(10, 22, 34, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
           border-bottom: 1px solid rgba(255, 255, 255, .08); }
.v-bande-int { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vitrine .v-signe { display: flex; align-items: center; gap: 12px; color: #fff; font: 700 21px var(--titre); letter-spacing: -.01em; white-space: nowrap; }
.v-nav { display: flex; align-items: center; gap: 32px; }
.v-liens { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.v-liens a { color: rgba(255, 255, 255, .78); }
.v-liens a:hover { color: #fff; }

/* Boutons */
.v-bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 100px; background: var(--accent);
            color: var(--nuit) !important; font: 600 15px Inter, sans-serif; white-space: nowrap; border: 0; transition: filter .15s; }
.v-bouton:hover { filter: brightness(1.08); }
.v-bouton.blanc { background: #fff; }
.v-bouton.fantome { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.v-bouton.fantome:hover { background: rgba(255, 255, 255, .1); filter: none; }
.v-bouton.petit { min-height: 44px; padding: 0 22px; font-size: 14px; background: #fff; }
.v-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 38px 0 0; }

/* Repères et titres de section */
.v-surtitre { margin: 0 0 18px; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--marine); }
.sombre .v-surtitre { color: var(--accent); }
.v-tete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.v-tete-section > div { flex: 1 1 520px; }
.v-tete-section > p { flex: 0 1 380px; margin: 0; font-size: 17px; line-height: 28px; color: var(--texte); }
.sombre .v-tete-section > p { color: rgba(255, 255, 255, .72); }
.vitrine h2 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.03em; }
.vitrine h3 { font-weight: 700; font-size: 21px; letter-spacing: -.01em; }

.v-section { padding: 128px 0; }
.v-section.gris { background: var(--gris); }
.sombre { background: var(--nuit); color: #fff; }

/* Ouverture */
.v-ouverture { position: relative; min-height: 820px; margin-top: -73px; overflow: hidden; background-color: var(--nuit);
               background-image: linear-gradient(rgba(120, 160, 200, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 200, .13) 1px, transparent 1px),
                                 linear-gradient(rgba(120, 160, 200, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 200, .07) 1px, transparent 1px);
               background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.v-plan { position: absolute; top: 73px; right: max(16px, calc(50% - 660px)); height: calc(100% - 137px); width: auto; max-width: 62%; }
.v-voile { position: absolute; inset: 0; pointer-events: none;
           background: linear-gradient(90deg, var(--nuit) 0, rgba(10, 22, 34, .9) 30%, rgba(10, 22, 34, 0) 52%); }
.v-ouverture-int { position: relative; min-height: 820px; max-width: 1280px; margin: 0 auto; padding: 150px 24px 130px;
                   display: flex; flex-direction: column; justify-content: flex-end; }
.v-ouverture .v-surtitre { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #fff; }
.v-point { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.v-ouverture h1 { max-width: 640px; color: #fff; font-weight: 800; font-size: clamp(46px, 5.6vw, 80px); line-height: .96; letter-spacing: -.035em; }
.v-chapo { max-width: 560px; margin: 30px 0 0; font-size: 19px; line-height: 30px; color: rgba(255, 255, 255, .88); }
.v-regle { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 22, 34, .5); }
.v-graduations { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-start; justify-content: space-between; }
.v-graduations i { width: 1px; height: 7px; background: rgba(255, 255, 255, .35); }
.v-graduations i.moyen { height: 14px; }
.v-graduations i.grand { height: 22px; background: var(--accent); }
.v-etapes { position: absolute; left: 0; right: 0; bottom: 12px; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between;
            font: 500 11px var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .55); }

/* La solution */
.v-pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.v-piece { display: flex; flex-direction: column; min-height: 420px; padding: 28px 28px 32px; border-radius: 14px; background: var(--gris); }
.v-piece-n { font: 500 13px var(--mono); color: var(--marine); }
.v-piece-dessin { height: 200px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; color: var(--nuit); }
.v-piece h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.015em; }
.v-piece p { margin: 0; color: var(--texte); }
.v-piece.sombre { background: var(--nuit); }
.v-piece.sombre .v-piece-n { color: var(--accent); }
.v-piece.sombre .v-piece-dessin { color: #fff; }
.v-piece.sombre p { color: rgba(255, 255, 255, .72); }

/* Le logiciel */
.v-logiciel { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.v-logiciel > div { flex: 1 1 460px; min-width: 0; }
.v-logiciel h2 { margin-bottom: 44px; font-size: clamp(40px, 5vw, 68px); }
.v-point-liste { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 22px 0; border-top: 1px solid var(--trait); }
.v-point-liste > span { padding-top: 4px; font: 500 13px var(--mono); color: var(--marine); }
.v-point-liste h3 { margin-bottom: 6px; }
.v-point-liste p { margin: 0; color: var(--texte); }
.v-carte-cam { width: 100%; max-width: 500px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden;
               box-shadow: 0 40px 100px -30px rgba(10, 22, 34, .35), 0 0 0 1px rgba(10, 22, 34, .05); }
.v-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #E6ECF2; }
.v-carte-tete strong { display: block; font: 700 18px var(--titre); }
.v-carte-tete small { font-size: 13px; color: #5B6772; }
.v-en-ligne { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; background: #E7F6EE; color: #146C3C; font-size: 13px; font-weight: 600; }
.v-en-ligne::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F9D57; }
.v-carte-photo { position: relative; }
.v-carte-photo img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.v-carte-photo span { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 6px; background: rgba(10, 22, 34, .75); color: #fff; font: 500 12px var(--mono); }
.v-carte-etat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #E6ECF2; }
.v-carte-etat div { padding: 16px 22px; font-size: 12px; color: #5B6772; }
.v-carte-etat div + div { border-left: 1px solid #E6ECF2; }
.v-carte-etat b { display: block; margin-top: 4px; font: 500 18px var(--mono); color: var(--nuit); }
.v-carte-jour { padding: 18px 22px 22px; }
.v-carte-jour p { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 13px; color: #5B6772; }
.v-carte-jour p span { font-family: var(--mono); }
.v-vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.v-vignettes img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.v-vignettes img:last-child { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Avant / après */
.v-compare { position: relative; aspect-ratio: 1280 / 462; border-radius: 10px; overflow: hidden; background: #13222f; --pos: 50%; }
.v-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v-compare .avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.v-compare-trait { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.v-compare-trait span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--nuit);
                        display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.v-etiquette { position: absolute; top: 18px; padding: 6px 12px; border-radius: 100px; font: 500 12px var(--mono); letter-spacing: .1em; }
.v-etiquette.g { left: 18px; background: rgba(10, 22, 34, .7); color: #fff; }
.v-etiquette.d { right: 18px; background: var(--accent); color: var(--nuit); }
.v-curseur { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 14px 0 0; background: transparent; cursor: ew-resize; }
.v-curseur::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .25); }
.v-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; }
.v-curseur::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .25); }
.v-curseur::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }

/* Films */
.v-films { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.v-film { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10;
          background: var(--nuit); text-align: left; font: inherit; }
.v-film.large { grid-column: 1 / -1; aspect-ratio: 1280 / 462; }
.v-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.v-film:hover img { transform: scale(1.04); }
.v-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 34, 0) 45%, rgba(10, 22, 34, .85) 100%); }
.v-film-legende { position: absolute; z-index: 1; left: 24px; right: 90px; bottom: 22px; color: #fff; }
.v-film-legende small { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.v-film-legende strong { display: block; margin-top: 6px; font: 700 24px/1.1 var(--titre); letter-spacing: -.015em; }
.v-film.large .v-film-legende { left: 32px; right: 120px; bottom: 28px; }
.v-film.large .v-film-legende small { font-size: 12px; }
.v-film.large .v-film-legende strong { margin-top: 8px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.v-lire { position: absolute; z-index: 1; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--nuit);
          display: flex; align-items: center; justify-content: center; }
.v-film.large .v-lire { right: 32px; bottom: 28px; width: 72px; height: 72px; background: var(--accent); }

/* Visual Laps */
.v-laps { position: relative; overflow: hidden; }
.v-laps > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.v-laps::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 22, 34, .96) 0%, rgba(10, 22, 34, .7) 55%, rgba(10, 22, 34, .2) 100%); }
.v-laps .v-int { position: relative; z-index: 2; padding-top: 128px; padding-bottom: 128px; }
.v-laps h2 { max-width: 820px; }
.v-laps p.v-chapo { max-width: 560px; margin-top: 28px; color: rgba(255, 255, 255, .82); }

/* Pied */
.v-pied { background: var(--nuit); color: rgba(255, 255, 255, .7); padding: 96px 0 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.v-pied-appel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.v-pied-appel > div:first-child { flex: 1 1 420px; }
.vitrine .v-pied h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.v-pied-appel p { margin: 14px 0 0; font-size: 17px; line-height: 28px; }
.v-pied-appel .v-actions { margin: 0; }
.v-geant { margin: 88px 0 40px; font: 800 clamp(64px, 15vw, 230px)/.8 var(--titre); letter-spacing: -.05em; color: transparent;
           -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); white-space: nowrap; overflow: hidden; }
.v-pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1);
              font-size: 14px; line-height: 23px; }
.v-pied-bas p { margin: 0; }
.v-pied a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.v-pied a.v-bouton { text-decoration: none; }

/* Boutique (fermée tant que JP_BOUTIQUE vaut false) */
.v-tete { padding: 96px 0 8px; }
.v-tete h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.03em; margin-bottom: 18px; }
.v-texte { max-width: 680px; margin: 0 0 8px; color: var(--texte); }
.v-catalogue { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.v-article { display: grid; grid-template-columns: 160px 1fr; background: var(--gris); border-radius: 14px; overflow: hidden; }
.v-article-image { display: flex; align-items: center; justify-content: center; color: var(--marine); }
.v-article-image svg { width: 88px; height: 88px; }
.v-article-corps { padding: 24px 26px; display: flex; flex-direction: column; }
.vitrine .v-article h2 { font-size: 22px; margin-bottom: 8px; }
.v-article p { margin: 0 0 18px; color: var(--texte); flex: 1; }
.v-article-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v-prix { font-weight: 600; }

/* Lecteur */
.v-lecteur { width: min(1280px, 94vw); padding: 0; border: 0; border-radius: 8px; background: #000; overflow: visible; }
.v-lecteur::backdrop { background: rgba(0, 10, 20, .85); }
.v-lecteur video { display: block; width: 100%; max-height: 80vh; border-radius: 8px; background: #000; }
.v-lecteur-titre { position: absolute; left: 0; top: 100%; margin: 12px 0 0; color: #fff; font: 700 18px var(--titre); }
.v-fermer { position: absolute; right: 0; bottom: 100%; margin-bottom: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
            background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.v-fermer:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 1100px) {
  .v-plan { max-width: none; opacity: .4; }
  .v-voile { background: linear-gradient(180deg, rgba(10, 22, 34, .1) 0, rgba(10, 22, 34, .88) 72%); }
}
@media (max-width: 640px) {
  .v-plan { right: -170px; height: 66%; }
}
@media (max-width: 820px) {
  .v-liens { display: none; }
  .v-carte-cam { order: -1; }
  .v-catalogue { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .v-int, .v-bande-int, .v-ouverture-int, .v-graduations, .v-etapes { padding-left: 16px; padding-right: 16px; }
  .v-ouverture, .v-ouverture-int { min-height: 640px; }
  .v-ouverture-int { padding-top: 110px; padding-bottom: 104px; }
  .v-chapo { font-size: 17px; line-height: 27px; }
  .v-etapes span:nth-child(2), .v-etapes span:nth-child(4) { display: none; }
  .v-section { padding: 80px 0; }
  .v-laps .v-int { padding-top: 80px; padding-bottom: 80px; }
  .v-tete-section { margin-bottom: 36px; }
  .v-piece { min-height: 0; }
  .v-piece-dessin { height: 160px; }
  .v-compare, .v-film.large { aspect-ratio: 16 / 9; }
  .v-film.large .v-film-legende { left: 20px; right: 92px; bottom: 20px; }
  .v-film.large .v-lire { right: 20px; bottom: 20px; width: 56px; height: 56px; }
  .v-pied { padding-top: 72px; }
  .v-geant { margin-top: 56px; }
  .v-article { grid-template-columns: 1fr; }
  .v-article-image { padding: 24px 0; }
}
