/* =========================================
   MR COPER Systems – vitrine
   Couleurs et typographie des cartes de visite
   ========================================= */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); }

:root {
  --bg: #060807;
  --bg-2: #0a0e0b;
  --card: #0d130f;
  --card-2: #111a13;
  --green: #4fb043;        /* furet du logo */
  --green-hi: #3ccf4e;     /* « Systems » */
  --green-deep: #173a1b;
  --trace: #17301b;        /* pistes de circuit en fond */
  --text: #eef3ed;
  --text-2: #c6d0c5;
  --muted: #8d9a8c;
  --line: rgba(79, 176, 67, .18);
  --line-2: rgba(79, 176, 67, .4);
  --radius: 14px;
  --wrap: 1180px;
  --head-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 17px/1.65 "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6fe07c; }
h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-hi); color: #031007; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--green-hi); color: #031007; border: 2px solid var(--green-hi); border-radius: 999px; padding: .78em 1.5em; font: 700 1rem/1.2 "Lato", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.btn:hover { background: #5be86a; border-color: #5be86a; color: #031007; box-shadow: 0 0 0 6px rgba(60, 207, 78, .14); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: rgba(60, 207, 78, .08); color: var(--text); border-color: var(--green-hi); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }
.btn-wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btns.center { justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête du site ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(6, 8, 7, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(6, 8, 7, .94); }
.head-row { display: flex; align-items: center; height: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: auto; }
.brand-txt { display: grid; line-height: 1; }
.brand-txt strong { font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); }
.brand-txt em { font-style: normal; font-weight: 700; font-size: .95rem; color: var(--green-hi); margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: rgba(79, 176, 67, .08); }
.nav .nav-cta { background: var(--green-hi); color: #031007; margin-left: 8px; }
.nav .nav-cta:hover { background: #5be86a; color: #031007; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.burger, .burger::before, .burger::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger { top: 21px; }
.burger::before { content: ""; left: 0; top: -7px; }
.burger::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 22px; background: rgba(6, 8, 7, .98); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Pistes de circuit décoratives ---------- */
.traces { position: absolute; color: var(--trace); pointer-events: none; z-index: 0; }
.traces-r { right: 0; top: 40px; width: min(320px, 30vw); }
.traces-l { left: 0; bottom: 30px; width: 260px; opacity: .8; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(79, 176, 67, .12), transparent 62%); z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.15fr .85fr; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--green-hi); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--green-hi); border-radius: 2px; }
.hero h1 { margin-bottom: .45em; }
.tagline { font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.35; margin: 0 0 1em; }
.tagline span { color: var(--text); display: block; }
.tagline strong { color: var(--green-hi); font-weight: 900; display: block; }
.tagline.small { font-size: 1rem; margin: 1em 0 0; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 600px; }
.lead p:last-child { margin-bottom: 0; }
.lead strong { color: var(--text); }
.keywords { list-style: none; padding: 0; margin: 2em 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.keywords li { display: inline-flex; align-items: center; gap: 8px; }
.keywords li::before { content: ""; width: 7px; height: 7px; border: 2px solid var(--green); border-radius: 50%; }

.hero-brand { display: grid; justify-items: center; text-align: center; padding: 24px; }
.hero-brand img { width: min(340px, 80%); filter: drop-shadow(0 10px 40px rgba(79, 176, 67, .25)); animation: float 7s ease-in-out infinite; }
.hb-name { color: #fff; font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; margin-top: 10px; letter-spacing: .01em; }
.hb-sys { display: flex; align-items: center; gap: 16px; color: var(--green-hi); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; width: 100%; justify-content: center; }
.hb-sys i { flex: 1; max-width: 110px; height: 3px; background: var(--green-hi); border-radius: 2px; }
.hb-sub { color: #fff; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; margin-top: 14px; }
.hb-sub2 { color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-brand { order: -1; padding: 0; }
  .hero-brand img { width: min(200px, 55%); }
  .hb-sub, .hb-sub2 { display: none; }
  .traces-r { opacity: .5; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-intro { font-size: 1.08rem; }
.sec-intro p:last-child { margin-bottom: 0; }
.h2-sub { margin-top: clamp(56px, 8vw, 88px); margin-bottom: 28px; }

/* Offres */
.offres { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.offre { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.offre:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(60, 207, 78, .35); }
.offre-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(79, 176, 67, .1); border: 1px solid var(--line-2); color: var(--green-hi); margin-bottom: 18px; }
.offre-ico .ico { width: 24px; height: 24px; }
.offre p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .95rem; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--green-hi); margin-top: .25em; width: 1em; height: 1em; }

/* Réalisations */
.reals { display: grid; gap: clamp(48px, 7vw, 88px); }
.real { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1.1fr .9fr; align-items: center; }
.real-rev .real-shot { order: 2; }
.real-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02); }
.browser { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #111813; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a2c; }
.dots i:first-child { background: #3ccf4e; }
.bar { flex: 1; background: #0a0f0b; border-radius: 6px; padding: 3px 10px; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.real-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; }
.shot-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--trace); }
.shot-empty .ico { width: 64px; height: 64px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-hi); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.real h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; }
.techs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.techs span { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; color: var(--text-2); background: #0a0f0b; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
@media (max-width: 860px) {
  .real { grid-template-columns: 1fr; }
  .real-rev .real-shot { order: 0; }
}

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--green-deep), var(--green), var(--green-deep)); z-index: 0; }
.steps li { position: relative; z-index: 1; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green-hi); color: var(--green-hi); font-weight: 900; font-size: 1.1rem; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg); }
.steps p { font-size: .97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--green), var(--green-deep)); }
  .steps li { padding-left: 80px; min-height: 80px; }
  .step-n { position: absolute; left: 0; top: 0; }
}
.atouts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.atout { border-left: 2px solid var(--green); padding: 4px 0 4px 20px; }
.atout h3 { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.atout h3 .ico { color: var(--green-hi); }
.atout p { font-size: .97rem; margin: 0; }

/* Avis */
.g-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-2); }
.g-score strong { color: var(--text); }
.stars { display: inline-flex; gap: 2px; color: #f5c518; }
.stars .ico { width: 18px; height: 18px; }
.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--text-2); }
.review figcaption { color: var(--muted); font-size: .9rem; }
.review figcaption strong { color: var(--text); }

/* Blog */
.blog-band { background: radial-gradient(ellipse at 80% 50%, rgba(79, 176, 67, .1), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); }
.blog-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr 1fr; align-items: center; }
.blog-grid .btn { margin-top: 1.2em; }
.term { background: #040604; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #0d140e; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a2c; }
.term-bar i:first-child { background: #3ccf4e; }
.term-bar span { margin-left: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.term pre, .term-404 { margin: 0; padding: 18px 20px; font: .9rem/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #b9d8b5; white-space: pre-wrap; overflow-x: auto; }
.term .p, .term-404 .p { color: var(--green-hi); }
.term .d { color: #59b7ff; }
.cur { animation: blink 1.1s steps(1) infinite; color: var(--green-hi); }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: .9fr 1.1fr; align-items: start; }
.card-contact { position: relative; }
.coords { margin: 1.8em 0 0; display: grid; gap: 2px; }
.coords dt { color: var(--green-hi); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; }
.coords dd { margin: 0; font-size: 1.25rem; color: var(--text); }
.coords dd.big { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; }
.coords a { color: var(--text); text-decoration: none; }
.coords a:hover { color: var(--green-hi); }
.rule { width: 140px; height: 3px; border: 0; background: var(--green-hi); border-radius: 2px; margin: 32px 0 18px; }
.mini-list { list-style: none; padding: 0; margin: 0; color: var(--muted); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; line-height: 1.9; }

.form { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(20px, 3.5vw, 36px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.f { margin-bottom: 16px; }
.f label { display: block; font-weight: 700; color: var(--text); font-size: .92rem; margin-bottom: 6px; }
.f input, .f select, .f textarea { width: 100%; background: #070a08; border: 1.5px solid #213524; color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.f textarea { resize: vertical; min-height: 140px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--green-hi); box-shadow: 0 0 0 4px rgba(60, 207, 78, .15); }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green-hi) 50%), linear-gradient(135deg, var(--green-hi) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f input::placeholder, .f textarea::placeholder { color: #5d6a5c; }
.hp-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { font-size: .82rem; color: var(--muted); margin: 4px 0 18px; }
.rgpd p { margin: 0; }
.form-err { background: rgba(220, 60, 60, .1); border: 1px solid rgba(220, 60, 60, .45); color: #ffb9b9; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.form-err p { margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pages simples (légales, merci, 404) ---------- */
.page-head { position: relative; padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 90% 0%, rgba(79, 176, 67, .1), transparent 55%); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-body { padding-top: clamp(32px, 5vw, 56px); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--text); }
.page-404 { border: 0; min-height: 60vh; }
.term-404 { background: #040604; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 28px !important; }

/* ---------- Pied de page ---------- */
.site-foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #040605; padding: 56px 0 0; font-size: .95rem; }
.foot-grid { position: relative; z-index: 1; display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-brand p { margin: 16px 0 0; max-width: 360px; }
.foot-title { color: var(--green-hi); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-list a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.foot-list a:hover { color: var(--green-hi); }
.foot-list .ico { color: var(--green); }
.foot-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 44px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-bottom p { margin: 0; }
.foot-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bottom a, .foot-bottom .linklike { color: var(--muted); }
.foot-bottom a:hover, .foot-bottom .linklike:hover { color: var(--green-hi); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } .traces-l { display: none; } }

/* ---------- Bandeau cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; background: #0d130f; border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .7); font-size: .92rem; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Bouton « haut de page » : anneau de progression (même style que MRC Gestion) ---------- */
.hp { position: fixed; right: 18px; bottom: 22px; z-index: 70; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; margin: 0; cursor: pointer; display: grid; place-items: center; background: var(--card); color: var(--green-hi); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .25s, transform .25s; }
.hp.visible { opacity: .7; pointer-events: auto; transform: none; }
.hp.visible:hover, .hp.visible:focus-visible { opacity: 1; outline: none; }
.hp .hp-fleche { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hp .hp-anneau { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hp .fond { fill: none; stroke: var(--line-2); stroke-width: 3.5; }
.hp .jauge { fill: none; stroke: var(--green-hi); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--hp-reste, 100); transition: stroke-dashoffset .15s; }
.hp:hover .hp-fleche, .hp:focus-visible .hp-fleche { animation: hp-monte .5s ease-in-out infinite alternate; }
.hp:hover .hp-anneau, .hp:focus-visible .hp-anneau { animation: hp-tour 1.4s linear infinite; }
@keyframes hp-monte { from { transform: translateY(2px); } to { transform: translateY(-3px); } }
@keyframes hp-tour { to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .hp * { animation: none !important; } }

/* ===== Capture cliquable + indice « Agrandir » ===== */
.shot-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; position: relative; font: inherit; color: inherit; }
.shot-zoom img { display: block; }
.shot-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(8, 12, 9, .78); color: var(--text); border: 1px solid var(--line-2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, background .2s;
  pointer-events: none;
}
.shot-hint svg { display: block; }
.shot-zoom:hover .shot-hint, .shot-zoom:focus-visible .shot-hint { opacity: 1; transform: translateY(0); }
.shot-zoom:focus-visible { outline: none; }
.shot-zoom:focus-visible .shot-hint { background: var(--green-hi); color: #031007; border-color: var(--green-hi); }
@media (hover: none) { .shot-hint { opacity: 1; transform: none; } }

/* ===== Visionneuse plein écran des captures ===== */
html.lbx-lock { overflow: hidden; }
.lbx {
  position: fixed; inset: 0; z-index: 2000; display: none;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 4px;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(3, 6, 4, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lbx.on { display: grid; animation: lbx-in .18s ease-out; }
@keyframes lbx-in { from { opacity: 0; } to { opacity: 1; } }
.lbx-stage { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lbx-stage img {
  max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--card);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9); animation: lbx-pop .2s ease-out;
}
@keyframes lbx-pop { from { transform: scale(.97); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.lbx-cap { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--text-2); text-align: center; }
.lbx-x {
  position: absolute; top: clamp(10px, 2.5vw, 22px); right: clamp(10px, 2.5vw, 22px); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font-size: 1.7rem; line-height: 1; background: rgba(16, 24, 19, .9); color: var(--text);
  border: 1px solid var(--line-2); transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.lbx-x:hover { background: var(--green-hi); color: #031007; border-color: var(--green-hi); transform: rotate(90deg); }
.lbx-nav {
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; flex: none; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; background: rgba(16, 24, 19, .72); color: var(--text);
  border: 1px solid var(--line-2); transition: background .18s, color .18s, border-color .18s;
}
.lbx-prev { grid-column: 1; } .lbx-next { grid-column: 3; }
.lbx-nav:hover { background: var(--green-hi); color: #031007; border-color: var(--green-hi); }
.lbx-nav[hidden] { display: none; }
.lbx-x:focus-visible, .lbx-nav:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(60, 207, 78, .35); }
@media (max-width: 640px) {
  .lbx { padding: 10px; column-gap: 0; }
  .lbx-nav { position: absolute; bottom: 14px; z-index: 2; width: 44px; height: 44px; }
  .lbx-prev { left: 14px; } .lbx-next { right: 14px; }
  .lbx-stage { grid-column: 1 / -1; }
  .lbx-stage img { max-height: calc(100vh - 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .lbx.on, .lbx-stage img { animation: none; }
  .lbx-x:hover { transform: none; }
}
