/* Vitrine prolink.org : maquette « Au centime » aux couleurs de l'identité 2005
   (parme, orange, cases prix jaune pâle). Un seul thème clair, choisi. */

@font-face { font-family: 'Familjen Grotesk'; src: url('../fonts/familjen-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    --parme: #5c5cc4;
    --parme-dark: #3f3fb0;
    --orange: #fc780b;
    --orange-text: #b4500a;
    --orange-tld: #d9620a;
    --ink: #1f1f3a;
    --text: #45455a;
    --muted: #5c5c70;
    --title-blue: #2c4f7a;
    --page: #f7f7fb;
    --surface: #ffffff;
    --soft: #eeeef9;
    --line: #c9c9ec;
    --line-soft: #dcdcf0;
    --filet: #7d7dcc;
    --price: #fff1b9;
    --price-line: #ecd98a;
    --price-text: #6b5a1e;
    --night: #1f1f3a;
    --night-deep: #15152a;
    --night-line: #3a3a66;
    --footer: #e7e9ea;

    --f-display: 'Familjen Grotesk', 'Arial Narrow', Arial, sans-serif;
    --f-body: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.vitrine {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 16px/1.55 var(--f-body);
}
a { color: var(--parme-dark); }
a:hover { color: #2a2a80; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.center { text-align: center; }

.band { height: 6px; background: var(--parme); }

/* En-tête */
.header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 52px; }
@media (max-width: 600px) { .brand-logo { height: 44px; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 0.9375rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .nav-client { color: var(--orange-text); font-weight: 600; }

.btn {
    display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
    font: 600 1rem/1.2 var(--f-body); border-radius: 999px; padding: 12px 20px; min-height: 44px;
}
.nav .btn-brand, .btn-brand { background: var(--parme); color: #ffffff; }
.nav .btn-brand:hover, .btn-brand:hover { background: var(--parme-dark); color: #ffffff; text-decoration: none; }
.btn-order { display: block; width: 100%; margin-top: 16px; background: var(--orange); color: #1f1408; font-size: 1.0625rem; padding: 14px; }
.btn-order:hover { background: #e8690a; }

/* Accroche et configurateur */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 64px; }
.hero-text { flex: 999 1 500px; min-width: 0; }
.hero h1 {
    margin: 0 0 22px; font: 700 clamp(2.5rem, 6vw, 4rem)/1 var(--f-display);
    letter-spacing: -2px; text-wrap: balance;
}
.lead { margin: 0 0 28px; font-size: 1.1875rem; max-width: 32em; color: var(--text); }
.hero .mono { margin: 0; font-size: 0.875rem; }

.config {
    flex: 1 1 360px; max-width: 440px; min-width: 0;
    background: var(--surface); border: 1px solid var(--filet); border-radius: 14px; padding: 24px;
    box-shadow: 0 18px 40px -24px rgba(31, 31, 58, 0.4);
    display: flex; flex-direction: column; gap: 12px;
}
.config h2 { margin: 0; font: 700 1.375rem var(--f-display); }
.config > p { margin: 0; }
.config-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.config-row label { display: flex; flex-direction: column; min-width: 0; }
.config-label { font-weight: 600; }
.config-unit { font-size: 0.75rem; color: var(--muted); }
.config-fixed { border-bottom: 0; padding-bottom: 0; color: var(--text); font-size: 0.9375rem; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--soft); color: var(--ink); font-size: 1.25rem; cursor: pointer;
}
.stepper button:hover { border-color: var(--filet); }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper input {
    width: 64px; text-align: center; border: 0; background: transparent; color: var(--ink);
    font: 600 1.0625rem var(--f-mono); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total {
    margin-top: 8px; padding: 16px; border-radius: 10px; background: var(--price); border: 1px solid var(--price-line);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
    font-variant-numeric: tabular-nums;
}
.total-hour { font-size: 1.875rem; font-weight: 600; color: var(--ink); }
.total-hour small { font-size: 0.9375rem; font-weight: 400; }
.total-month { font-size: 0.9375rem; color: var(--price-text); }
.total-stopped { margin: -4px 0 0; text-align: right; }

/* Sections */
.h2 { margin: 0 0 24px; font: 700 clamp(1.75rem, 3.5vw, 2.25rem)/1.15 var(--f-display); letter-spacing: -1px; text-wrap: balance; }
.panel { background: var(--surface); border-block: 1px solid var(--line); }
.panel > .wrap { padding-block: 64px; }
.panel-soft { background: var(--soft); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
    padding-block: 20px; border-top: 1px solid var(--line-soft);
}
.ledger-name { flex: 0 0 220px; font: 600 1.375rem var(--f-display); color: var(--title-blue); }
.ledger-text { flex: 1 1 320px; min-width: 0; color: var(--text); }
.price {
    flex: 0 0 auto; font-weight: 600; color: var(--ink); background: var(--price);
    padding: 2px 10px; border-radius: 6px; font-variant-numeric: tabular-nums;
}

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-block: 64px; }
.split-text { flex: 1 1 340px; min-width: 0; }
.split-text .h2 { margin-bottom: 12px; }
.split-text p { margin: 0; }
.apps {
    flex: 2 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.apps li {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
    display: flex; flex-direction: column;
}
.apps b { font: 700 1.1875rem var(--f-display); color: var(--title-blue); }
.apps span { font-size: 0.875rem; color: var(--muted); }

.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
}
.steps li { min-width: 0; border-top: 3px solid var(--parme); padding-top: 16px; }
.step-n { font-size: 0.875rem; font-weight: 600; color: var(--orange-text); }
.steps h3 { margin: 4px 0 8px; font: 700 1.375rem var(--f-display); }
.steps p { margin: 0; color: var(--text); }

.dark { background: var(--night); color: #e6e6f5; }
.dark .split { align-items: center; }
.dark .h2 { color: #ffffff; }
.dark p { color: #c9c9e6; }
.zone {
    flex: 1 1 440px; min-width: 0; margin: 0; overflow-x: auto;
    background: var(--night-deep); border: 1px solid var(--night-line); border-radius: 12px;
    padding: 20px; font-size: 0.875rem; line-height: 1.7; color: #dcdcf0;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-block: 64px; }
.facts > div { min-width: 0; }
.facts h3 { margin: 0 0 8px; font: 700 1.25rem var(--f-display); color: var(--title-blue); }
.facts p { margin: 0; color: var(--text); }

.footer { background: var(--footer); border-top: 1px solid var(--line); color: #4f5560; font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: inherit; }

/* Pages légales */
.legal { max-width: 760px; padding-block: 48px 72px; line-height: 1.65; }
.legal h1 { font: 700 2rem var(--f-display); color: var(--title-blue); margin: 0 0 6px; }
.legal .legal-meta { color: var(--muted); font-size: 0.875rem; margin: 0 0 32px; }
.legal h2 { font: 700 1.25rem var(--f-display); color: var(--title-blue); margin: 36px 0 10px; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .todo { background: #fff1b9; padding: 2px 6px; border-radius: 4px; }
.legal .legal-btn { font: inherit; font-weight: 600; color: var(--title-blue); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.legal .legal-btn:hover { border-color: var(--title-blue); }

/* Pages d'applications (SEO) */
.seo-page { padding-block: 32px 72px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: inherit; }
.h1-page { font: 700 clamp(1.75rem, 4vw, 2.5rem) var(--f-display); color: var(--title-blue); margin: 0 0 12px; line-height: 1.15; }
.seo-page .lead { max-width: 760px; }
.seo-page section { margin-top: 40px; }
.seo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--title-blue); font-weight: 700; }
.app-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.app-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: inherit; }
.app-grid a:hover, .app-grid a:focus-visible { border-color: var(--title-blue); }
.app-grid b { font: 700 1.1875rem var(--f-display); color: var(--title-blue); }
.app-grid span { font-size: 0.875rem; color: var(--muted); }
.app-grid .price { margin-top: auto; padding-top: 8px; color: inherit; }

.hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 36em; }
.hero-points li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 10px 14px; }
.hero-points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hero-points strong { display: block; color: var(--title-blue); font-size: 1rem; }
.hero-points span { display: block; color: var(--muted); font-size: 0.875rem; }

.hero-os { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.os-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 600; color: var(--title-blue); }

/* Formulaire de contact */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-weight: 600; }
.contact-field input, .contact-field select, .contact-field textarea {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; color: var(--ink); font: 1rem var(--f-body);
}
.contact-field textarea { resize: vertical; }
.contact-field :focus { outline: 2px solid var(--parme); outline-offset: 0; border-color: var(--parme); }
.contact-error { margin: 0; color: #a8320a; font-size: 0.875rem; }
.contact-note { font-size: 0.875rem; color: var(--muted); margin: 0; }
.contact-form .btn { align-self: flex-start; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-ok { padding: 16px 18px; border-radius: 10px; background: #eef7ee; border: 1px solid #b9dcb9; }

/* Choix de langue, dans le pied de page */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch strong { font-weight: 600; color: var(--ink); }

/* Pages des offres */
.nav a.is-active { color: var(--parme); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.page-head { padding-block: 40px 8px; max-width: 52em; }
.page-head h1 { font: 700 clamp(2rem, 4vw, 2.75rem)/1.1 var(--f-display); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.5px; }
.page-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px 64px; }
.page-cta .btn-order { width: auto; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; max-width: 640px; border-collapse: collapse; margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-from { font-size: 1.25rem; margin-top: 16px; }
.price-from .mono { font-weight: 600; color: var(--ink); }
.ledger-name a { color: inherit; }
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-block: 40px 64px; }
.explore-card { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--parme); border-radius: 10px; padding: 16px 18px; color: var(--ink); }
.explore-card:hover { text-decoration: none; border-color: var(--parme); }
.explore-card b { display: block; color: var(--title-blue); font-size: 1.05rem; margin-bottom: 4px; }
.explore-card span { color: var(--muted); font-size: 0.9rem; }
.page-head + .split, .page-head + .facts { padding-top: 24px; }

/* Page d'aide */
.help-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; line-height: 1.6; max-width: 52em; }
.faq { max-width: 52em; }
.faq h3 { font: 700 1.25rem var(--f-display); color: var(--title-blue); margin: 28px 0 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { margin: 8px 0; line-height: 1.6; }
.faq .zone { margin: 8px 0; white-space: pre-wrap; word-break: break-all; }

/* Téléphone : menu repliable et cartes compactes */
.header-cta, .nav-burger { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
    .header { flex-wrap: nowrap; gap: 10px; padding-block: 14px; }
    .header .brand { margin-right: auto; }
    .header .brand-logo { height: 38px; }
    .header.has-burger .header-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; font-size: 0.9rem; line-height: 1; white-space: nowrap; }
    .header.has-burger .nav-burger {
        display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
        border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.25rem; cursor: pointer;
    }
    .header.has-burger { flex-wrap: wrap; }
    .header.has-burger .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
    .header.has-burger.nav-open .nav { display: flex; }
    .header.has-burger .nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
    .header.has-burger .nav .nav-cta { display: none; }
    .hero { gap: 32px; padding-block: 32px 40px; }
    .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hero-points li { padding: 8px 10px; border-left-width: 3px; }
    .hero-points strong { font-size: 0.875rem; line-height: 1.25; }
    .hero-points span { font-size: 0.75rem; line-height: 1.35; }
    .page-head { padding-block: 24px 4px; }
}

/* Essai gratuit mis en avant : bandeau, badge, boutons et encarts */
.promo-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
    padding: 9px 16px; background: var(--night); color: #fff; text-decoration: none; font-size: 0.9375rem; text-align: center;
}
.promo-strip:hover { color: #fff; background: var(--night-deep); }
.promo-strip strong { color: var(--orange); }
.promo-tag, .promo-badge span {
    background: var(--orange); color: #1f1408; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.5px;
    text-transform: uppercase; border-radius: 999px; padding: 2px 9px;
}
.promo-go { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-promo, .nav .btn-promo { background: var(--orange); color: #1f1408; }
.btn-promo:hover, .nav .btn-promo:hover { background: #e8690a; color: #1f1408; text-decoration: none; }
.promo-badge {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 5px 14px 5px 6px;
    background: #fff; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange-text);
    font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.promo-badge:hover { color: var(--orange-text); background: #fff6ee; text-decoration: none; }
.hero-cta { margin: -8px 0 28px; max-width: 32em; }
.hero-cta .btn-order { display: inline-block; width: auto; margin: 0 0 8px; padding: 14px 26px; }
.hero-cta p { margin: 0; }
.hero-points li.is-promo { background: #fff6ee; border-color: var(--orange); }
.config-trial { display: block; text-align: center; font-weight: 600; color: var(--orange-text); }
.ledger li.ledger-promo { background: #fff6ee; border-left: 4px solid var(--orange); padding-left: 16px; padding-right: 16px; border-radius: 0 10px 10px 0; }
.promo-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 24px; padding: 22px 24px;
    background: #fff; border: 2px solid var(--orange); border-radius: 14px;
}
.promo-price { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.promo-price b { font: 700 3rem/1 var(--f-display); color: var(--orange-text); white-space: nowrap; }
.promo-price small { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.promo-body { flex: 1 1 320px; min-width: 0; }
.promo-body p { margin: 0 0 4px; }
.promo-card .btn-order { width: auto; margin: 0; padding: 14px 26px; }
@media (max-width: 760px) {
    .promo-strip { font-size: 0.8125rem; padding: 8px 12px; gap: 4px 8px; }
    .promo-strip .promo-tag, .promo-badge { display: none; }
    .hero-cta .btn-order { display: block; width: 100%; }
    .promo-card { padding: 18px; }
    .promo-card .btn-order { width: 100%; }
}
.split-text .ticks + p { margin-top: 16px; }

/* Page de l'essai gratuit */
.trial-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trial-chips li {
    background: #fff6ee; border: 1px solid var(--orange); border-radius: 999px; padding: 3px 12px;
    font-weight: 600; font-size: 0.875rem; color: var(--orange-text);
}
.promo-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.promo-action small { color: var(--muted); font-size: 0.8125rem; }
.trial-section { padding-block: 56px; }
.trial-facts { padding-block: 8px 0; }
.trial-after { max-width: 52em; line-height: 1.6; margin: 0; }
@media (max-width: 760px) {
    .promo-action { width: 100%; }
    .trial-section { padding-block: 40px; }
}
