@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --washi: #f6f1e7;
  --washi-2: #efe7d8;
  --paper: #fffdf8;
  --ink: #1f1a17;
  --ink-2: #4a413a;
  --muted: #8a7f74;
  --rule: #e4d9c6;
  --shu: #d0301f;          /* 朱色 : tampon */
  --shu-deep: #a8231a;
  --ai: #233a5e;           /* 藍色 : accent froid */
  --ok: #1d7a3e;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0; color: var(--ink); font-family: var(--gothic); font-size: 15.5px; line-height: 1.9;
  background-color: var(--washi);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .18  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
}
a { color: var(--shu); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
nav.top { position: sticky; top: 0; z-index: 20; background: rgba(246,241,231,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand .seal { width: 28px; height: 28px; border: 2px solid var(--shu); color: var(--shu); border-radius: 6px; display: grid; place-items: center; font-size: 14px; transform: rotate(-6deg); }
nav.top .links { margin-left: auto; display: flex; gap: 22px; font-size: 13.5px; }
nav.top .links a { color: var(--ink-2); text-decoration: none; }
nav.top .links a:hover { color: var(--shu); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn.primary { background: var(--shu); color: #fff; box-shadow: 0 10px 24px -10px rgba(208,48,31,.7); }
.btn.primary:hover { background: var(--shu-deep); transform: translateY(-1px); }
.btn.ghost { color: var(--ink); border: 1px solid #cbbfae; background: var(--paper); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 8px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { /* réglure de registre */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(35,58,94,.09) 39px 40px);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero::after { /* marge rouge du registre */
  content: ""; position: absolute; top: 0; bottom: 0; left: max(28px, calc((100vw - 1120px)/2 + 6px)); width: 2px; background: rgba(208,48,31,.22);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--ai); }
.kicker i { width: 28px; height: 1px; background: var(--ai); display: inline-block; }
h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(30px, 4.3vw, 56px); line-height: 1.22; margin: 16px 0 22px; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--shu); position: relative; }
h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: rgba(208,48,31,.18); z-index: -1; }
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .facts { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero .facts div { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hero .facts b { display: block; font-family: var(--mincho); font-size: 26px; color: var(--ink); font-weight: 800; }

.shot-stack { position: relative; height: 560px; }
.shot-stack .s1 { position: absolute; right: 30px; top: 0; width: 330px; transform: rotate(1.2deg); animation: rise .9s .15s both cubic-bezier(.2,.7,.2,1); }
.shot-stack .s2 { position: absolute; left: -30px; bottom: 10px; width: 520px; transform: rotate(-2deg); animation: rise .9s .35s both cubic-bezier(.2,.7,.2,1); }
.stamp {
  position: absolute; right: 0; bottom: 120px; width: 150px; height: 150px; border-radius: 50%;
  border: 5px double var(--shu); color: var(--shu); display: grid; place-items: center; text-align: center;
  font-family: var(--mincho); font-weight: 800; background: rgba(255,253,248,.35);
  mix-blend-mode: multiply; animation: stamp .55s 1.05s both cubic-bezier(.2,1.6,.4,1);
  filter: url(#rough);
}
.stamp .big { font-size: 34px; letter-spacing: .12em; line-height: 1; }
.stamp .small { font-size: 11px; letter-spacing: .12em; margin-top: 6px; font-family: var(--gothic); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) rotate(0); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-28deg); } 70% { opacity: 1; } 100% { opacity: .92; transform: scale(1) rotate(-12deg); } }
.reveal { animation: rise .8s both cubic-bezier(.2,.7,.2,1); }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }

/* ---------- bandeau alerte ---------- */
.alert-band { background: var(--ink); color: #f5ede0; }
.alert-band .wrap { display: flex; gap: 18px; align-items: center; padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
.alert-band .tag { background: var(--shu); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 4px; letter-spacing: .06em; white-space: nowrap; }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
section.paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 44px; }
.sec-no { font-family: var(--mincho); font-size: 15px; color: var(--shu); font-weight: 800; letter-spacing: .1em; padding-top: 12px; border-top: 2px solid var(--shu); }
h2 { font-family: var(--mincho); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin: 0 0 14px; font-weight: 800; }
.sec-head p { color: var(--ink-2); max-width: 46em; margin: 0; }

/* chronologie */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.timeline .t { padding: 22px 22px 6px 0; border-right: 1px dashed var(--rule); position: relative; }
.timeline .t:last-child { border-right: 0; }
.timeline .t::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--washi); border: 2px solid var(--ai); }
.timeline .t.now::before { background: var(--shu); border-color: var(--shu); box-shadow: 0 0 0 6px rgba(208,48,31,.15); }
.timeline .when { font-family: var(--mono); font-size: 13px; color: var(--ai); font-weight: 600; }
.timeline .t.now .when { color: var(--shu); }
.timeline h4 { font-family: var(--mincho); font-size: 18px; margin: 6px 0 6px; }
.timeline p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.75; }

/* 3 exigences */
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.req .card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 26px 24px 22px; position: relative; }
section.paper .req .card { background: var(--washi); }
.req .kanji { font-family: var(--mincho); font-size: 44px; font-weight: 800; color: var(--ai); line-height: 1; }
.req h3 { font-family: var(--mincho); font-size: 19px; margin: 12px 0 8px; }
.req .law { font-size: 13.5px; color: var(--ink-2); }
.req .how { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 13.5px; }
.req .how b { color: var(--shu); }
.req .how .ok { color: var(--ok); font-weight: 700; }

/* risques */
.risk { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.risk .r { border-left: 4px solid var(--shu); background: #fff6f3; padding: 18px 22px; border-radius: 0 12px 12px 0; }
.risk .r b { font-family: var(--mincho); font-size: 18px; display: block; margin-bottom: 4px; }
.risk .r span { font-size: 13.5px; color: var(--ink-2); }
.relief { margin-top: 18px; background: #eef2f8; border-radius: 12px; padding: 18px 22px; font-size: 14px; color: var(--ink-2); border: 1px solid #d9e1ee; }
.relief b { color: var(--ai); }

/* fonctions + captures */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 84px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev { grid-template-columns: 1.45fr .55fr; gap: 40px; }
.feature.rev .img { margin-left: -60px; }
.feature.rev .txt { order: 2; }
.feature .no { font-family: var(--mono); font-size: 12px; color: var(--shu); letter-spacing: .12em; }
.feature h3 { font-family: var(--mincho); font-size: 27px; line-height: 1.4; margin: 8px 0 14px; }
.feature p { color: var(--ink-2); margin: 0 0 12px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; border-bottom: 1px dashed var(--rule); }
.feature li::before { content: "✓"; position: absolute; left: 2px; color: var(--shu); font-weight: 700; }
.feature .img { position: relative; }
.feature .img img { width: 100%; filter: drop-shadow(0 2px 0 rgba(0,0,0,.02)); }
.feature .img .note { position: absolute; font-family: var(--mincho); font-weight: 700; font-size: 13px; color: var(--shu); background: var(--paper); border: 1.5px solid var(--shu); border-radius: 999px; padding: 4px 12px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.25); transform: rotate(-3deg); white-space: nowrap; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps .st { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; counter-increment: s; }
.steps .st::before { content: counter(s, cjk-ideographic); font-family: var(--mincho); font-weight: 800; font-size: 34px; color: var(--shu); line-height: 1; display: block; margin-bottom: 10px; }
.steps h4 { font-size: 15px; margin: 0 0 6px; }
.steps p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.75; }
code { font-family: var(--mono); font-size: .88em; background: var(--washi-2); padding: 1px 6px; border-radius: 5px; }

/* gratuit */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.free table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--paper); border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); }
.free th, .free td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.free th { width: 34%; background: var(--washi-2); font-weight: 700; }
.free tr:last-child th, .free tr:last-child td { border-bottom: 0; }
.free .no { color: var(--shu-deep); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; gap: 14px; }
.faq summary::before { content: "問"; font-family: var(--mincho); color: var(--shu); font-weight: 800; }
.faq details[open] summary::before { content: "答"; color: var(--ai); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0 30px; color: var(--ink-2); font-size: 14.5px; }

/* formulaire */
.contact { background: var(--ink); color: #f3ecdf; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; position: relative; overflow: hidden; }
.contact::after { content: "卸"; position: absolute; right: -20px; bottom: -70px; font-family: var(--mincho); font-weight: 800; font-size: 300px; color: rgba(255,255,255,.04); line-height: 1; }
.contact h2 { color: #fff; }
.contact p { color: #d4cabb; }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
form.lead label { font-size: 12px; color: #b9ad9c; display: block; margin-bottom: 4px; }
form.lead input, form.lead select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid #4a423b; background: #2b2420; color: #fff; font-size: 14px; font-family: var(--gothic); }
form.lead input:focus, form.lead select:focus { outline: 2px solid var(--shu); border-color: transparent; }
form.lead .full { grid-column: 1 / -1; }
form.lead .chk { display: flex; gap: 10px; font-size: 13px; color: #d4cabb; align-items: flex-start; }
form.lead .chk input { width: auto; margin-top: 4px; }
form.lead button { border: 0; cursor: pointer; font-family: var(--gothic); }
#leadMsg { margin-left: 12px; font-size: 14px; }

footer { padding: 40px 0 60px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.sources { font-size: 12px; color: var(--muted); margin-top: 22px; }

/* documents (privacy) */
.doc { max-width: 780px; margin: 48px auto 80px; padding: 0 28px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 19px; margin-top: 34px; }
.muted { color: var(--muted); }

@media (max-width: 920px) {
  .hero .wrap, .feature, .feature.rev, .free, .contact { grid-template-columns: 1fr; }
  .feature.rev .txt { order: 0; }
  .shot-stack { height: 470px; }
  .shot-stack .s2 { width: 92%; left: 0; }
  .timeline, .steps { grid-template-columns: 1fr 1fr; }
  .req, .risk { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-no { width: 80px; }
  nav.top .links a:not(.btn) { display: none; }
  .contact { padding: 34px 24px; }
  form.lead { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

.nw { white-space: nowrap; }
@media (max-width: 920px) { .nw { white-space: normal; } .feature.rev .img { margin-left: 0; } }
@media (max-width: 920px) {
  .shot-stack { height: 420px; }
  .shot-stack .s1 { right: 0; width: 62%; }
  .shot-stack .s2 { left: 0; width: 88%; bottom: 0; }
  .stamp { width: 110px; height: 110px; bottom: 150px; }
  .stamp .big { font-size: 24px; }
  .alert-band .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .timeline, .steps { grid-template-columns: 1fr; }
  .timeline .t { border-right: 0; border-bottom: 1px dashed var(--rule); padding-left: 22px; }
  .timeline .t::before { top: 26px; left: 0; }
  section { padding: 64px 0; }
  .feature { gap: 28px; margin-bottom: 56px; }
  footer .wrap { grid-template-columns: 1fr; }
}
.hero .wrap > *, .feature > *, .free > *, .contact > * { min-width: 0; }
.kicker { flex-wrap: wrap; }
