/* CVZeno — site vitrine. Mêmes tokens que l'application (src/app/globals.css). */

:root {
  --desk: #e8ebee;
  --surface: #ffffff;
  --ink: #1b1f24;
  --ink-2: #5b636e;
  --line: #d9dde2;
  --input: #cfd4da;
  --primary: #1f4d3a;
  --primary-hover: #183d2e;
  --highlight: #ffe45c;
  --radius: 8px;
  --max: 1200px;
  --sheet-shadow: 0 1px 3px rgba(20, 24, 30, 0.1), 0 18px 44px -14px rgba(20, 24, 30, 0.3);

  /* Polices des modèles de CV (même nommage que next/font dans l'app) */
  --font-cv-source-serif: "Source Serif 4";
  --font-cv-plex-sans: "IBM Plex Sans";
  --font-cv-work-sans: "Work Sans";
  --font-cv-lora: "Lora";
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.highlight {
  background-image: linear-gradient(100deg, transparent 0.2em, var(--highlight) 0.25em, var(--highlight) calc(100% - 0.25em), transparent calc(100% - 0.2em));
  background-size: 100% 0.62em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1 "Geist", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  background: var(--primary); color: #fff; cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--input); }
.btn--outline:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--highlight); color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .highlight { padding: 0 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--desk); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav .current-menu-item > a span, .nav a[aria-current="page"] span { background-image: linear-gradient(var(--highlight), var(--highlight)); background-size: 100% 0.55em; background-position: 0 90%; background-repeat: no-repeat; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .link { color: var(--ink-2); font-size: 15px; text-decoration: none; padding: 8px 10px; }
.header-actions .link:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .site-header__row { gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .link { display: none; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 8px; font-size: 17px; }
  .nav .nav-login { display: block; }
}
@media (min-width: 901px) { .nav .nav-login { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--desk { background: var(--desk); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Feuille A4 à l'échelle ---------- */
.sheet { position: relative; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; box-shadow: var(--sheet-shadow); }
.sheet__inner { position: absolute; top: 0; left: 0; width: 794px; transform-origin: 0 0; transform: scale(var(--s, 0.4)); }

/* ---------- Hero ---------- */
.hero { background: var(--desk); padding: 72px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -0.04em; }
.hero__lead { margin-top: 24px; max-width: 30em; font-size: 19px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.hero__text { padding-bottom: 72px; }

.demo { position: relative; padding: 0 0 0 64px; align-self: end; }
.demo .sheet { width: 100%; max-width: 560px; margin-left: auto; margin-bottom: -120px; }
.demo__panel {
  position: absolute; left: 0; bottom: 96px; z-index: 2; width: min(330px, 62%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(20, 24, 30, 0.35); padding: 20px;
}
.demo__title { font-size: 14px; font-weight: 600; }
.demo__hint { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.demo__field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.demo__field label { font-size: 13px; font-weight: 500; }
.demo__field input {
  height: 40px; border: 1px solid var(--input); border-radius: 6px; padding: 0 12px;
  font: 15px "Geist", system-ui, sans-serif; color: var(--ink); background: #fff;
}
.demo__field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.18); }
.demo__score { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.demo__score strong { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.2ch; letter-spacing: -0.02em; }
.demo__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--desk); overflow: hidden; }
.demo__bar span { display: block; height: 100%; width: var(--w, 40%); background: var(--highlight); border-radius: 99px; transition: width 0.5s ease-out; }
.cv [data-bind].is-updated { background: var(--highlight); transition: background-color 0.9s ease-out; }
.cv [data-bind] { transition: background-color 0.9s ease-out; }

@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__text { padding-bottom: 24px; }
  .demo { padding: 0 0 0 0; }
  .demo .sheet { max-width: 480px; margin: 0 auto -80px; }
  .demo__panel { position: relative; left: auto; bottom: auto; width: 100%; max-width: 480px; margin: 0 auto 24px; }
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { padding: 28px 32px 0 0; counter-increment: step; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; letter-spacing: -0.015em; }
.steps p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li::before { font-size: 40px; margin-bottom: 12px; }
}

/* ---------- Modèles ---------- */
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; }
.template-card .sheet { transition: transform 0.2s ease-out; }
.template-card a.template-card__sheet { display: block; }
.template-card a.template-card__sheet:hover .sheet { transform: translateY(-4px); }
.template-card > h3 { margin-top: 24px; font-size: 21px; }
.template-card > p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.template-card .btn { margin-top: 18px; }
.templates-foot { margin-top: 48px; color: var(--ink-2); }
@media (max-width: 900px) { .templates { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .templates { grid-template-columns: 1fr; } .templates .sheet { max-width: 360px; } }

/* ---------- Différences ---------- */
.why { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.why .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.why-list h3 { font-size: 19px; letter-spacing: -0.015em; }
.why-list p { color: var(--ink-2); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
  .why .section-head { position: static; }
  .why-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.plan--featured { border: 2px solid var(--ink); position: relative; }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--highlight); color: var(--ink); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.plan h3 { font-size: 19px; }
.plan__price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--ink-2); font-size: 15px; }
.plan__desc { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plans-note { margin-top: 28px; color: var(--ink-2); font-size: 15px; max-width: 46em; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease-out; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-2); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Appel final ---------- */
.final { background: var(--primary); color: #fff; padding: 96px 0; }
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.final h2 { font-size: clamp(34px, 4.4vw, 54px); color: #fff; max-width: 14em; }
.final p { margin-top: 16px; color: rgba(255, 255, 255, 0.8); font-size: 18px; }
@media (max-width: 800px) { .final { padding: 72px 0; } .final__grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--desk); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { margin-top: 14px; color: var(--ink-2); max-width: 26em; }
.footer-grid h2 { font-size: 15px; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--desk); padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.035em; max-width: 16em; }
.page-hero p { margin-top: 18px; max-width: 38em; color: var(--ink-2); font-size: 19px; }
.page-hero--compact { padding: 64px 0 48px; }

.prose { max-width: 700px; margin-inline: auto; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 2em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--highlight); color: var(--ink-2); }
.prose a { color: var(--primary); }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: 6px; }
.prose code { font-size: 0.9em; background: var(--desk); padding: 2px 5px; border-radius: 4px; }

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.post-row__meta { color: var(--ink-2); font-size: 14px; padding-top: 6px; }
.post-row h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post-row p { margin-top: 10px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; } }

.article-head { max-width: 760px; margin-inline: auto; }
.article-meta { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.article-meta a { color: var(--ink-2); }
.article-head h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; }
.article-head .lead { margin-top: 18px; font-size: 20px; color: var(--ink-2); }
.article-thumb { max-width: 1000px; margin: 0 auto 56px; }
.article-thumb img { width: 100%; border-radius: 10px; }

.cta-card { max-width: 700px; margin: 64px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; align-items: center; background: var(--desk); border-radius: 12px; padding: 32px; }
.cta-card > div > h2 { font-size: 24px; letter-spacing: -0.02em; }
.cta-card > div > p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.cta-card .btn { margin-top: 18px; }
.cta-card .sheet { transform: rotate(3deg); }
@media (max-width: 600px) { .cta-card { grid-template-columns: 1fr; } .cta-card .sheet { display: none; } }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { padding: 48px 0; color: var(--ink-2); }
.notfound { padding: 120px 0; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; }
.notfound p { margin-top: 16px; color: var(--ink-2); font-size: 19px; }
.notfound .hero__cta { margin-top: 32px; }

/* Blocs Gutenberg courants */
.alignwide { max-width: 1000px; }
.aligncenter { margin-inline: auto; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.wp-block-button__link { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 12px 22px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
