/* JusteCap — habillage repris d'osmoz.media
   Crème + vert forêt + touche d'or · Cormorant Garamond / Jost / DM Mono */
:root {
  --cream: #F7F2E8;
  --parchment: #E8DFC8;
  --forest: #2C4A3E;
  --forest-deep: #22392F;
  --sage: #4A7C6F;
  --gold: #D4A853;
  --ink: #1A1A18;
  --smoke: #6F6757;
  --line: #DDD3BD;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, iframe { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--display); font-weight: 600; font-size: 26px;
  letter-spacing: .03em; line-height: 1; text-decoration: none; color: var(--ink);
}
.logo .c { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--smoke); }
.nav-links a:hover { color: var(--forest); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--forest); background: var(--forest); color: var(--cream);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--forest-deep); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--cream); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.nav-links a.btn { color: var(--cream); }
.nav-links a.btn.ghost { color: var(--forest); }
.nav-links a.btn.ghost:hover { color: var(--cream); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Petits éléments ---------- */
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.2; }
.it { font-style: italic; color: var(--forest); display: block; }
.lead { font-size: 18.5px; color: #3A3830; max-width: 34em; }
.tagline { font-family: var(--display); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--forest); margin: 22px 0 16px; }

section { padding-block: clamp(72px, 10vw, 120px); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.head { max-width: 760px; margin-bottom: 56px; }
.head p { color: var(--smoke); margin: 18px 0 0; max-width: 36em; }

/* ---------- Hero ---------- */
.hero { padding: 0; display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 66px); }
.hero-l { padding: clamp(56px, 8vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero-l > * { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-r {
  background: var(--forest); color: var(--cream);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  position: relative; overflow: hidden;
}
.hero-r::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; border: 1px solid rgba(212, 168, 83, .25);
}
.board { position: relative; background: rgba(247, 242, 232, .06); border: 1px solid rgba(247, 242, 232, .14); border-radius: 14px; padding: 8px 0; max-width: 520px; width: 100%; }
.board-h {
  display: flex; justify-content: space-between; padding: 10px 20px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 242, 232, .55);
  border-bottom: 1px solid rgba(247, 242, 232, .12);
}
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 20px; border-bottom: 1px solid rgba(247, 242, 232, .08); }
.row:last-child { border-bottom: 0; }
.row .who { font-weight: 500; }
.row .what { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px; color: rgba(247, 242, 232, .62); }
.pill { font-family: var(--mono); font-size: 11.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; align-self: start; }
.p-ok { background: rgba(144, 190, 160, .2); color: #B9DEC6; }
.p-run { background: rgba(212, 168, 83, .18); color: var(--gold); }
.p-alert { background: rgba(232, 140, 110, .2); color: #F2B19C; }
.board-note { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(247, 242, 232, .45); }

/* ---------- Constats ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pain { padding: 34px 34px 36px 0; border-bottom: 1px solid var(--line); }
.pain:nth-child(odd) { border-right: 1px solid var(--line); }
.pain:nth-child(even) { padding-left: 34px; }
.pain h3 { margin-bottom: 10px; }
.pain p { margin: 0; color: #4A463C; max-width: 30em; }

/* ---------- Démo ---------- */
.demo { background: var(--parchment); }
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 980px;
  border-radius: 16px; overflow: hidden; background: var(--forest);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 24, .45);
}
.video button {
  all: unset; position: absolute; inset: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--cream); text-align: center; padding: 20px;
  background: radial-gradient(circle at 70% 30%, rgba(212, 168, 83, .16), transparent 55%), var(--forest);
}
.video button:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.play { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; transition: transform .2s; }
.video button:hover .play { transform: scale(1.06); }
.play svg { margin-left: 5px; }
.v-title { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.v-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 242, 232, .6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 14px; color: var(--smoke); margin-top: 14px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { padding: 0 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .num { font-family: var(--display); font-style: italic; font-size: 64px; line-height: 1; color: var(--gold); display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: #4A463C; }

/* ---------- Bandeau vert ---------- */
.band { background: var(--forest); color: var(--cream); }
.band .kicker { color: var(--gold); }
.band h2 .it { color: var(--gold); }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.band-grid h3 { font-size: 23px; margin-bottom: 8px; }
.band-grid p { margin: 0; color: rgba(247, 242, 232, .72); }

/* ---------- Sécurité + pilote ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.checks li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--sage); }
.pilot { background: #FFFBF3; border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.pilot dl { margin: 26px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 22px; }
.pilot dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); padding-top: 4px; }
.pilot dd { margin: 0; }

/* ---------- Qui suis-je ---------- */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 960px; }
.mono-mark {
  width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 46px; color: var(--forest);
}
.about p { margin: 16px 0 0; color: #3A3830; max-width: 38em; }

/* ---------- Contact ---------- */
.contact { background: var(--forest); color: var(--cream); text-align: center; }
.contact h2 { color: var(--cream); }
.contact h2 .it { color: var(--gold); }
.contact .kicker { justify-content: center; }
.contact .kicker::after { content: ""; width: 22px; height: 1px; background: var(--gold); }
.contact p { color: rgba(247, 242, 232, .75); max-width: 34em; margin: 20px auto 0; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.contact .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.contact .btn:hover { background: #E2BB6C; }
.contact .btn.ghost { background: transparent; color: var(--cream); border-color: rgba(247, 242, 232, .45); }
.contact .btn.ghost:hover { border-color: var(--cream); }

/* ---------- Pied de page ---------- */
.foot { background: var(--forest-deep); color: rgba(247, 242, 232, .6); font-size: 14px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.foot .logo { color: var(--cream); font-size: 22px; }
.foot a { color: rgba(247, 242, 232, .8); }

/* ---------- Pages de texte (mentions légales) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.doc h1 { margin-bottom: 36px; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: #3A3830; }
.doc dl { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.doc dt { color: var(--smoke); }
.doc dd { margin: 0; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease-out, transform .7s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .steps, .band-grid { grid-template-columns: 1fr; gap: 40px; }
  .step, .step + .step { padding: 0; border: 0; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .pains { grid-template-columns: 1fr; }
  .pain, .pain:nth-child(even) { padding: 28px 0; border-right: 0; }
  .pain:nth-child(odd) { border-right: 0; }
  .about { grid-template-columns: 1fr; }
  .mono-mark { width: 88px; height: 88px; font-size: 34px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
  .pilot dl { grid-template-columns: 1fr; gap: 4px; }
  .pilot dd { margin-bottom: 10px; }
}
