/*
 * JackFact — vitrine publique, direction « Néon du club ».
 *
 * Pages concernées : accueil.html (racine du site), les quatre pages éditoriales
 * (logiciel-gestion-association-musicale, prospection-booking-concerts,
 * devis-factures-association-musicale, contrats-concerts-association) et les
 * pages légales (mentions-legales, confidentialite).
 *
 * Dépend de assets/neon/neon.css (jetons --n-*, polices, mur, boutons).
 * Remplace assets/public-home.css. Le contenu et le balisage SEO des pages
 * ne changent pas : cette feuille habille les classes existantes.
 *
 * Règles de la charte (DESIGN.md) appliquées ici :
 * - halo réservé aux titres et aux chiffres, jamais sur un paragraphe ;
 * - dégradé uniquement sur le bord des cartes ;
 * - textes légaux sur feuille de salle claire ;
 * - aucune donnée d'association dans le bandeau lumineux.
 */

/* ---------- Cadre ---------- */

.vitrine {
    --v-gutter: clamp(16px, 4vw, 56px);
    --v-wide: 1280px;
    --v-pad-block: clamp(56px, 8vw, 112px);
    font-size: 17px;
}

.vitrine img {
    display: block;
    max-width: 100%;
    height: auto;
}

.vitrine main {
    display: block;
}

/* Colonne centrée sans conteneur supplémentaire dans le balisage. */
.vitrine .control-hero,
.vitrine .facts-strip,
.vitrine .benefits,
.vitrine .before-after,
.vitrine .public-paths,
.vitrine .editorial-hero,
.vitrine .content-band,
.vitrine .related-pages,
.vitrine .product-figure {
    padding-inline: max(var(--v-gutter), calc((100% - var(--v-wide)) / 2));
}

@media (prefers-reduced-motion: no-preference) {
    html:has(body.vitrine) {
        scroll-behavior: smooth;
    }
}

/* ---------- En-tête ---------- */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px var(--v-gutter);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-brand img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--n-cyan), 0 0 18px rgba(56, 232, 255, .5);
}

.site-brand span {
    font-family: var(--n-sign);
    font-size: 30px;
    line-height: 1;
    color: #e8fcff;
    text-shadow: var(--n-glow-cyan);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 2px solid var(--n-line-strong);
    border-radius: var(--n-radius-md);
    color: var(--n-text-soft);
    font-weight: 800;
    text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s, box-shadow .2s;
}

.site-nav a:hover {
    border-color: var(--n-text);
    color: #fff;
}

.site-nav .login {
    border-color: var(--n-cyan);
    color: var(--n-cyan);
}

.site-nav .login:hover {
    background: var(--n-cyan);
    color: var(--n-on-neon);
    box-shadow: 0 0 22px rgba(56, 232, 255, .5);
}

/* ---------- Typographie commune ---------- */

.eyebrow {
    margin: 0 0 16px;
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

.display {
    margin: 0;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: clamp(44px, 6.4vw, 96px);
    line-height: .98;
    text-wrap: balance;
}

.display .accent {
    display: inline;
    color: #e8fcff;
    text-shadow: var(--n-glow-cyan);
}

.section-title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.04;
    color: #fff1f7;
    text-shadow: 0 0 4px var(--n-pink), 0 0 16px rgba(255, 79, 163, .55);
    text-wrap: balance;
}

.lead {
    max-width: 58ch;
    margin: 24px 0 0;
    color: var(--n-text-soft);
    font-size: clamp(18px, 1.6vw, 20px);
}

.section-lead {
    max-width: 68ch;
    margin: 20px 0 0;
    color: var(--n-text-soft);
    font-size: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Boutons de la vitrine : forme des .n-btn, flèche indicative. */
.button {
    min-height: 52px;
    padding: 0 22px;
    font-size: 17px;
}

.button::after {
    content: "\2192";
    font-size: 1.15em;
    transition: transform .2s ease-out;
}

.button:hover::after {
    transform: translateX(4px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 18px;
    font-weight: 800;
}

.text-link::after {
    content: "\2192";
}

/* ---------- Accueil : ouverture ---------- */

.control-hero {
    padding-block: clamp(36px, 6vw, 80px) var(--v-pad-block);
}

.control-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.control-copy {
    min-width: 0;
}

/* Exemple de file de production : panneau à bord néon, chiffres lumineux. */
.decision-panel {
    position: relative;
    padding: 2px;
    border-radius: var(--n-radius);
    background-image: var(--n-grad-alt);
}

.decision-panel > * {
    position: relative;
}

.decision-panel::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--n-radius) - 2px);
    background: var(--n-card);
}

.decision-panel > .example-label,
.decision-panel > h2,
.decision-panel > p,
.decision-panel > .decision-list {
    margin-inline: 26px;
}

.example-label {
    display: inline-block;
    margin-top: 26px;
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--n-muted);
}

.decision-panel h2 {
    margin-top: 10px;
    margin-bottom: 0;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: 34px;
    line-height: 1.05;
    color: #e8fcff;
    text-shadow: var(--n-glow-cyan);
}

.decision-panel > p {
    margin-top: 8px;
    margin-bottom: 18px;
    color: var(--n-text-soft);
}

.decision-list {
    margin-top: 0;
    margin-bottom: 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.decision-list li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: var(--n-wall-deep);
    border: 1px solid var(--n-line);
    border-radius: var(--n-radius-md);
}

.decision-list b {
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
    font-variant-numeric: tabular-nums;
}

.decision-list strong {
    display: block;
    color: var(--n-text);
}

.decision-list small {
    display: block;
    color: var(--n-muted);
    font-size: 14px;
}

/* Pastilles de statut : libellé toujours écrit, la couleur ne porte rien seule. */
.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--n-neutral);
    color: var(--n-text);
    font: 800 12px/1.2 var(--n-body);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status--warn {
    background: var(--n-todo);
    color: var(--n-on-neon);
}

/* ---------- Accueil : chiffres clés ---------- */

.facts-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 0;
    padding-block: 34px;
    background: rgba(10, 8, 7, .82);
    border-block: 1px solid var(--n-line);
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 24px;
    border-left: 1px solid var(--n-line);
}

.fact:first-child {
    border-left: 0;
    padding-left: 0;
}

.fact strong {
    font-family: var(--n-led);
    font-weight: 900;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.1;
    letter-spacing: .06em;
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

.fact span {
    color: var(--n-text-soft);
}

/* ---------- Accueil : bénéfices ---------- */

.benefits {
    padding-block: var(--v-pad-block);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
    margin-top: 44px;
}

/* Carte à bord en dégradé, sans halo au repos. */
.benefit {
    border: 2px solid transparent;
    border-radius: var(--n-radius);
    background:
        linear-gradient(var(--n-card), var(--n-card)) padding-box,
        var(--n-grad-entree) border-box;
}

.benefit {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    transition: transform .25s var(--n-ease), box-shadow .25s ease-out;
}

.benefit:nth-child(even) {
    background:
        linear-gradient(var(--n-card), var(--n-card)) padding-box,
        var(--n-grad-alt) border-box;
}

.benefit:hover,
.benefit:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(255, 79, 163, .22);
}

.benefit b {
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

.benefit h3 {
    margin: 22px 0 10px;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.05;
    color: #fff;
}

.benefit p {
    margin: 0;
    color: var(--n-text-soft);
}

.benefit .text-link {
    margin-top: auto;
    padding-top: 18px;
}

/* ---------- Accueil : avant / après ---------- */

.before-after {
    padding-block: var(--v-pad-block);
    background: rgba(10, 8, 7, .6);
    border-block: 1px solid var(--n-line);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 28px;
    margin-top: 40px;
}

.side {
    min-width: 0;
    padding: 30px;
    background: var(--n-card);
    border: 1px dashed var(--n-line-strong);
    border-radius: var(--n-radius);
}

/* Déclaré après .side pour que le bord en dégradé l'emporte. */
.side.side--after {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--n-card), var(--n-card)) padding-box,
        var(--n-grad-alt) border-box;
}

.side h3 {
    margin: 0 0 18px;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    color: var(--n-text);
}

.side--after h3 {
    color: #e8fcff;
    text-shadow: var(--n-glow-cyan);
}

.step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--n-line);
    color: var(--n-text-soft);
}

.step-list b {
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 20px;
    color: var(--n-muted);
}

.side--after .step-list b {
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

/* ---------- Accueil : parcours publics ---------- */

.public-paths {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    padding-block: var(--v-pad-block);
}

.public-path-list {
    border-top: 1px solid var(--n-line);
}

.public-path-list a,
.related-links a {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 6px 24px;
    align-items: start;
    min-height: 44px;
    padding: 20px 0;
    border-bottom: 1px solid var(--n-line);
    color: var(--n-text);
    text-decoration: none;
    transition: color .15s, padding-left .2s var(--n-ease);
}

.public-path-list strong,
.related-links strong {
    font-weight: 800;
    color: var(--n-text);
}

.public-path-list span {
    color: var(--n-text-soft);
}

.public-path-list a:hover strong,
.related-links a:hover strong {
    color: var(--n-cyan);
}

.public-path-list a:hover,
.related-links a:hover {
    padding-left: 8px;
}

/* ---------- Pages éditoriales ---------- */

/*
 * Ouverture des pages éditoriales : mur de briques seul. La capture du produit
 * n'est plus mise en fond (elle gênait la lecture de l'introduction et figure
 * déjà dans la page) ; les modificateurs --dashboard, --prospection, --devis
 * et --contrat restent dans le balisage sans effet visuel.
 */
.editorial-hero {
    padding-block: clamp(48px, 8vw, 112px);
    background: rgba(10, 8, 7, .55);
    border-bottom: 1px solid var(--n-line);
}

.editorial-copy {
    max-width: 920px;
}

.breadcrumb {
    margin: 0 0 24px;
    color: var(--n-muted);
    font-size: 15px;
}

.content-band {
    padding-block: var(--v-pad-block);
}

.content-band--ice {
    background: rgba(10, 8, 7, .6);
    border-block: 1px solid var(--n-line);
}

/* Bande sombre : panneau à points lumineux (texture .n-leds). */
.content-band--dark {
    background-color: var(--n-wall-deep);
    background-image: radial-gradient(rgba(255, 194, 71, .08) 1px, transparent 1.6px);
    background-size: 8px 8px;
    border-block: 1px solid var(--n-line);
}

.content-intro {
    max-width: 920px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    margin-top: 40px;
}

.content-grid article {
    min-width: 0;
    padding: 26px;
    background: var(--n-card);
    border: 1px solid var(--n-line);
    border-top: 3px solid var(--n-cyan);
    border-radius: var(--n-radius-md);
}

.content-grid article:nth-child(4n + 2) { border-top-color: var(--n-pink-soft); }
.content-grid article:nth-child(4n + 3) { border-top-color: var(--n-amber); }
.content-grid article:nth-child(4n + 4) { border-top-color: var(--n-green); }

.content-grid h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--n-text);
}

.content-grid p {
    margin: 0;
    color: var(--n-text-soft);
}

.process-list {
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--n-line);
}

.process-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--n-line);
}

.process-list b {
    font-family: var(--n-led);
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    color: var(--n-amber);
    text-shadow: var(--n-glow-led);
}

.process-list h3 {
    margin: 0 0 6px;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}

.process-list p {
    margin: 0;
    color: var(--n-text-soft);
}

/* Capture produit : plaque claire, comme les logos des associations. */
.product-figure {
    margin: 0;
    padding-block: 0 var(--v-pad-block);
}

.product-figure img {
    width: 100%;
    padding: 10px;
    background: #fff;
    border-radius: var(--n-radius);
    box-shadow: var(--n-shadow), 0 0 0 1px var(--n-line);
}

.product-figure figcaption {
    margin-top: 14px;
    color: var(--n-muted);
    font-size: 15px;
}

.related-pages {
    padding-block: var(--v-pad-block);
}

.related-links {
    margin-top: 32px;
    border-top: 1px solid var(--n-line);
}

.related-links a {
    grid-template-columns: minmax(0, 1fr) auto;
}

.related-links a::after {
    content: "\2192";
    color: var(--n-cyan);
    font-weight: 800;
}

/* ---------- Pages légales : feuille de salle ---------- */

.legal-page {
    width: min(920px, calc(100% - 2 * var(--v-gutter)));
    margin: clamp(24px, 5vw, 56px) auto var(--v-pad-block);
    padding: clamp(24px, 4vw, 48px);
    background: var(--n-sheet);
    color: var(--n-ink);
    border-radius: var(--n-radius-md);
    box-shadow: var(--n-shadow);
}

.legal-page .eyebrow {
    color: var(--n-ink-soft);
    text-shadow: none;
}

.legal-page h1 {
    margin: 0 0 18px;
    font-family: var(--n-sign);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: var(--n-ink);
}

.legal-page h2 {
    margin: 30px 0 8px;
    font-size: 21px;
    font-weight: 800;
    color: var(--n-ink);
}

.legal-page p,
.legal-page li {
    max-width: 72ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--n-ink);
}

.legal-page a {
    color: var(--n-ink);
    font-weight: 800;
}

.legal-page :focus-visible {
    outline-color: var(--n-ink);
}

/* ---------- Pied de page ---------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 22px var(--v-gutter);
    background: rgba(10, 8, 7, .85);
    border-top: 1px solid var(--n-line);
}

.site-footer p {
    margin: 0;
    color: var(--n-muted);
    font-size: 15px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 900px) {
    .control-layout,
    .public-paths {
        grid-template-columns: minmax(0, 1fr);
    }

    .fact {
        padding: 14px 0;
        border-left: 0;
        border-top: 1px solid var(--n-line);
    }

    .fact:first-child {
        border-top: 0;
    }
}

@media (max-width: 620px) {
    .site-brand span {
        font-size: 26px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 140px;
        justify-content: center;
    }

    .actions .button {
        width: 100%;
    }

    .decision-panel > .example-label,
    .decision-panel > h2,
    .decision-panel > p,
    .decision-panel > .decision-list {
        margin-inline: 16px;
    }

    .decision-list li {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .decision-list .status {
        grid-column: 2;
        justify-self: start;
    }

    .benefit,
    .side,
    .content-grid article {
        padding: 22px 18px;
    }

    .process-list li {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
    }

    .public-path-list a {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Accessibilité ---------- */

@media (forced-colors: active) {
    .site-brand span,
    .display .accent,
    .section-title,
    .eyebrow,
    .fact strong,
    .decision-list b,
    .benefit b,
    .process-list b {
        text-shadow: none;
    }

    .benefit,
    .side--after,
    .decision-panel {
        border: 2px solid CanvasText;
    }
}

@media print {
    .vitrine .editorial-hero,
    .vitrine .content-band--dark,
    .vitrine .facts-strip,
    .vitrine .before-after {
        background: #fff;
    }
}
