/* Page publique d'Opo : l'identité de l'app (maquette C), polices hébergées ici, aucune ressource tierce. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #EEF1EC; --surface: #FFFFFF; --surface-2: #F6F8F4; --ink: #17201B; --muted: #5C6A62; --line: #D9E0DA;
  --accent: #1F6B4F; --accent-ink: #FFFFFF; --accent-soft: #DCEDE4;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --frame: #17201B;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1310; --surface: #171E1A; --surface-2: #1C241F; --ink: #E4EBE6; --muted: #93A198; --line: #2A342E;
    --accent: #5DBE92; --accent-ink: #0E1310; --accent-soft: #1F3A2D; --frame: #2A342E;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 84px); font-weight: 700; }
h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; margin-bottom: 22px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 12px; }

.top, main > section, .foot { width: min(1120px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-p { background: var(--accent); color: var(--accent-ink); }
.btn-p:hover { filter: brightness(1.08); }
.btn-s { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-s:hover { border-color: var(--accent); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

main > section { padding: 56px 0; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 32px !important; }
.kicker { font: 500 14px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.hero h1 + .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.device { margin: 0; }
.device img { border-radius: inherit; }
.phone { border: 10px solid var(--frame); border-radius: 46px; background: var(--frame); max-width: 330px; justify-self: center; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(23, 32, 27, .55); }
.desktop { border: 1px solid var(--line); border-top: 28px solid var(--frame); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(23, 32, 27, .5); }

.why .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 19px; }
.how .steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how .steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 15px var(--mono); margin-bottom: 14px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.shots figure { max-width: 290px; }
figcaption { background: var(--surface); color: var(--ink); text-align: center; font-size: 15px; padding: 10px 8px 12px; }
.aside { margin-top: 30px; font-size: 18px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 16px; max-width: 46em; }

.features .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.features article p { color: var(--muted); font-size: 16px; margin: 0; }

.where { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo figcaption { font-size: 15px; color: var(--muted); text-align: left; padding: 12px 16px 14px; }
.places { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.places li { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.places b { font-family: var(--display); font-size: 19px; }
.places span { color: var(--muted); font-size: 16px; }
.places em { font-style: normal; font: 500 13px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }

.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.checks b { color: var(--ink); }
.fine { font-size: 14px; color: var(--muted); }

.try-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card .btn { margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.form button { margin-top: 14px; align-self: flex-start; }
.piege { position: absolute; left: -9999px; }
.err { color: #B23A3A; font-weight: 600; }
.notice { background: var(--accent-soft); color: var(--ink); padding: 14px 16px; border-radius: 12px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .hero, .why .cols, .try-grid, .where { grid-template-columns: 1fr; }
  .photo { max-width: 420px; }
  .how .steps { grid-template-columns: 1fr; }
  .features .grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  main > section { padding: 40px 0; }
  .top nav a:not(.btn) { display: none; }
  .lead { font-size: 18px; }
  .features .grid, .places, .checks { grid-template-columns: 1fr; }
  .phone { max-width: 280px; }
  .wide-shot { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
