/* Le jour de ta naissance: the home page, the free result and the shared pages.
   Colours come from the real poster: its cream paper (#f6f1e4), its night-blue ink
   (#0b1230 to #1d2b64), its old gold (#e8c27a) and the lavender of its date line (#b0bade).
   Every home rule is scoped to .nj or to a page holding .nj-home. */

@font-face {
  font-family: "Cormorant Naissance";
  src: url("fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Naissance";
  src: url("fonts/cormorant-italic-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost Naissance";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Dancing Naissance";
  src: url("fonts/dancing-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

.nj {
  --nj-paper: #f6f1e4;
  --nj-card: #fffcf5;
  --nj-ink: #141c3f;
  --nj-night: #0b1230;
  --nj-night-2: #1d2b64;
  --nj-soft: #474d6b;
  --nj-muted: #646a86;
  --nj-line: #e4dac4;
  --nj-line-strong: #d4c6a8;
  --nj-gold: #e8c27a;
  --nj-gold-deep: #7d5a17;
  --nj-gold-light: #f6e8c8;
  --nj-lavender: #b0bade;
  --nj-lavender-light: #e7eaf6;
  --nj-display: "Cormorant Naissance", Georgia, "Times New Roman", serif;
  --nj-body: "Jost Naissance", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nj-hand: "Dancing Naissance", "Dancing Script", cursive;
  font-family: var(--nj-body);
  font-variant-numeric: lining-nums;
  color: var(--nj-ink);
  font-size: 16px;
  line-height: 1.6;
}
.nj h1, .nj h2, .nj h3, .nj h4 { font-variant-numeric: lining-nums; font-family: var(--nj-display); font-weight: 700; text-wrap: balance; margin: 0; line-height: 1.05; letter-spacing: -0.005em; }
.nj p { margin: 0; }
.nj-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.nj-hand { font-family: var(--nj-hand); font-weight: 700; color: var(--nj-gold-deep); line-height: 1.1; }
.nj-sticker {
  position: absolute; z-index: 2; background: var(--nj-card); color: var(--nj-ink);
  font-weight: 500; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--nj-line-strong); box-shadow: 0 6px 14px rgba(11, 18, 48, 0.14);
}
.nj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2; letter-spacing: 0.01em;
  padding: 14px 24px; min-height: 54px; border-radius: 10px; border: 0; cursor: pointer; text-align: center;
  background: linear-gradient(135deg, var(--nj-night-2), var(--nj-night)); color: #ffffff; text-decoration: none;
  box-sizing: border-box; box-shadow: 0 10px 22px rgba(11, 18, 48, 0.25), inset 0 0 0 1px rgba(232, 194, 122, 0.45);
}
.nj-btn:hover { color: var(--nj-gold); }
.nj-btn[disabled] { opacity: 0.6; cursor: wait; }
.nj-btn.ghost { background: transparent; color: var(--nj-ink); box-shadow: inset 0 0 0 2px var(--nj-ink); }
.nj-btn.ghost:hover { color: var(--nj-night-2); background: var(--nj-lavender-light); }
.nj a:focus-visible, .nj button:focus-visible, .nj input:focus-visible, .nj summary:focus-visible { outline: 3px solid var(--nj-gold-deep); outline-offset: 2px; }
.nj-card { background: var(--nj-card); border: 1px solid var(--nj-line); border-radius: 16px; }
.nj-note { font-size: 0.86rem; color: var(--nj-muted); }
.nj-tag { width: fit-content; font-size: 0.82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--nj-gold-light); color: var(--nj-gold-deep); }
.nj-tag.ink { background: var(--nj-lavender-light); color: var(--nj-night-2); }
.nj-price { font-family: var(--nj-display); font-weight: 700; font-size: 2.1rem; color: var(--nj-night-2); white-space: nowrap; }
.nj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.nj-list li { display: flex; gap: 10px; }
.nj-list li::before { content: "✦"; flex: 0 0 auto; color: var(--nj-gold-deep); font-size: 0.8rem; margin-top: 0.25em; }

/* The page around it: cream paper, the logo instead of the emoji (every page of the site). */
body:has(.nj-home), body:has(.nj-res) { background: #f6f1e4; }
body:has(.nj-home) .topbar { max-width: 1180px; padding: 16px max(18px, env(safe-area-inset-left, 0px)); }
.brand:has(> .brand-emoji) { font-family: "Cormorant Naissance", Georgia, serif; font-weight: 700; font-size: 1.35rem; color: #141c3f; }
.brand-emoji {
  display: inline-block; font-size: 0; width: 32px; height: 32px; flex: 0 0 auto;
  vertical-align: middle; background: url("logo.svg") center / cover no-repeat;
}
body:has(.nj-home) .topnav a { color: #474d6b; font-family: "Jost Naissance", system-ui, sans-serif; }
body:has(.nj-home) .footer { max-width: 1180px; color: #474d6b; }
.nj-hint { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #f6e8c8; color: #3d2e0c; font-size: 0.93rem; }
.nj-hint a { color: #141c3f; font-weight: 600; }

/* Hero: the free tool, and the real poster. */
.nj-hero { padding-block: 44px 64px; border-top: 1px solid var(--nj-line); }
.nj-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .nj-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 60px; } }
.nj-hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nj-hero-text > .nj-hand { font-size: 1.5rem; }
.nj-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.nj-hero h1 em { font-style: italic; font-weight: 600; color: var(--nj-night-2); }
.nj-lead { font-size: 1.08rem; color: var(--nj-soft); max-width: 34em; }

.nj-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px rgba(11, 18, 48, 0.1); }
.nj-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.nj-form h2 { font-size: 1.55rem; }
.nj-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.nj-fields > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nj-form label { margin: 0; font-size: 0.95rem; font-weight: 500; }
.nj-form .hint { font-weight: 400; color: var(--nj-muted); }
.nj-form input[type="text"], .nj-form input[type="date"], .nj-form input[type="time"] {
  width: 100%; box-sizing: border-box; min-width: 0; min-height: 50px; font: inherit; font-size: 1.05rem; padding: 11px 13px;
  border: 1.5px solid var(--nj-line-strong); border-radius: 10px; background: #ffffff; color: var(--nj-ink);
  -webkit-appearance: none; appearance: none;
}
.nj-form input:focus { border-color: var(--nj-night-2); }
.nj-form details { font-size: 0.95rem; color: var(--nj-soft); }
.nj-form details[open] { display: flex; flex-direction: column; gap: 10px; }
.nj-form summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.nj-form .nj-btn { width: 100%; font-size: 1.1rem; min-height: 56px; }

.nj-show { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.nj-frame { position: relative; display: block; width: min(100%, 400px); text-decoration: none; }
.nj-frame img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 0 0 10px #fffcf5, 0 0 0 11px #d4c6a8, 0 32px 60px rgba(11, 18, 48, 0.28); }
.nj-frame .nj-sticker { top: -16px; left: -12px; rotate: -4deg; }
.nj-frame.tilt img { rotate: -1.2deg; }
.nj-zoom-label { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 18, 48, 0.85); color: #ffffff; font-size: 0.82rem; padding: 5px 10px; border-radius: 999px; }
.nj-show figcaption { text-align: center; max-width: 26em; }

.nj-result-zone { scroll-margin-top: 16px; }
.nj-result-zone:not([hidden]) { display: block; padding-block: 8px 48px; }

/* Facts band, the night of the poster. */
.nj-band { background: linear-gradient(180deg, #0b1230, #1d2b64); color: #f6f1e4; }
.nj-band ul { list-style: none; margin: 0 auto; padding-block: 22px; display: grid; gap: 14px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .nj-band ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nj-band li { display: flex; gap: 10px; align-items: center; font-size: 0.96rem; }
.nj-band strong { color: #e8c27a; font-weight: 600; }
.nj-band svg { flex: 0 0 auto; }

/* What you receive */
.nj-intro { padding-block: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nj-intro .nj-hand { font-size: 1.5rem; }
.nj-intro h2 { font-size: clamp(2.2rem, 4.2vw, 3.1rem); max-width: 16em; }
.nj-intro p { color: var(--nj-soft); font-size: 1.06rem; max-width: 40em; }
.nj-product { padding-block: 56px; }
.nj-product.alt { background: var(--nj-card); border-block: 1px solid var(--nj-line); }
.nj-product-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .nj-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .nj-product.alt .nj-shot { order: 2; }
}
.nj-shot { position: relative; display: flex; justify-content: center; min-width: 0; padding-top: 12px; }
.nj-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nj-copy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.nj-copy h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.nj-copy > p { color: var(--nj-soft); font-size: 1.05rem; }
.nj-copy .nj-btn { width: fit-content; }

.nj-story { position: relative; width: min(100%, 500px); box-sizing: border-box; padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 50px rgba(11, 18, 48, 0.12); background: var(--nj-paper); border-color: var(--nj-line-strong); }
.nj-story .nj-sticker { top: -14px; right: 18px; rotate: 3deg; }
.nj-kicker { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--nj-gold-deep); }
.nj-story h4 { font-size: 1.9rem; font-style: italic; font-weight: 600; }
.nj-story p:not(.nj-kicker):not(.nj-story-more) { font-family: var(--nj-display); font-size: 1.16rem; line-height: 1.5; }
.nj-story-more { font-size: 0.88rem; color: var(--nj-muted); border-top: 1px dashed var(--nj-line-strong); padding-top: 10px; }

.nj-more { padding-block: 32px 88px; }
.nj-more-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .nj-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nj-tile { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.nj-tile-pics { display: flex; justify-content: center; gap: 12px; }
.nj-tile-pics a { display: block; width: 118px; }
.nj-tile-pics img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 0 0 5px #fffcf5, 0 0 0 6px #d4c6a8, 0 12px 24px rgba(11, 18, 48, 0.2); }
.nj-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.nj-tile-head strong:first-child, .nj-tile-title { font-family: var(--nj-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.nj-tile-head strong + strong { color: var(--nj-night-2); white-space: nowrap; }
.nj-tile p { color: var(--nj-soft); font-size: 0.95rem; }
.nj-tile .nj-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.nj-tile a:not(.teaser-zoom) { font-weight: 600; color: var(--nj-night-2); }
.nj-tile.soft { background: var(--nj-lavender-light); border-color: transparent; }
.nj-mail { background: var(--nj-paper); border-left: 3px solid var(--nj-gold); border-radius: 6px; padding: 12px 14px; font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }
.nj-mail strong { font-weight: 600; }
.nj-mail span { color: var(--nj-soft); }

/* How it works */
.nj-how { background: var(--nj-card); border-block: 1px solid var(--nj-line); padding-block: 80px; }
.nj-how h2 { text-align: center; font-size: clamp(2.2rem, 4vw, 2.9rem); margin-bottom: 36px; }
.nj-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 860px) { .nj-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nj-steps li { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.nj-step-n { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--nj-display); font-weight: 700; font-size: 1.6rem; background: var(--nj-night); color: var(--nj-gold); }
.nj-steps h3 { font-size: 1.6rem; }
.nj-steps p { color: var(--nj-soft); }
.nj-postit { font-family: var(--nj-hand); font-weight: 700; font-size: 1.3rem; color: var(--nj-night-2); background: var(--nj-gold-light); padding: 4px 12px; border-radius: 4px; rotate: -2deg; }
.nj-verse { font-family: var(--nj-display); font-style: italic; font-size: 1.15rem; border-left: 3px solid var(--nj-gold); padding-left: 12px; }

/* Trust, guides, questions */
.nj-trust { padding-block: 64px; }
.nj-trust-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .nj-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.nj-trust h2 { font-size: 2rem; margin-bottom: 10px; }
.nj-trust p { color: var(--nj-soft); }
.nj-guides { padding-block: 0 24px; }
.nj-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nj-guides a { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--nj-card); border: 1px solid var(--nj-line); text-decoration: none; font-size: 0.95rem; color: var(--nj-ink); }
.nj-faq { padding-block: 40px 72px; }
.nj-faq .nj-wrap { max-width: 860px; }
.nj-faq h2 { font-size: clamp(2.2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.nj-faq details { border-top: 1px solid var(--nj-line-strong); padding-block: 18px; }
.nj-faq details:last-child { border-bottom: 1px solid var(--nj-line-strong); }
.nj-faq summary { font-size: 1.1rem; font-weight: 500; cursor: pointer; }
.nj-faq details p { margin-top: 10px; color: var(--nj-soft); }

/* Free result */
.nj-res { display: grid; gap: 22px; }
@media (min-width: 900px) { .nj-res { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.nj-res-day, .nj-res-offer { padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 14px 30px rgba(11, 18, 48, 0.08); }
.nj-res-day { background: linear-gradient(180deg, #0b1230, #1d2b64); color: #f6f1e4; border: 0; }
.nj-res-ok { font-size: 0.9rem; font-weight: 500; color: #e8c27a; }
.nj-res-big { font-family: var(--nj-display); font-weight: 700; font-size: clamp(3rem, 9vw, 4rem); line-height: 1; color: #fffcf5; }
.nj-res-sub { color: #d5daef; }
.nj-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nj-fact { background: rgba(255, 252, 245, 0.07); border: 1px solid rgba(232, 194, 122, 0.28); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.nj-fact b { font-family: var(--nj-display); font-size: 1.3rem; color: #fffcf5; overflow-wrap: anywhere; }
.nj-fact span { font-size: 0.8rem; color: #c7cde6; line-height: 1.35; }
.nj-res-box { background: rgba(255, 252, 245, 0.07); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.93rem; }
.nj-res-box strong { color: #e8c27a; font-weight: 600; }
.nj-res-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.nj-res-day a { color: #fffcf5; }
.nj-res-day .nj-note { color: #b0bade; }
.nj-res-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nj-res-offer { border: 2px solid var(--nj-night-2); }
.nj-res-offer .nj-hand { font-size: 1.35rem; }
.nj-res-offer h2 { font-size: 1.8rem; }
.nj-res-pic { display: block; width: min(100%, 230px); align-self: center; margin: 6px 0; }
.nj-res-pic img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 0 0 6px #fffcf5, 0 0 0 7px #d4c6a8, 0 14px 28px rgba(11, 18, 48, 0.22); }
.nj-compare { width: 100%; border-collapse: collapse; font-size: 0.86rem; border: 1px solid var(--nj-line); border-radius: 10px; overflow: hidden; }
.nj-compare th, .nj-compare td { padding: 8px 9px; border-top: 1px solid var(--nj-line); text-align: left; vertical-align: top; }
.nj-compare thead td, .nj-compare thead th { border-top: 0; }
.nj-compare thead th { font-weight: 600; background: #efe7d4; }
.nj-compare thead th:last-child { background: #1d2b64; color: #ffffff; }
.nj-compare tbody td:first-child { font-weight: 500; }
.nj-compare tbody td:nth-child(2) { color: var(--nj-muted); }
.nj-compare td.full { color: var(--nj-ink); }
.nj-res-offer .nj-btn { width: 100%; }
.nj-res-facts { display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; color: var(--nj-soft); }
.nj-res-small { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--nj-card); border: 1px solid var(--nj-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--nj-ink); }
.nj-res-small:hover { border-color: var(--nj-night-2); color: var(--nj-ink); }
.nj-res-small strong.price { font-family: var(--nj-display); font-size: 1.3rem; color: var(--nj-night-2); white-space: nowrap; }

/* Teasers on the product pages */
.nj-teaser-one { display: flex; justify-content: center; }
.nj-teaser-one .teaser-zoom { width: min(100%, 360px); }
.nj-teaser-story { background: var(--nj-paper); border: 1px solid var(--nj-line-strong); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.nj-teaser-story p:not(.nj-kicker) { font-family: var(--nj-display); font-size: 1.1rem; line-height: 1.5; }
.nj-teaser-mail { background: var(--nj-paper); border-left: 3px solid var(--nj-gold); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.nj-mail-subject { font-weight: 600; }
.nj-mail-link { color: var(--nj-night-2); text-decoration: underline; }

@media (max-width: 520px) {
  .nj { font-size: 15px; }
  .nj-hero { padding-block: 16px 40px; }
  .nj-hero-text { gap: 10px; }
  .nj-hero-text > .nj-hand { font-size: 1.15rem; }
  .nj-hero h1 { font-size: 2rem; }
  .nj-lead { font-size: 0.98rem; }
  .nj-form { padding: 14px; border-radius: 14px; gap: 10px; }
  .nj-form h2 { font-size: 1.3rem; }
  .nj-fields { gap: 10px; }
  .nj-form label { font-size: 0.9rem; }
  .nj-form input[type="text"], .nj-form input[type="date"], .nj-form input[type="time"] { font-size: 1rem; padding: 10px; min-height: 46px; }
  .nj-frame { width: min(86%, 320px); }
  .nj-product { padding-block: 40px; }
  .nj-copy .nj-btn { width: 100%; }
  .nj-intro { padding-block: 56px 12px; }
  .nj-story { padding: 24px 18px 18px; }
  .nj-res-day, .nj-res-offer { padding: 16px; }
  .nj-compare { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .nj-frame.tilt img, .nj-postit { rotate: none; } }
