/* Ton prénom en chiffres: the home page and the free result.
   Colours come from the real posters (cream paper, the blue of the calligraphy, the teal of the
   Insee curve, a night-blue ink). Every rule is scoped to .pn or to a page holding .pn-home. */

@font-face {
  font-family: "Lora Prenom";
  src: url("fonts/lora-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora Prenom";
  src: url("fonts/lora-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Prenom";
  src: url("fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Prenom";
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Prenom";
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Caveat Prenom";
  src: url("fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

.pn {
  --pn-paper: #f7f1e6;
  --pn-card: #fffdf8;
  --pn-ink: #1f1c3a;
  --pn-soft: #4f4a66;
  --pn-muted: #6c6682;
  --pn-line: #e6dccb;
  --pn-line-strong: #d9ccb6;
  --pn-blue: #2563eb;
  --pn-blue-deep: #1d4ed8;
  --pn-blue-light: #e3ebff;
  --pn-teal: #2f8f96;
  --pn-teal-light: #dcefef;
  --pn-teal-deep: #1d5e64;
  --pn-curve: #b3dcdc;
  --pn-warm-light: #fdeedd;
  --pn-warm-deep: #7a3f0c;
  --pn-display: "Lora Prenom", Georgia, "Times New Roman", serif;
  --pn-body: "Poppins Prenom", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pn-hand: "Caveat Prenom", "Caveat", cursive;
  font-family: var(--pn-body);
  color: var(--pn-ink);
  font-size: 16px;
  line-height: 1.6;
}
.pn h1, .pn h2, .pn h3, .pn h4 { font-family: var(--pn-display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
.pn p { margin: 0; }
.pn-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.pn-hand { font-family: var(--pn-hand); font-weight: 700; color: var(--pn-blue); line-height: 1; }
.pn-blue { color: var(--pn-blue); font-style: italic; }
.pn-sticker {
  position: absolute; z-index: 2; background: #ffffff; color: var(--pn-ink);
  font-weight: 600; font-size: 0.82rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #e3d8c6; box-shadow: 0 6px 14px rgba(31, 28, 58, 0.12);
}
.pn-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;
  padding: 14px 24px; min-height: 54px; border-radius: 12px; border: 0; cursor: pointer; text-align: center;
  background: var(--pn-blue); color: #ffffff; text-decoration: none; box-sizing: border-box;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}
.pn-btn:hover { background: var(--pn-blue-deep); color: #ffffff; }
.pn-btn[disabled] { opacity: 0.6; cursor: wait; }
.pn-btn.ghost { background: transparent; color: var(--pn-ink); border: 2px solid var(--pn-ink); box-shadow: none; }
.pn-btn.ghost:hover { color: var(--pn-blue-deep); border-color: var(--pn-blue-deep); }
.pn a:focus-visible, .pn button:focus-visible, .pn input:focus-visible, .pn summary:focus-visible { outline: 3px solid var(--pn-teal); outline-offset: 2px; }
.pn-card { background: var(--pn-card); border: 1px solid var(--pn-line); border-radius: 18px; }
.pn-note { font-size: 0.86rem; color: var(--pn-muted); }
.pn-tag { width: fit-content; font-size: 0.82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--pn-teal-light); color: var(--pn-teal-deep); }
.pn-tag.blue { background: var(--pn-blue-light); color: #1e3a8a; }
.pn-tag.warm { background: var(--pn-warm-light); color: var(--pn-warm-deep); }
.pn-price { font-family: var(--pn-display); font-weight: 700; font-size: 2rem; color: var(--pn-blue-deep); white-space: nowrap; }
.pn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pn-list li { display: flex; gap: 10px; }
.pn-list li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 999px; background: var(--pn-teal); }

/* The page around it: wider bar, cream paper, the logo instead of the emoji. */
body:has(.pn-home) { background: #f7f1e6; }
body:has(.pn-home) .topbar { max-width: 1200px; padding: 16px max(18px, env(safe-area-inset-left, 0px)); }
body:has(.pn-home) .brand { font-family: "Lora Prenom", Georgia, serif; font-size: 1.2rem; color: #1f1c3a; }
body:has(.pn-home) .brand-emoji {
  display: inline-block; font-size: 0; width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  vertical-align: middle; background: url("logo.svg") center / cover no-repeat;
}
body:has(.pn-home) .topnav a { color: #4f4a66; font-family: "Poppins Prenom", system-ui, sans-serif; }
body:has(.pn-home) .footer { max-width: 1200px; color: #4f4a66; }

/* Hero: the question, the free tool, the real poster and its song. */
.pn-hero { padding-block: 52px 68px; border-top: 1px solid var(--pn-line); }
.pn-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .pn-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; } }
.pn-hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pn-hero-text > .pn-hand { font-size: 1.7rem; rotate: -2deg; width: fit-content; }
.pn-hero h1 { font-weight: 700; font-size: clamp(2.1rem, 4.9vw, 3.7rem); }
.pn-lead { font-size: 1.1rem; color: var(--pn-soft); max-width: 34em; }

.pn-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px rgba(31, 28, 58, 0.1); }
.pn-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.pn-form h2 { font-size: 1.35rem; font-weight: 700; }
.pn-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pn-fields > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pn-form label, .pn-form legend { margin: 0; font-size: 0.95rem; font-weight: 600; }
.pn-form .hint { font-weight: 400; color: var(--pn-muted); }
.pn-form input[type="text"], .pn-form input[type="number"] {
  width: 100%; box-sizing: border-box; min-width: 0; font: inherit; font-size: 1.1rem; padding: 12px 14px;
  border: 1.5px solid var(--pn-line-strong); border-radius: 12px; background: #ffffff; color: var(--pn-ink);
}
.pn-form input:focus { border-color: var(--pn-blue); }
.pn-form details { font-size: 0.95rem; color: var(--pn-soft); }
.pn-form summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.pn-form fieldset { border: 0; margin: 10px 0 0; padding: 0; }
.pn-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pn-pill { position: relative; margin: 0; }
.pn-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pn-pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--pn-line-strong); background: #ffffff; font-size: 0.95rem; }
.pn-pill input:checked + span { border-color: var(--pn-blue); background: var(--pn-blue-light); color: #1e3a8a; font-weight: 600; }
.pn-pill input:focus-visible + span { outline: 3px solid var(--pn-teal); outline-offset: 2px; }
.pn-form .pn-btn { width: 100%; font-size: 1.1rem; min-height: 56px; }

.pn-show { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pn-poster { position: relative; width: min(100%, 420px); }
.pn-poster img { display: block; width: 100%; height: auto; border-radius: 6px; rotate: 1.5deg; box-shadow: 0 30px 60px rgba(31, 28, 58, 0.25); }
.pn-poster .pn-sticker { top: -12px; left: -10px; rotate: -5deg; }
.pn-player {
  position: relative; z-index: 3; width: min(100%, 400px); margin-top: -44px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px rgba(31, 28, 58, 0.18);
}
.pn-player-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pn-player-head strong { font-family: var(--pn-display); font-size: 1.12rem; }
.pn-player audio { width: 100%; }

/* The free result appears under the hero. */
.pn-result-zone { scroll-margin-top: 16px; }
.pn-result-zone:not([hidden]) { display: block; padding-block: 8px 48px; }

/* Facts band */
.pn-band { background: var(--pn-ink); color: #ffffff; }
.pn-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) { .pn-band ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pn-band li { display: flex; gap: 10px; align-items: center; font-size: 0.96rem; }
.pn-band svg { flex: 0 0 auto; }

/* What you receive: one real example per product. */
.pn-intro { padding-block: 84px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pn-intro .pn-hand { font-size: 1.7rem; }
.pn-intro h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; max-width: 16em; }
.pn-intro p { color: var(--pn-soft); font-size: 1.08rem; max-width: 38em; }
.pn-product { padding-block: 56px; }
.pn-product.alt { background: var(--pn-card); border-block: 1px solid var(--pn-line); }
.pn-product-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .pn-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .pn-product.alt .pn-shot { order: 2; }
}
.pn-shot { position: relative; display: flex; justify-content: center; min-width: 0; }
.pn-shot-frame { position: relative; width: min(100%, 400px); }
.pn-shot-frame img { display: block; width: 100%; height: auto; border-radius: 6px; rotate: -1.5deg; box-shadow: 0 30px 60px rgba(31, 28, 58, 0.22); }
.pn-shot-frame .pn-sticker { top: -12px; right: 16px; rotate: 4deg; }
.pn-shot-frame.wide { width: min(100%, 520px); }
.pn-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pn-copy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.pn-copy h3 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; }
.pn-copy > p { color: var(--pn-soft); font-size: 1.06rem; }
.pn-copy .pn-btn { width: fit-content; }

.pn-portrait { padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px rgba(31, 28, 58, 0.12); }
.pn-portrait .kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--pn-muted); }
.pn-portrait h4 { font-size: 1.75rem; }
.pn-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pn-big b { font-family: var(--pn-display); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--pn-blue); }
.pn-big span { color: var(--pn-soft); }
.pn-portrait .pn-list { font-size: 0.95rem; }
.pn-origin { font-size: 0.95rem; color: var(--pn-soft); border-top: 1px dashed var(--pn-line-strong); padding-top: 12px; }
.pn-words { font-family: var(--pn-display); font-style: italic; color: var(--pn-teal-deep); }

.pn-song { padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px rgba(31, 28, 58, 0.12); position: relative; width: min(100%, 480px); box-sizing: border-box; }
.pn-song .pn-sticker { top: -12px; left: 20px; rotate: -3deg; }
.pn-song strong { font-family: var(--pn-display); font-size: 1.3rem; }
.pn-song audio { width: 100%; }
.pn-lyrics { font-family: var(--pn-display); font-size: 1.05rem; line-height: 1.7; background: var(--pn-paper); border-radius: 12px; padding: 14px 16px; }

.pn-more { padding-block: 8px 88px; }
.pn-more-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .pn-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pn-tile { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pn-tile > img { display: block; width: 150px; height: auto; align-self: center; border-radius: 4px; box-shadow: 0 12px 24px rgba(31, 28, 58, 0.18); }
.pn-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pn-tile-head strong:first-child { font-family: var(--pn-display); font-size: 1.25rem; }
.pn-tile-head strong + strong { color: var(--pn-blue-deep); white-space: nowrap; }
.pn-tile p { color: var(--pn-soft); font-size: 0.95rem; }
.pn-tile .pn-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.pn-tile a { font-weight: 600; color: var(--pn-blue-deep); }
.pn-mini { background: var(--pn-paper); border-radius: 12px; padding: 12px 14px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 6px; }
.pn-mini .row { display: flex; justify-content: space-between; gap: 10px; }
.pn-mini .row span + span { color: var(--pn-muted); text-align: right; }
.pn-mini .row.pick { font-weight: 600; color: var(--pn-teal-deep); }
.pn-mini .row.pick span + span { color: var(--pn-teal-deep); }
.pn-tile.warm { background: linear-gradient(135deg, var(--pn-blue-light), var(--pn-teal-light)); border: 0; }

/* How it works */
.pn-how { background: var(--pn-card); border-block: 1px solid var(--pn-line); padding-block: 80px; }
.pn-how h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 36px; }
.pn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 860px) { .pn-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pn-steps li { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pn-step-n { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--pn-display); font-weight: 700; font-size: 1.5rem; }
.pn-steps li:nth-child(1) .pn-step-n { background: var(--pn-blue-light); color: var(--pn-blue-deep); }
.pn-steps li:nth-child(2) .pn-step-n { background: var(--pn-teal-light); color: var(--pn-teal-deep); }
.pn-steps li:nth-child(3) .pn-step-n { background: var(--pn-warm-light); color: var(--pn-warm-deep); }
.pn-steps h3 { font-size: 1.4rem; font-weight: 700; }
.pn-steps p { color: var(--pn-soft); }
.pn-postit { font-family: var(--pn-hand); font-weight: 700; font-size: 1.4rem; color: #1e3a8a; background: #fff6d6; padding: 4px 12px; border-radius: 4px; rotate: -2deg; box-shadow: 0 6px 14px rgba(31, 28, 58, 0.1); }
.pn-verse { font-family: var(--pn-display); font-style: italic; border-left: 3px solid var(--pn-teal); padding-left: 12px; }

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

/* Free result */
.pn-res { display: grid; gap: 22px; }
@media (min-width: 900px) { .pn-res { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.pn-res-figures, .pn-res-offer { padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 14px 30px rgba(31, 28, 58, 0.08); }
.pn-res-offer { border: 2px solid var(--pn-blue); }
.pn-res-ok { font-size: 0.86rem; font-weight: 600; color: var(--pn-teal-deep); }
.pn-res h2 { font-size: 1.5rem; font-weight: 700; }
.pn-res-big { font-family: var(--pn-display); font-weight: 700; font-size: clamp(2.8rem, 9vw, 3.6rem); line-height: 1; color: var(--pn-blue); }
.pn-res-sub { color: var(--pn-soft); }
.pn-res-jump { margin: 10px 0 0; }
.pn-res-jump a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--pn-blue-light); color: var(--pn-blue-deep); font-weight: 600; text-decoration: none; }
.pn-res-jump a:hover { background: var(--pn-blue); color: #ffffff; }
.pn-res figure { margin: 0; }
.pn-res figure svg { display: block; width: 100%; height: auto; }
.pn-res figcaption { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--pn-muted); }
.pn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pn-fact { background: var(--pn-paper); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.pn-fact b { font-family: var(--pn-display); font-size: 1.2rem; overflow-wrap: anywhere; }
.pn-fact span { font-size: 0.78rem; color: var(--pn-soft); line-height: 1.35; }
.pn-fun { background: var(--pn-paper); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.93rem; }
.pn-alert { background: var(--pn-blue-light); color: #1e3a8a; border-radius: 12px; padding: 12px 14px; font-size: 0.93rem; }
.pn-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--pn-line); border-radius: 12px; overflow: hidden; font-size: 0.86rem; }
.pn-compare > div { padding: 8px 10px; border-top: 1px solid var(--pn-line); }
.pn-compare > div:nth-child(-n + 2) { border-top: 0; font-weight: 600; }
.pn-compare > div:nth-child(1) { background: #f0e8da; }
.pn-compare > div:nth-child(2) { background: var(--pn-blue); color: #ffffff; }
.pn-compare .no { color: var(--pn-muted); }
.pn-res-offer > img { display: block; width: min(100%, 220px); height: auto; align-self: center; border-radius: 4px; box-shadow: 0 12px 26px rgba(31, 28, 58, 0.18); }
.pn-res-offer audio { width: 100%; }
.pn-res-offer .pn-btn { width: 100%; }
.pn-res-facts { display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; color: var(--pn-soft); }
.pn-res-small { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--pn-card); border: 1px solid var(--pn-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--pn-ink); }
.pn-res-small:hover { border-color: var(--pn-blue); color: var(--pn-ink); }
.pn-res-small strong.price { font-family: var(--pn-display); font-size: 1.15rem; color: var(--pn-blue-deep); white-space: nowrap; }

@media (max-width: 520px) {
  .pn { font-size: 15px; }
  .pn-hero { padding-block: 22px 40px; }
  .pn-hero-text { gap: 12px; }
  .pn-hero-text > .pn-hand { font-size: 1.35rem; }
  .pn-hero h1 { font-size: 1.9rem; }
  .pn-lead { font-size: 0.98rem; }
  .pn-form { padding: 14px; border-radius: 16px; gap: 10px; }
  .pn-form h2 { font-size: 1.12rem; }
  .pn-form input[type="text"], .pn-form input[type="number"] { font-size: 1.05rem; padding: 11px 12px; }
  .pn-poster { width: min(100%, 300px); }
  .pn-product { padding-block: 40px; }
  .pn-copy .pn-btn { width: 100%; }
  .pn-intro { padding-block: 56px 12px; }
  .pn-portrait, .pn-song { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pn-poster img, .pn-shot-frame img { rotate: none; } }
