/* ==========================================================================
   Ça vaut le coût ? — refonte « le reçu honnête »
   Chargé après Bootstrap + Bootswatch : redéfinit les tokens et les composants.
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
    color-scheme: light dark;

    --ink: #14211c;
    --ink-soft: #4a5a53;
    --muted: #7c8a83;
    --paper: #f7f5ef;
    --surface: #ffffff;
    --surface-2: #f1efe6;
    --line: #e4e0d3;
    --line-strong: #d3cebd;

    --brand: #0f766e;
    --brand-ink: #0b4f49;
    --brand-bright: #17b3a3;

    --go: #047857;
    --go-bg: #e9f8f0;
    --go-line: #a7e3c8;
    --stop: #c62f3b;
    --stop-bg: #fdecec;
    --stop-line: #f2b8bb;
    --warn: #a4620a;
    --warn-bg: #fdf3e3;
    --warn-line: #eecfa0;

    --accent: #e8a33d;

    --nav-bg: #0d1a20;
    --nav-ink: #eef2f0;

    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 27, .05), 0 1px 3px rgba(16, 32, 27, .06);
    --shadow: 0 2px 6px rgba(16, 32, 27, .06), 0 12px 28px rgba(16, 32, 27, .10);
    --shadow-lg: 0 8px 20px rgba(16, 32, 27, .10), 0 30px 60px rgba(16, 32, 27, .14);

    --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    --numeric: "Space Grotesk", "Inter", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e9efec;
        --ink-soft: #b6c3bd;
        --muted: #8b9a93;
        --paper: #0b1417;
        --surface: #121f24;
        --surface-2: #17262c;
        --line: #24343b;
        --line-strong: #33454d;

        --brand: #2dd4bf;
        --brand-ink: #7defdc;
        --brand-bright: #34e0cb;

        --go: #34d399;
        --go-bg: #0d2a23;
        --go-line: #1f5a49;
        --stop: #f77070;
        --stop-bg: #2a1516;
        --stop-line: #5c2b2d;
        --warn: #f2b661;
        --warn-bg: #2a2110;
        --warn-line: #5a4622;

        --accent: #f0b45f;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .4);
        --shadow-lg: 0 10px 24px rgba(0, 0, 0, .4), 0 34px 70px rgba(0, 0, 0, .5);
    }
}

/* ---------- Bridge Bootstrap ------------------------------------------------ */
:root,
[data-bs-theme="light"] {
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-tertiary-bg: var(--surface-2);
    --bs-border-color: var(--line);
    --bs-border-color-translucent: var(--line);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 15, 118, 110;
    --bs-secondary-color: var(--muted);
    --bs-emphasis-color: var(--ink);
    --bs-link-color: var(--brand-ink);
    --bs-link-hover-color: var(--brand);
    --bs-warning-bg-subtle: var(--warn-bg);
    --bs-font-sans-serif: var(--font-body);
}

/* ---------- Base ---------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html { overflow-x: hidden; }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

.site-nav .container,
.site-main .container { min-width: 0; max-width: 100%; }
.site-main__col { min-width: 0; max-width: 100%; }
.lp-hero, .lp-wall, .row { min-width: 0; max-width: 100%; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--ink);
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

hr { border-color: var(--line); opacity: 1; }

.text-body-secondary { color: var(--ink-soft) !important; }

/* Chiffres monétaires : chasse fixe + graisse. */
.num,
.verdict__amount,
.verdict__row dd,
.usage-totals strong {
    font-family: var(--numeric);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ---------- Layout ------------------------------------------------------- */
.site-main {
    padding: 1.25rem 0 2.5rem;
}

.site-main__col {
    max-width: 34rem;
    margin-inline: auto;
}

.site-main__col.is-wide {
    max-width: 62rem;
}

@media (min-width: 768px) {
    .site-main { padding: 2rem 0 3.5rem; }
}

/* ---------- Navbar ----------------------------------------------------------- */
.site-nav {
    background: var(--nav-bg);
    color: var(--nav-ink);
    padding: calc(.5rem + env(safe-area-inset-top, 0px)) 0 .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--nav-ink);
    letter-spacing: -0.02em;
}

.site-nav__mark {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
}
.site-nav__mark svg { width: 1.05rem; height: 1.05rem; }

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-left: auto;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: rgba(238, 242, 240, .82);
    font-family: inherit;
    font-weight: 600;
    font-size: .92rem;
    padding: .4rem .75rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active,
.site-nav__link.show {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}
.site-nav__link.dropdown-toggle::after { margin-left: .1rem; opacity: .7; }

.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-bg: var(--surface-2);
    --bs-dropdown-link-active-bg: var(--brand);
    --bs-dropdown-border-radius: var(--radius-sm);
    padding: .4rem;
    box-shadow: var(--shadow) !important;
}
.dropdown-item { border-radius: 8px; padding: .5rem .7rem; font-weight: 500; }

/* Menu « Calculs » — chaque calcul avec ce qu'il répond */
.site-nav__mega {
    width: 22.5rem;
    max-width: calc(100vw - 1.25rem);
    margin-top: .4rem;
}
.nav-calc-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem .6rem;
    border-radius: 10px;
    color: var(--ink);
}
.nav-calc-item:hover,
.nav-calc-item:focus-visible { background: var(--surface-2); color: var(--ink); }
.nav-calc-item.active { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.nav-calc-item__ic {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
}
.nav-calc-item__ic svg { width: 1.15rem; height: 1.15rem; }
.nav-calc-item__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.nav-calc-item__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.nav-calc-item__title .tag { font-size: .55rem; margin-left: .15rem; }
.nav-calc-item__desc { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.nav-calc-item--all {
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .88rem;
    color: var(--brand-ink);
    padding: .55rem;
}
.nav-calc-item--all:hover { color: var(--brand-ink); }

/* ---------- Tags / badges ------------------------------------------------ */
.tag {
    display: inline-block;
    font: 600 .68em/1 var(--font-body);
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28em .5em;
    border-radius: 999px;
    vertical-align: middle;
}
.tag--test { background: var(--accent); color: #2b1c05; }
.badge.text-bg-warning { background: var(--accent) !important; color: #2b1c05 !important; }
.badge.text-bg-dark { background: var(--ink) !important; color: var(--paper) !important; }

/* ---------- Cards ------------------------------------------------------------ */
.card {
    --bs-card-bg: var(--surface);
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    box-shadow: var(--shadow-sm);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    padding: .85rem 1rem;
}

/* Cartes cliquables (page « Calculs ») — un liseré teal se resserre autour au survol */
a.card {
    position: relative;
    transition: transform .16s ease, box-shadow .16s ease;
}
a.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--brand);
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}
a.card:hover,
a.card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
a.card:hover::before,
a.card:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}
a.card:active { transform: translateY(-1px); }

.card .fs-1 { color: var(--brand); }

.category-stat {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    margin-top: .6rem !important;
    font-family: var(--numeric);
    font-variant-numeric: tabular-nums;
}

/* ---------- Parcours guidé (Flow) --------------------------------------------- */
.flow-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.flow-choice:hover,
.flow-choice:focus-visible {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.flow-choice__body { flex: 1 1 auto; min-width: 0; }
.flow-choice__label { display: block; font-weight: 600; font-family: var(--font-display); }
.flow-choice__hint { display: block; font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.flow-choice__go {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--muted);
    transform: rotate(180deg); /* chevron-left réutilisé en « suivant » */
}
.flow-section {
    font: 700 .68rem/1 var(--font-display);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
}

/* Fil d'étapes (blocs du parcours) */
.flow-steps {
    list-style: none;
    display: flex;
    gap: .3rem;
    margin: 0 0 1rem;
    padding: 0;
}
.flow-steps__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding-top: .45rem;
    border-top: 3px solid var(--line);
    text-align: center;
    font-size: .68rem;
    line-height: 1.2;
    color: var(--muted);
}
.flow-steps__item.is-done    { color: var(--ink-soft); border-color: var(--go-line); }
.flow-steps__item.is-current { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.flow-steps__dot {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font: 700 .68rem/1 var(--font-display);
}
.flow-steps__item.is-done .flow-steps__dot    { background: var(--go-bg); color: var(--go); }
.flow-steps__item.is-current .flow-steps__dot { background: var(--brand); color: #fff; }
@media (max-width: 400px) {
    .flow-steps__label { display: none; }
}

/* ---------- Formulaires ---------------------------------------------------- */
.form-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .3rem;
}
.form-text { color: var(--muted); }

.form-control,
.form-select {
    background-color: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 1rem;
    padding: .7rem .85rem;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control-lg,
.form-select-lg {
    font-size: 1.05rem;
    padding: .8rem .95rem;
    border-radius: var(--radius-sm);
    min-height: 3rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
}
.form-control::placeholder { color: var(--muted); }

.input-group-text {
    background: var(--surface-2);
    border: 1.5px solid var(--line-strong);
    color: var(--muted);
    border-radius: var(--radius-sm);
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 1.5px solid var(--line-strong);
    margin-top: .15em;
}
.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(15, 118, 110, .16); }

/* Profil véhicule repliable */
details.profile-details {
    border-radius: var(--radius);
    overflow: hidden;
}
details.profile-details > summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
}
details.profile-details > summary::-webkit-details-marker { display: none; }
details.profile-details > summary::after {
    content: "＋";
    float: right;
    color: var(--muted);
    font-weight: 400;
}
details.profile-details[open] > summary::after { content: "－"; }

/* Tom Select */
.ts-wrapper .ts-control {
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    min-height: 3rem;
    padding: .55rem 2.25rem .55rem .85rem;
    align-items: center;
    color: var(--ink);
}
.ts-wrapper.focus .ts-control {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
}
.ts-dropdown {
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    color: var(--ink);
}
.ts-dropdown .active { background: var(--brand); color: #fff; }
.ts-wrapper.single .clear-button { display: none; }

/* Autocomplétion d'adresse (Base Adresse Nationale) */
.address-ac-menu {
    position: absolute;
    z-index: 1056;
    max-height: 15rem;
    overflow-y: auto;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.address-ac-menu .list-group-item {
    cursor: pointer;
    padding: .6rem .8rem;
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.address-ac-menu .list-group-item:hover,
.address-ac-menu .list-group-item.active {
    background: var(--surface-2);
    color: var(--ink);
}

/* Bascule aller-retour — à ne pas rater */
.round-trip-toggle { margin: 0; }
.round-trip-toggle .form-check-label { font-weight: 600; }

/* ---------- Boutons ------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 600;
    border-radius: 999px;
    letter-spacing: -0.01em;
}
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-ink);
    --bs-btn-hover-border-color: var(--brand-ink);
    --bs-btn-active-bg: var(--brand-ink);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    box-shadow: 0 6px 16px rgba(15, 118, 110, .28);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-ink);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--surface-2);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: var(--brand-ink);
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink-soft);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--surface-2);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--line-strong);
}
.btn-warning {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: #2b1c05;
    --bs-btn-hover-bg: #d9922f;
    --bs-btn-hover-border-color: #d9922f;
    --bs-btn-hover-color: #2b1c05;
}

/* Barre de validation collée au pouce */
.submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1.25rem -1rem 0;
    padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 85%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.submit-bar.is-floating {
    box-shadow: 0 -10px 30px rgba(16, 32, 27, .12);
}
.submit-bar .btn { width: 100%; }

/* ---------- Verdict = le reçu ------------------------------------------------ */
.verdict {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 1.4rem 1.15rem 1.15rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.verdict::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
}
.verdict--yes::before { background: linear-gradient(90deg, var(--go), var(--brand-bright)); }
.verdict--no::before  { background: linear-gradient(90deg, var(--stop), #e8734a); }
.verdict--even::before,
.verdict--cost::before { background: linear-gradient(90deg, var(--warn), var(--accent)); }

.verdict--yes  { background: var(--go-bg); border-color: var(--go-line); }
.verdict--no   { background: var(--stop-bg); border-color: var(--stop-line); }
.verdict--even,
.verdict--cost { background: var(--warn-bg); border-color: var(--warn-line); }

/* zigzag « ticket » en bas */
.verdict::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 9px;
    background:
        radial-gradient(circle at 6px 9px, transparent 6px, var(--paper) 6.5px) repeat-x;
    background-size: 14px 9px;
}

.verdict__headline {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-bottom: .9rem;
}
.verdict--yes  .verdict__headline { color: var(--go); }
.verdict--no   .verdict__headline { color: var(--stop); }
.verdict--even .verdict__headline,
.verdict--cost .verdict__headline { color: var(--warn); }

.verdict__figure { text-align: center; }
.verdict__amount {
    display: block;
    font-family: var(--numeric);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.6rem, 12vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.verdict--yes  .verdict__amount { color: var(--go); }
.verdict--no   .verdict__amount { color: var(--stop); }
.verdict--even .verdict__amount,
.verdict--cost .verdict__amount { color: var(--warn); }
.verdict__figure .small,
.verdict__figure .text-uppercase {
    color: var(--ink-soft);
    letter-spacing: .06em;
}

/* Comparaison à deux, avec barres proportionnelles + VS */
.verdict__compare {
    max-width: 25rem;
    margin: .25rem auto 0;
}
.verdict__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: .15rem .6rem;
    padding: .5rem 0 .3rem;
    font-size: 1.02rem;
}
.verdict__row dt { font-weight: 500; color: var(--ink); }
.verdict__row dd {
    font-family: var(--numeric);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* piste + remplissage proportionnel (via --bar en %) */
.verdict__row::after {
    content: "";
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(var(--bar-color, var(--muted)), var(--bar-color, var(--muted))) left / var(--bar, 0%) 100% no-repeat,
        var(--surface-2);
}
.verdict__row.is-cheaper { font-weight: 700; }
.verdict__row.is-cheaper dt { color: var(--go); }
.verdict__row.is-cheaper { --bar-color: var(--go); }
.verdict__row:not(.is-cheaper) { --bar-color: var(--muted); }

.verdict__vs {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem 0;
    color: var(--muted);
}
.verdict__vs::before,
.verdict__vs::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--line-strong);
}
.verdict__vs span {
    font: 700 .72rem/1 var(--font-display);
    letter-spacing: .16em;
}

.verdict__cheaper {
    display: inline-block;
    margin-left: .4rem;
    font: 600 .72rem/1 var(--font-body);
    color: var(--go);
    white-space: nowrap;
}

/* Détail = mini reçu */
.verdict details {
    margin-top: .9rem;
    border-top: 1px dashed var(--line-strong);
    padding-top: .7rem;
}
.verdict details > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink-soft);
    list-style: none;
}
.verdict details > summary::-webkit-details-marker { display: none; }
.verdict details > summary::after { content: " ▾"; }
.verdict details[open] > summary::after { content: " ▴"; }

.breakdown {
    font-family: var(--numeric);
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
    color: var(--ink-soft);
}
.breakdown li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .15rem 1rem;
    padding: .22rem 0;
    border-bottom: 1px dotted var(--line);
}
.breakdown li:last-child { border-bottom: 0; }
.breakdown li > span:first-child { color: var(--ink-soft); }
.breakdown li > span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* sous-postes (détail d'une ligne) : décalés, plus discrets, sans filet */
.breakdown__sub {
    margin-left: .1rem;
    padding-left: .8rem !important;
    border-bottom: 0 !important;
    border-left: 2px solid var(--line);
}
.breakdown__sub > span:first-child { color: var(--muted); }
.breakdown__sub > span:last-child { color: var(--ink-soft); font-weight: 500; }

/* repli pour les détails encore imbriqués (travel, phone) */
.breakdown li > ul {
    flex-basis: 100%;
    margin-top: .2rem;
    padding-left: .9rem;
    border-left: 2px solid var(--line);
}
.breakdown li > ul li { border-bottom: 0; padding: .1rem 0; color: var(--ink-soft); }

/* ---------- Landing ------------------------------------------------------- */
.lp-hero {
    position: relative;
    text-align: center;
    padding: 2rem 1.1rem 2.25rem;
    border-radius: 22px;
    background:
        radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.lp-hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: .5rem;
}
.lp-hero .lead {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 34rem;
    margin-inline: auto;
}

.usage-totals {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .9rem;
    margin-top: 1rem !important;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: .82rem;
}
.usage-totals strong { color: var(--ink); }

/* bande « pensé pour » */
.lp-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    color: var(--muted);
}
.lp-strip svg { opacity: .75; }

/* mur d'exemples */
.lp-wall {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
}
.lp-wall > * { min-width: 0; }
@media (min-width: 860px) {
    .lp-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; }
}
.lp-tile {
    align-self: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .14s ease;
}
.lp-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-tile svg { display: block; width: 100%; height: auto; min-width: 0; }

/* encarts « le principe » */
.lp-badge {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 13px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
}
.lp-badge svg { width: 1.4rem; height: 1.4rem; }

.section-eyebrow {
    font: 700 .76rem/1 var(--font-display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.lp-principles {
    display: grid;
    gap: .9rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem 0;
}
@media (min-width: 720px) {
    .lp-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Lexique ----------------------------------------------------------- */
.lex-group-title {
    font: 700 .72rem/1 var(--font-display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.lex-entry { padding: .9rem 0; }
.lex-entry + .lex-entry { border-top: 1px solid var(--line); }
.lex-entry dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.lex-entry dd { margin: .3rem 0 0; color: var(--ink-soft); }

/* ---------- Encarts secondaires ------------------------------------------ */
.support-card {
    max-width: 27rem;
    margin-inline: auto;
    padding: 1.1rem 1.25rem;
    border: 1px dashed var(--warn-line);
    border-radius: var(--radius);
    background: var(--warn-bg);
    text-align: center;
}
.support-card__title { font-family: var(--font-display); font-weight: 700; color: var(--warn); }

.ad-slot { margin: 1.5rem auto; max-width: 336px; text-align: center; }
.ad-slot__label {
    margin: 0 0 .25rem;
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ad-slot__inner { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.ad-slot__placeholder {
    width: 100%;
    padding: 2rem 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .85rem;
}

.cookie-notice {
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 32, 27, .06);
}

.collection-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8rem;
    margin-bottom: .55rem;
    background: var(--surface);
}
.collection-item > .mb-3:last-of-type { margin-bottom: 0 !important; }

/* Pages d'erreur */
.error-calc { display: block; width: 180px; height: auto; margin: 0 auto 1.5rem; }

/* ---------- Footer -------------------------------------------------------- */
footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}
.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .88rem;
}
.footer-links a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-tech a {
    display: inline-flex;
    opacity: .92;
    transition: opacity .14s ease, transform .14s ease;
}
.footer-tech a:hover { opacity: 1; transform: translateY(-1px); }
.footer-tech .fi-symfony   { color: #1a171b; }
.footer-tech .fi-bootstrap { color: #7952b3; }
.footer-tech .fi-claude    { color: #d97757; }

@media (prefers-color-scheme: dark) {
    .footer-tech .fi-symfony   { color: #f1f1f1; }
    .footer-tech .fi-bootstrap { color: #9b7fd4; }
    .footer-tech .fi-claude    { color: #e08a6c; }
}

/* ---------- Divers ------------------------------------------------------------ */
.alert { border-radius: var(--radius); border-width: 1px; }
.alert-info {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    border-color: var(--brand-bright);
    color: var(--ink);
}
.alert-warning {
    background: var(--warn-bg);
    border-color: var(--warn-line);
    color: var(--ink);
}

.icon-inline { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

.offcanvas {
    background: var(--surface);
    color: var(--ink);
}
.offcanvas-end { border-left: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
