/* BR PDF Studio : même palette et mêmes polices que l'application (encre chaude, crème, accents terreux) */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap; src: url("/fonts/Lora.ttf") format("truetype"); }

:root {
  --bg: #141413;
  --surface: #1e1e1c;
  --surface-2: #282826;
  --line: #34332f;
  --line-strong: #4b4a44;
  --text: #faf9f5;
  --muted: #b0aea5;
  --ink: #141413;

  --orange: #d97757;   /* couleur de la suite */
  --blue: #6a9bcc;     /* documents */
  --green: #788c5d;    /* images */
  --gold: #c9a25f;     /* PDF vers images */
  --cream: #e8e6dc;    /* compression */

  --head: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "Lora", Georgia, serif;
  --radius: 16px;
  --pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--text); font-weight: 600; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-family: var(--head); z-index: 100; }
.skip:focus { left: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1120px, 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--pad)); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 16px; height: 16px; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px; border: 0;
  background: var(--orange); color: var(--ink);
  font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.link { font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 4px; }
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 20, 19, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 18px; }
.brand img { border-radius: 9px; }
.top__nav { display: flex; gap: 6px; margin-left: auto; }
.top__nav a { font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.top__nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--head); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); }
.accent { color: var(--orange); }
.lead { margin-top: 22px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero__cta--center { justify-content: center; margin-top: 36px; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.meta--center { text-align: center; }
.hero__shot { margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }

/* ---------- Compteur en direct ---------- */
.live { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.live__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.live h2 { font-size: clamp(22px, 3vw, 30px); }
.live__status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-size: 13px; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.live--on .dot { background: #9db37c; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(157, 179, 124, .55); } 70% { box-shadow: 0 0 0 9px rgba(157, 179, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(157, 179, 124, 0); } }

.live__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--line-strong)); border-radius: 14px; padding: 18px 18px 16px; }
.stat--total { --accent: var(--orange); }
.stat--saved { --accent: var(--cream); }
.stat__num { font-family: var(--head); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat--total .stat__num { font-size: clamp(36px, 5vw, 54px); color: var(--orange); }
.stat__label { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.4; }

.live__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.box { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.box h3 { font-size: 17px; margin-bottom: 18px; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tool { display: flex; gap: 14px; align-items: flex-start; border-radius: 12px; transition: background .4s; }
.tool__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--ink); }
.tool__icon .ico { width: 20px; height: 20px; }
.tool__body { flex: 1; min-width: 0; }
.tool__row { display: flex; align-items: baseline; gap: 10px; }
.tool__name { font-family: var(--head); font-weight: 500; font-size: 15px; flex: 1; min-width: 0; }
.tool__pct { font-family: var(--head); font-size: 12.5px; color: var(--muted); }
.tool__num { font-family: var(--head); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.meter { height: 8px; margin-top: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter__fill { display: block; width: var(--w, 0%); height: 100%; background: var(--accent); border-radius: 4px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.tool__sub { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tool__sub b { font-family: var(--head); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.sep { color: var(--line-strong); }

.chart svg { display: block; width: 100%; height: auto; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart text { fill: var(--muted); font-family: var(--head); font-size: 11px; }
.chart .empty { font-family: var(--body); font-size: 13px; }
.chart .c-docs { fill: var(--blue); }
.chart .c-img { fill: var(--green); }
.chart .c-merge { fill: var(--orange); }
.chart .c-pdfimg { fill: var(--gold); }
.chart .c-compress { fill: var(--cream); }
.chart__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.chart__note b { font-family: var(--head); font-weight: 500; color: var(--text); }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }

/* Un chiffre qui bouge en direct s'allume un instant */
.bump { animation: bump 1.4s ease-out; }
@keyframes bump { 0% { background: rgba(250, 249, 245, .12); } 100% { background: transparent; } }
.stat.bump { animation-name: bump-card; }
@keyframes bump-card { 0% { background: #2c2b27; } 100% { background: var(--bg); } }

.live__note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.live__note a { color: var(--text); }

/* Couleurs par outil (mêmes que dans l'application) */
.t-docs { --accent: var(--blue); }
.t-img { --accent: var(--green); }
.t-merge { --accent: var(--orange); }
.t-pdfimg { --accent: var(--gold); }
.t-compress { --accent: var(--cream); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 22em; }
.section__intro { margin-top: 14px; color: var(--muted); max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--accent, var(--line-strong)); background: var(--surface-2); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--accent); color: var(--ink); margin-bottom: 18px; }
.card__icon .ico { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card--plain { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.card--plain:hover { background: transparent; border-color: var(--line-strong); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; }
.ticks .ico { color: #9db37c; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; }
.point { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.point__big { font-family: var(--head); font-weight: 600; font-size: 26px; color: var(--orange); margin-bottom: 8px; }
.point p:last-child { color: var(--muted); font-size: 16px; }

/* ---------- Confidentialité ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel--stay { border-top: 3px solid #9db37c; }
.panel--out { border-top: 3px solid var(--gold); }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 16px; }
.panel ul, .panel ol { margin: 0; padding-left: 1.2em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 16px; }
.panel li { min-width: 0; }
.panel strong { color: var(--text); font-weight: 600; }
.code { display: block; max-width: 100%; margin-top: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; color: var(--cream); overflow-x: auto; white-space: nowrap; }
.code--inline { display: inline; margin: 0; padding: 3px 8px; font-size: 12.5px; white-space: normal; word-break: break-all; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 34px; }
.facts h4 { font-size: 16px; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 15.5px; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--head); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Questions ---------- */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary { cursor: pointer; list-style: none; padding: 20px 4px; font-family: var(--head); font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 4px 22px; color: var(--muted); max-width: 44em; }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 14.5px; }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.brand--foot { font-size: 16px; color: var(--text); }
.foot__credits { font-size: 13px; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .live__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat--total { grid-column: 1 / -1; }
  .live__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__nav { display: none; }
  .top__bar { justify-content: space-between; }
  .btn { width: 100%; }
  .btn--small { width: auto; }
  .hero__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .live__top { gap: 10px; }
  .stat { padding: 14px; }
  .stat__label { font-size: 13.5px; }
  .box { padding: 18px 16px; }
  .tool__icon { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live--on .dot { animation: none; }
  .bump, .stat.bump { animation: none; }
  .meter__fill { transition: none; }
  .btn, .card, summary::after { transition: none; }
}
