/* Page d'accueil uniquement (chargée après app.css).
   Univers : la paperasse administrative. Papier calque, encre, vert sombre, étiquette de classeur. Mêmes couleurs et polices que app.css. */
body.home {
  --papier: #e7ecec;
  --feuille: #fbfcfc;
  --encre: #14202d;
  --vert: #14573f;
    --tampon: #b8321f;
  --muted: #4b5864;
  --line: #c9d2d4;
  --accent: var(--vert);
  --ink: var(--encre);
  --titres: Bahnschrift, "DIN Alternate", "DIN Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --fichiers: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  background: var(--papier);
  color: var(--encre);
}
.home a { color: var(--vert); }
.home a.btn { color: #ffffff; background: var(--vert); border-color: var(--vert); }
.home a.btn.secondary { color: var(--encre); background: transparent; border-color: #8d9ba1; }
.home a.btn:hover { background: #0e4230; border-color: #0e4230; }
.home a.btn.secondary:hover { background: rgba(20, 32, 45, .06); }
.home h1, .home h2, .home h3 { font-family: var(--titres); letter-spacing: 0; }
.home-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.home-bar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 12px; }
.home-bar .name { font-family: var(--titres); font-weight: 700; font-size: 1.25rem; color: var(--encre); text-decoration: none; letter-spacing: .01em; }
.home-bar nav { display: flex; gap: 22px; }
.home-bar nav a { font-weight: 600; text-decoration: none; }
.home-bar nav a[aria-current=page] { color: var(--encre); }
.home-bar nav a:hover { text-decoration: underline; }

/* Hero */
.home-hero { display: grid; gap: 44px; padding: 28px 0 72px; align-items: center; }
@media (min-width: 880px) { .home-hero { grid-template-columns: 1.15fr .85fr; gap: 64px; padding-top: 52px; } }
.home-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; margin: 0 0 22px; font-weight: 700; max-width: 15em; text-wrap: balance; }
.home-hero .lead { font-size: 1.15rem; max-width: 33em; margin: 0 0 28px; color: #26343f; }
.home-hero .row { gap: 10px; }
.home-hero .btn { padding: 14px 24px; border-radius: 4px; }
.home-hero .note { margin: 16px 0 0; color: var(--muted); font-size: .92rem; }

/* La pièce filigranée et son étiquette : l'élément mémorable */
.sheet-figure { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.sheet-stack { position: relative; padding: 0 0 0 0; }
.sheet-stack::before, .sheet-stack::after { content: ""; position: absolute; inset: 0; background: var(--feuille); border: 1px solid var(--line); border-radius: 3px; z-index: 0; }
.sheet-stack::before { transform: rotate(-3.2deg) translate(-8px, 4px); }
.sheet-stack::after { transform: rotate(2.4deg) translate(7px, 2px); }
.sheet { position: relative; z-index: 1; width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 1px 0 #b9c3c7, 0 18px 28px -14px rgba(20, 32, 45, .38); }
.sheet .wm { opacity: 0; animation: wm-in .8s 1.5s ease-out forwards; }
@keyframes wm-in { to { opacity: 1; } }

.tag { position: relative; z-index: 2; display: grid; margin: -18px 0 0 22px; width: max-content; max-width: calc(100% - 22px); background: var(--encre); color: #ffffff; font-family: var(--fichiers); font-size: .88rem; padding: 10px 14px; border-radius: 2px; box-shadow: 0 8px 14px -8px rgba(20, 32, 45, .5); overflow-wrap: anywhere; }
.tag span { grid-area: 1 / 1; }
.tag .avant { text-decoration: line-through; text-decoration-color: var(--tampon); text-decoration-thickness: 2px; animation: avant-out .5s 1.5s ease forwards; }
.tag .apres { opacity: 0; animation: apres-in .5s 1.7s ease forwards; }
@keyframes avant-out { to { opacity: 0; } }
@keyframes apres-in { to { opacity: 1; } }

/* Avant / après : le texte, puis les deux listes côte à côte */
.home-names { padding: 44px 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--line); }
.home-names .gain h2 { font-size: 1.7rem; line-height: 1.1; margin: 0 0 14px; }
.home-names .gain p { margin: 0 0 28px; max-width: 44em; color: #26343f; }
.home-names .lists { display: grid; gap: 22px; }
@media (min-width: 640px) { .home-names .lists { grid-template-columns: 1fr 1fr; gap: 28px; } }
.home-names h3 { margin: 0 0 8px; font-size: 1rem; }
.home-names ul { list-style: none; margin: 0; padding: 0; font-family: var(--fichiers); font-size: .88rem; background: var(--feuille); border: 1px solid var(--line); border-radius: 3px; }
.home-names li { padding: 9px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.home-names li:first-child { border-top: 0; }
.home-names .before li { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--tampon); }
.home-names .after ul { border-left: 4px solid var(--vert); }
.home-names .after h3 { color: var(--vert); }

/* Parcours : une vraie séquence */
.home-steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: etape; }
@media (min-width: 880px) { .home-steps { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.home-steps li { counter-increment: etape; }
.home-steps li::before { content: counter(etape); font-family: var(--titres); font-size: 3.4rem; font-weight: 700; color: var(--vert); display: block; line-height: .9; margin-bottom: 10px; }
.home-steps h3 { font-size: 1.2rem; margin: 0 0 8px; }
.home-steps p { margin: 0; color: #2b3944; max-width: 30em; }

/* Garanties */
.home-proof { margin: 64px 0 0; padding: 0; list-style: none; display: grid; gap: 0 56px; }
@media (min-width: 720px) { .home-proof { grid-template-columns: 1fr 1fr; } }
.home-proof li { padding: 16px 0; border-top: 1px solid var(--line); }
.home-proof strong { display: block; margin-bottom: 2px; }
.home-proof span { color: var(--muted); font-size: .96rem; }

/* Appel final */
.home-cta { margin: 72px 0 0; padding: 40px 36px; background: var(--encre); color: #ffffff; border-radius: 3px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.home-cta h2 { margin: 0; font-size: 1.7rem; color: #ffffff; }
.home .home-cta a.btn { background: #ffffff; color: var(--encre); border-color: #ffffff; padding: 14px 24px; border-radius: 4px; }
.home .home-cta a.btn:hover { background: #dcebe4; border-color: #dcebe4; }
.home-foot { padding: 22px 0 48px; color: var(--muted); font-size: .88rem; }

/* Page des tarifs */
.tarifs-intro { padding: 36px 0 28px; }
.tarifs-intro h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; margin: 0 0 18px; max-width: 16em; text-wrap: balance; }
.tarifs-intro .lead { font-size: 1.12rem; max-width: 40em; margin: 0; color: #26343f; }
.tarifs-table-wrap { padding: 28px 0 8px; border-top: 1px solid var(--encre); }
.tarifs-table-wrap h2 { font-size: 1.35rem; margin: 0 0 14px; }
.tarifs-scroll { overflow-x: auto; }
.tarifs-table { width: 100%; border-collapse: collapse; background: var(--feuille); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tarifs-table th, .tarifs-table td { padding: 12px 16px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.tarifs-table thead th { background: var(--encre); color: #ffffff; font-family: var(--titres); font-weight: 600; font-size: .95rem; border-top: 0; }
.tarifs-table tbody th { text-align: left; font-family: var(--titres); font-size: 1.1rem; }
.tarifs-table thead th:first-child { text-align: left; }
.tarifs-table tbody tr:first-child th, .tarifs-table tbody tr:first-child td { border-top: 0; }
.tarifs-table tr.plancher td, .tarifs-table tr.plancher th { background: #e3efe9; }
.tarifs-table td:nth-child(3) { font-weight: 700; color: var(--vert); }
.tarifs-table-wrap .note { margin: 12px 0 0; color: var(--muted); font-size: .95rem; max-width: 46em; }

/* Sans animation : tout s'affiche dans son état final (nom propre, filigrane en place). */
@media (prefers-reduced-motion: reduce) {
  .sheet .wm { animation: none; opacity: 1; }
  .tag .avant { animation: none; opacity: 0; }
  .tag .apres { animation: none; opacity: 1; }
}

.home-note { margin: 56px auto 0; padding: 20px 0 0; border-top: 1px solid var(--line); max-width: 62ch; text-align: center; }
.home-note h2 { font-size: 1.1rem; margin: 0 0 6px; }
.home-note p { margin: 0; color: var(--muted); font-size: .96rem; }
