/* Refonte de l'accueil : accueil guidé, Créer, Explorer. Chargé après app.css. S'appuie sur shared.css (thème sombre, .btn, .hint, :focus-visible). */
.v-home .hero { padding: clamp(24px, 7vw, 64px) 0 8px; max-width: 36rem; }
.v-home .hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.v-home .hero .lead { font-size: 1.08rem; line-height: 1.55; margin: 0 0 22px; opacity: .8; max-width: 30rem; }
.v-home .cta-big { gap: 10px; min-height: 54px; max-width: 24rem; font-size: 17px; }
.v-home .hero .hint { margin-top: 10px; }

.v-home .sec { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.35rem; margin: 40px 0 14px; }

/* Les 3 étapes : c'est une vraie suite, donc numérotée */
.v-home .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.v-home .steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.v-home .steps li::before { content: counter(s); grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; border: 1.5px solid currentColor; opacity: .75; }
.v-home .steps b { font-weight: 600; line-height: 34px; }
.v-home .steps span { opacity: .7; font-size: .95rem; line-height: 1.4; }

/* Inspirations : chaque carte reprend les couleurs de son modèle */
.v-home .insp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-home .insp-c { appearance: none; border: 0; cursor: pointer; text-align: left; color: #fff; font: inherit; min-height: 150px; padding: 16px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--a) 30%, transparent), transparent 62%), linear-gradient(160deg, var(--g), color-mix(in srgb, var(--g) 70%, #000)); }
.v-home .insp-c .sym { font-size: 2rem; line-height: 1; color: var(--a); }
.v-home .insp-c .lb { font-weight: 600; font-size: 1.05rem; }
.v-home .more { margin: 14px 0 0; }

/* Créer / Explorer */
.v-home .h-page { font-family: 'Fraunces', Georgia, serif; font-weight: 500; margin: 8px 0 10px; }
.v-home .step-h { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; margin: 22px 0 10px; }
.v-home .step-h .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; border: 1.5px solid currentColor; opacity: .8; }


/* Fenêtre de fin de publication : choix du téléphone, puis lien (iPhone) ou fichier hors ligne (Android).
   Les couleurs viennent du texte de la fenêtre (currentColor) et de --cta, donc elles suivent le thème. */
dialog#done .d-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 20px; opacity: .7; cursor: pointer; }
dialog#done .d-sec { margin-top: 18px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
dialog#done .d-sec[hidden] { display: none; }
dialog#done .d-q { margin: 0 0 12px; font-weight: 600; }
dialog#done .d-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
dialog#done .d-opt, dialog#done .d-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; font: 600 15px/1.2 -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
dialog#done .d-opt { min-height: 52px; font-size: 16px; }
dialog#done .d-opt[aria-pressed="true"] { background: var(--cta, linear-gradient(135deg, #db3a72, #b01b6c)); border-color: transparent; color: #fff; }
dialog#done .d-note { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
dialog#done .d-note p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .8; }
dialog#done .d-ic { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, #db3a72 12%, transparent); color: #a21d62; }
dialog#done .d-in { width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; font: inherit; font-size: 15px; }
dialog#done .d-row { display: flex; flex-wrap: wrap; gap: 10px; }
dialog#done .d-row .d-btn { flex: 1 1 9.5rem; }
dialog#done .d-row .d-btn.p { flex: 2 1 13rem; }
dialog#done .d-btn.p { background: color-mix(in srgb, #db3a72 12%, transparent); border-color: color-mix(in srgb, #db3a72 30%, transparent); }
dialog#done .d-btn:disabled { opacity: .65; cursor: default; }
dialog#done .d-msg { margin: 12px 0 0; font-size: 14px; line-height: 1.45; opacity: .85; }
dialog#done .d-msg:empty { display: none; }
dialog#done .d-msg.err { color: #c0392b; opacity: 1; }
dialog#done .d-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
dialog#done .d-lnk { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
dialog#done .d-foot .d-btn { flex: 0 0 auto; min-height: 44px; font-weight: 500; }
dialog#done :is(.d-opt, .d-btn, .d-x, .d-lnk):focus-visible { outline: 2px solid #db3a72; outline-offset: 2px; }

/* Mon espace (pages.js) : cartes des pages, boutons et fenêtres Payer / Modifier.
   Tout est limité à .v-pages pour ne rien changer ailleurs. Couleurs = currentColor + --cta, donc le thème est respecté. */
.v-pages h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; margin: 8px 0 16px; }
.v-pages .item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 16px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, currentColor 16%, transparent); }
.v-pages .item h3 { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 1.1rem; font-weight: 600; }
.v-pages .item .hint { flex: 1 1 100%; margin: 0; }
.v-pages .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, currentColor 10%, transparent); }
.v-pages .hint.ok { color: #1e8449; }
.v-pages .hint.err, .v-pages .err { color: #c0392b; }
.v-pages .err:empty { display: none; }

.v-pages .btn, .v-pages .link { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; font: 600 15px/1.2 -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.v-pages .btn { border: 0; background: var(--cta, linear-gradient(135deg, #db3a72, #b01b6c)); color: #fff; }
.v-pages .btn.alt { border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; }
.v-pages .btn.sm { flex: 1 1 11rem; min-height: 44px; padding: 0 14px; font-size: 14px; }
.v-pages .btn.cta-big, .v-pages > .btn { display: flex; width: 100%; max-width: 24rem; margin-top: 8px; }
.v-pages .btn:disabled { opacity: .65; cursor: default; }
.v-pages .link { border: 0; background: none; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.v-pages :is(.btn, .link):focus-visible { outline: 2px solid #db3a72; outline-offset: 2px; }

/* Fenêtres Payer / Modifier */
.v-pages dialog form .btn { width: 100%; margin-top: 8px; }
.v-pages dialog .link { display: flex; margin: 14px auto 0; }
.v-pages dialog .opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; margin: 0 0 10px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); font-weight: 600; cursor: pointer; }
.v-pages dialog .opt:has(input:checked) { border-color: #db3a72; background: color-mix(in srgb, #db3a72 12%, transparent); }

/* Bouton « Supprimer » d'une page (pages.js) */
.v-pages .btn.alt.danger { color: #c0392b; border-color: color-mix(in srgb, #c0392b 35%, transparent); }
