/* Novixo Relais : tokens de la charte (docs/charte-et-pages.md, section 2). */
:root {
    --nr-primary: #103E68;
    --nr-primary-dark: #0B2B49;
    --nr-primary-subtle: #E7EEF5;
    --nr-page: #F4F7FA;
    --nr-text: #1A2430;
    --nr-muted: #5B6775;
    --nr-border: #D5DCE3;
    --nr-disabled: #A9B3BE;

    --bs-primary: var(--nr-primary);
    --bs-primary-rgb: 16, 62, 104;
    --bs-primary-bg-subtle: var(--nr-primary-subtle);
    --bs-body-color: var(--nr-text);
    --bs-body-color-rgb: 26, 36, 48;
    --bs-secondary-color: var(--nr-muted);
    --bs-secondary-color-rgb: 91, 103, 117;
    --bs-tertiary-bg: var(--nr-page);
    --bs-border-color: var(--nr-border);
    --bs-success: #1E7B4C;
    --bs-success-rgb: 30, 123, 76;
    --bs-warning: #B25E00;
    --bs-warning-rgb: 178, 94, 0;
    --bs-danger: #B42318;
    --bs-danger-rgb: 180, 35, 24;
    --bs-link-color: var(--nr-primary);
    --bs-link-color-rgb: 16, 62, 104;
    --bs-link-hover-color: var(--nr-primary-dark);
    --bs-link-hover-color-rgb: 11, 43, 73;
    --bs-border-radius: 8px;
    --bs-border-radius-lg: 8px;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.text-body-secondary { color: var(--nr-muted) !important; }
.small { font-size: 14px; }
/* Liens sans soulignement, couleur de la charte. Le soulignement n'apparaît qu'au survol, pour signaler l'action. */
a { text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
a.btn:hover, a.nav-link:hover, a.app-tab:hover, a.website-card:hover, a.app-day-button:hover, a.dropdown-item:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--nr-primary); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
    min-height: 48px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary {
    --bs-btn-bg: var(--nr-primary);
    --bs-btn-border-color: var(--nr-primary);
    --bs-btn-hover-bg: var(--nr-primary-dark);
    --bs-btn-hover-border-color: var(--nr-primary-dark);
    --bs-btn-active-bg: var(--nr-primary-dark);
    --bs-btn-active-border-color: var(--nr-primary-dark);
    --bs-btn-disabled-bg: var(--nr-disabled);
    --bs-btn-disabled-border-color: var(--nr-disabled);
    --bs-btn-focus-shadow-rgb: 16, 62, 104;
}
.btn-outline-primary {
    --bs-btn-color: var(--nr-primary);
    --bs-btn-border-color: var(--nr-primary);
    --bs-btn-hover-bg: var(--nr-primary-subtle);
    --bs-btn-hover-color: var(--nr-primary-dark);
    --bs-btn-hover-border-color: var(--nr-primary-dark);
    --bs-btn-active-bg: var(--nr-primary-subtle);
    --bs-btn-active-color: var(--nr-primary-dark);
    --bs-btn-active-border-color: var(--nr-primary-dark);
}
.btn-light-on-dark {
    --bs-btn-color: var(--nr-primary);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--nr-primary-dark);
    --bs-btn-hover-bg: var(--nr-primary-subtle);
    --bs-btn-hover-border-color: var(--nr-primary-subtle);
}
.btn-outline-on-dark {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--nr-primary);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
}

/* ---------- Marque ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--nr-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
}
.brand-name { font-size: 20px; color: var(--nr-primary); }

/* ---------- Site public ---------- */
.website { background: var(--nr-page); }
/* En-tête : reste visible au défilement, menu repliable sous 1200 px. */
.website-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--nr-border); backdrop-filter: blur(8px); }
.website-header .navbar > .container-xxl { min-height: 72px; flex-wrap: wrap; }
.website-nav-toggler {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--nr-border);
    border-radius: 8px;
    color: var(--nr-primary);
    font-size: 26px;
    display: grid;
    place-items: center;
}
.website-nav-toggler:focus { box-shadow: 0 0 0 .2rem rgba(16, 62, 104, .25); }
.website-nav { gap: 4px; }
.website-nav .website-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--nr-text);
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.website-nav .website-nav-link:hover { background: var(--nr-page); color: var(--nr-primary); }
.website-nav .website-nav-link.active { background: var(--nr-primary-subtle); color: var(--nr-primary); font-weight: 600; }
/* Liste déroulante Secteurs : à plat dans le menu replié, flottante au-delà de 1200 px. */
.website-dropdown { padding: 8px; border-color: var(--nr-border); border-radius: 8px; }
.website-dropdown .dropdown-item { min-height: 40px; display: flex; align-items: center; border-radius: 6px; color: var(--nr-text); }
.website-dropdown .dropdown-item:hover { background: var(--nr-page); color: var(--nr-primary); }
.website-dropdown .dropdown-item.active { background: var(--nr-primary-subtle); color: var(--nr-primary); font-weight: 600; }
.website-dropdown .dropdown-header { padding-top: 4px; color: var(--nr-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.website-nav-actions { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 16px; }
@media (min-width: 1200px) {
    .website-header .navbar > .container-xxl { flex-wrap: nowrap; }
    .website-nav-actions { flex-direction: row; align-items: center; padding: 0; }
    .website-nav-actions .btn { min-height: 44px; white-space: nowrap; }
    .website-nav .website-nav-link { white-space: nowrap; }
}
/* Menu déplié : entrées resserrées pour tenir sur une ligne. */
@media (min-width: 1200px) {
    .website-nav { gap: 0; }
    .website-nav .website-nav-link { padding: 0 9px; }
    .website-nav-actions { gap: 6px; }
    .website-nav-actions .btn { padding-left: 12px !important; padding-right: 12px !important; }
}
@media (max-width: 1199.98px) {
    .website-nav { padding-top: 8px; }
}

/* Ancres : le contenu ciblé n'est pas caché sous l'en-tête fixe. */
.website [id] { scroll-margin-top: 88px; }

/* Liens de navigation : pas de soulignement, la couleur porte l'état. */
.breadcrumb a { color: var(--nr-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--nr-primary); }
.breadcrumb-item.active { color: var(--nr-text); }
.website-hero { background: #fff; padding: 48px 0; }
.website-hero h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--nr-primary);
}
.website-lead { font-size: 18px; color: var(--nr-muted); }
.website-section { padding: 48px 0; }
.website-section h2 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.website-card {
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-radius: 8px;
}
.website-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--nr-primary-subtle);
    color: var(--nr-primary);
    font-size: 20px;
    display: grid;
    place-items: center;
}
.website-flow {
    padding: 24px;
    background: var(--nr-page);
    border: 1px solid var(--nr-border);
    border-radius: 8px;
}
.website-flow-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-radius: 8px;
}
.website-flow-node.is-main { border: 2px solid var(--nr-primary); }
.website-flow-arrow { padding: 6px 0; text-align: center; color: var(--nr-muted); font-size: 20px; line-height: 1; }
.website-cta { padding: 48px 0; background: var(--nr-primary); color: #fff; }
.website-cta h2 { color: #fff; font-size: 28px; font-weight: 600; }
.website-cta p { opacity: .85; }
.website-cta-text { max-width: 640px; }
.website-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--nr-page); border: 1px solid var(--nr-border); border-radius: 8px; font-weight: 500; }
.website-checklist li + li { margin-top: 8px; }
.website-checklist svg { flex-shrink: 0; font-size: 20px; color: var(--nr-primary); }
.website-footer { padding: 24px 0; background: #fff; border-top: 1px solid var(--nr-border); font-size: 14px; color: var(--nr-muted); }
.website-footer a { color: var(--nr-muted); text-decoration: none; }
.website-footer a:hover { color: var(--nr-primary); }
.website-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.website-footer-nav a { white-space: nowrap; }

.website-page-title { font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: var(--nr-primary); }
.website-next-steps { padding-left: 20px; color: var(--nr-muted); }
.website-next-steps li + li { margin-top: 8px; }
.website-confirmation { max-width: 560px; }
/* ---------- Page Fonctionnalités ---------- */
.website-measure { max-width: 720px; }
.feature-step-number {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--nr-primary);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.feature-points li { display: flex; gap: 10px; align-items: flex-start; }
.feature-points li + li { margin-top: 8px; }
@media (min-width: 768px) {
    .feature-points-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
    .feature-points-columns li + li { margin-top: 0; }
}
.feature-points svg { flex-shrink: 0; margin-top: 4px; color: var(--bs-success); }
.phone-screen { max-width: 280px; margin-inline: auto; }
.feature-step .phone-screen { max-width: 220px; }
.phone-screen img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(16, 62, 104, .15)); }

/* Schéma de circulation : vertical sur mobile, horizontal sur grand écran. */
.flow-diagram { padding: 24px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; }
.flow-diagram-steps { display: grid; grid-template-columns: 1fr; gap: 32px; }
.flow-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--nr-page);
    border: 1px solid var(--nr-border);
    border-radius: 8px;
}
.flow-node strong, .flow-node strong + span { display: block; }
.flow-node strong + span { font-size: 14px; color: var(--nr-muted); }
.flow-node.is-main { background: var(--nr-primary-subtle); border: 2px solid var(--nr-primary); }
.flow-node:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--nr-muted);
    border-bottom: 2px solid var(--nr-muted);
    transform: translateX(-50%) rotate(45deg);
}
.flow-node-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--nr-primary);
    font-size: 20px;
    display: grid;
    place-items: center;
}
.flow-node.is-main .flow-node-icon { background: var(--nr-primary); color: #fff; }
.flow-diagram-back {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--nr-border);
    color: var(--nr-muted);
}
.flow-diagram-back svg { flex-shrink: 0; font-size: 20px; color: var(--nr-primary); }
@media (min-width: 992px) {
    .flow-diagram-steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
    .flow-node:not(:last-child)::after {
        left: auto;
        right: -26px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
    }
}

/* Schéma d'entonnoir : chaque barre est proportionnelle au nombre restant. */
.funnel-row .funnel-bar {
    display: block;
    padding: 10px 14px;
    background: var(--nr-primary-subtle);
    border: 1px solid var(--nr-primary);
    border-radius: 8px;
    color: var(--nr-primary);
}
.funnel-row.is-w100 { width: 100%; }
.funnel-row.is-w89 { width: 89%; }
.funnel-row.is-w84 { width: 84%; }
.funnel-row.is-w82 { width: 82%; }
.funnel-row.is-final .funnel-bar { background: var(--nr-primary); color: #fff; }
.funnel-cut { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 16px; font-size: 14px; color: var(--nr-muted); }
.funnel-cut svg { flex-shrink: 0; }
.funnel-cut.is-warning { color: var(--bs-warning); }

/* Schéma des statuts : un envoi, quatre issues possibles. */
.status-diagram { display: grid; gap: 16px; }
.status-origin {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: center;
    padding: 16px;
    background: var(--nr-primary-subtle);
    border: 2px solid var(--nr-primary);
    border-radius: 8px;
}
.status-origin .flow-node-icon { background: var(--nr-primary); color: #fff; }
.status-outcomes { display: grid; gap: 8px; position: relative; }
.status-outcome {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-left: 4px solid var(--nr-muted);
    border-radius: 8px;
    color: var(--nr-muted);
}
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--nr-text); }
.status-outcome.is-ok { border-left-color: var(--bs-success); }
.status-outcome.is-ok .status-badge svg { color: var(--bs-success); }
.status-outcome.is-retry { border-left-color: var(--bs-warning); }
.status-outcome.is-retry .status-badge svg { color: var(--bs-warning); }
.status-outcome.is-ko { border-left-color: var(--bs-danger); }
.status-outcome.is-ko .status-badge svg { color: var(--bs-danger); }
@media (min-width: 768px) {
    .status-diagram { grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
    .status-outcome { grid-template-columns: 200px 1fr; align-items: center; }
    .status-diagram .status-outcomes::before {
        content: "";
        position: absolute;
        left: -48px;
        top: 24px;
        bottom: 24px;
        border-left: 2px solid var(--nr-border);
    }
    .status-diagram .status-outcome { position: relative; }
    .status-diagram .status-outcome::before {
        content: "";
        position: absolute;
        left: -48px;
        top: 50%;
        width: 44px;
        border-top: 2px solid var(--nr-border);
    }
    .status-origin { position: relative; }
    .status-origin::after {
        content: "";
        position: absolute;
        right: -26px;
        top: 50%;
        width: 24px;
        border-top: 2px solid var(--nr-border);
    }
}

/* ---------- Page Secteurs ---------- */
.sms-bubble {
    padding: 12px 16px;
    background: var(--nr-primary-subtle);
    border-radius: 16px 16px 16px 4px;
    color: var(--nr-text);
}
.sms-examples { padding: 24px; background: var(--nr-page); border: 1px solid var(--nr-border); border-radius: 8px; }
.sms-examples .sms-bubble { background: #fff; border: 1px solid var(--nr-border); }
.website-card-highlight { background: var(--nr-primary-subtle); border-color: var(--nr-primary); }
/* Carte de secteur : toute la carte mène à la page du secteur. */
.website-card-link { transition: border-color .15s ease, box-shadow .15s ease; }
.website-card-link:hover, .website-card-link:focus-within { border-color: var(--nr-primary); box-shadow: 0 4px 16px rgba(16, 62, 104, .08); }
.website-card-link h3 a { color: var(--nr-text); text-decoration: none; }
.website-card-link h3 a:focus-visible { outline: none; }
.website-card-link:focus-within { outline: 2px solid var(--nr-primary); outline-offset: 2px; }
.website-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--nr-primary); font-weight: 600; }

/* ---------- Sources de contacts et équipements ---------- */
.source-status { padding: 2px 10px; border-radius: 999px; background: var(--nr-primary-subtle); color: var(--nr-primary); font-size: 14px; font-weight: 600; }
.source-status.is-muted { background: var(--nr-page); color: var(--nr-muted); border: 1px solid var(--nr-border); }
.data-source-card { display: flex; flex-direction: column; }
.data-source-statuses li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nr-border); }
.data-source-fact { padding: 10px 0; border-top: 1px solid var(--nr-border); }
.data-source-fact dt { font-size: 14px; font-weight: 600; color: var(--nr-muted); }
.data-source-statuses .source-status { white-space: nowrap; }
.data-source-reach { margin-top: auto; padding: 12px 16px; background: var(--nr-page); border-left: 4px solid var(--nr-primary); border-radius: 0 8px 8px 0; }
.data-source-example li { display: flex; gap: 12px; align-items: flex-start; }
.data-source-example li + li { margin-top: 12px; }
.data-source-example svg { flex-shrink: 0; margin-top: 3px; font-size: 18px; color: var(--nr-primary); }
.equipment-case { padding: 12px 16px; border-left: 4px solid var(--nr-primary); background: var(--nr-page); border-radius: 0 8px 8px 0; font-weight: 500; }

/* ---------- Encadré d'action de l'en-tête ---------- */
.hero-aside { height: auto; }

/* ---------- Page Tarifs ---------- */
.price-card { display: flex; flex-direction: column; }
.price-kicker { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--nr-muted); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-amount { font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--nr-primary); white-space: nowrap; }
.price-amount .num { font-variant-numeric: tabular-nums; }
.price-unit { font-weight: 600; color: var(--nr-text); }
.price-note { margin-top: 8px; font-size: 14px; color: var(--nr-muted); }
.price-card > .btn { margin-top: 16px; align-self: flex-start; }
.price-card .feature-points { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--nr-border); }
.price-footnote { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--nr-border); font-size: 14px; color: var(--nr-muted); }
.price-addon { margin: 8px 0 0; font-weight: 600; color: var(--nr-primary); }
.price-examples li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--nr-border); }
.price-examples strong { color: var(--nr-primary); white-space: nowrap; }
.pricing-example { border: 2px solid var(--nr-primary); }
.pricing-example-case { padding: 20px; background: var(--nr-page); border: 1px solid var(--nr-border); border-radius: 8px; }
.pricing-example-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--nr-border); }
.pricing-example-lines dt { font-weight: 500; }
.pricing-example-lines dt span { display: block; font-size: 14px; font-weight: 400; color: var(--nr-muted); font-variant-numeric: tabular-nums; }
.pricing-example-lines dd { margin: 0; font-weight: 700; color: var(--nr-primary); white-space: nowrap; }
.price-extra { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 12px 16px; background: var(--nr-page); border-radius: 8px; }
.price-extra strong { color: var(--nr-primary); white-space: nowrap; }
.price-table th, .price-table td { padding: 16px; vertical-align: top; }
.price-table thead th { font-size: 14px; color: var(--nr-muted); font-weight: 600; }
.price-table tbody th { font-weight: 600; }
.price-table td { font-weight: 600; color: var(--nr-primary); }
.price-table td.price-table-plain { font-weight: 400; color: var(--nr-muted); }

/* ---------- Formulaire de devis ---------- */
.quote-step { margin: 0 0 32px; padding: 0 0 32px; border-bottom: 1px solid var(--nr-border); }
.quote-step > legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 20px; font-weight: 600; float: none; }
.quote-step-number { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--nr-primary); color: #fff; font-size: 16px; font-weight: 700; display: grid; place-items: center; }
.quote-choices legend { margin-bottom: 8px; padding: 0; font-size: 16px; font-weight: 500; float: none; }
.quote-choices .form-check { min-height: 32px; }
.quote-choices fieldset > div, .quote-choices > div > div { display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (min-width: 992px) {
    .quote-aside { position: sticky; top: 96px; }
}

/* ---------- Bannière de consentement ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; padding: 16px 0; background: #fff; border-top: 1px solid var(--nr-border); box-shadow: 0 -.25rem 1rem rgba(16, 62, 104, .12); }
.consent-banner-inner { display: flex; flex-direction: column; gap: 12px; }
.consent-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) {
    .consent-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
    .consent-banner-actions { display: flex; flex-shrink: 0; }
}
.website-footer-button { padding: 0; border: 0; background: none; color: var(--nr-muted); white-space: nowrap; }
.website-footer-button:hover { color: var(--nr-primary); }

/* ---------- Page Maintenance et assistance ---------- */
.support-list { padding-left: 20px; }
.support-list li + li { margin-top: 4px; }
.support-warning { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: #fff; border: 1px solid var(--nr-border); border-left: 4px solid var(--bs-warning); border-radius: 0 8px 8px 0; }
.support-warning svg { flex-shrink: 0; margin-top: 3px; color: var(--bs-warning); }

.support-number { font-size: 28px; font-weight: 700; color: var(--nr-primary); letter-spacing: .02em; }

/* ---------- Formulaire d'assistance : choix en tuiles cliquables ---------- */
.choice-tiles legend, .choice-inline legend { margin-bottom: 8px; padding: 0; font-size: 16px; font-weight: 600; float: none; }
.choice-tiles fieldset > div { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 576px) {
    .choice-tiles-2 fieldset > div { grid-template-columns: repeat(2, 1fr); }
    .choice-tiles-3 fieldset > div { grid-template-columns: repeat(3, 1fr); }
}
.choice-tiles .form-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 12px 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; transition: border-color .15s, background-color .15s; }
.choice-tiles .form-check .form-check-input { flex-shrink: 0; float: none; margin: 0; }
.choice-tiles .form-check-label { font-weight: 500; cursor: pointer; }
/* Toute la tuile est cliquable, pas seulement le libellé. */
.choice-tiles .form-check-label::after { content: ""; position: absolute; inset: 0; }
.choice-tiles .form-check:hover { border-color: var(--nr-primary); }
.choice-tiles .form-check:has(.form-check-input:checked) { border-color: var(--nr-primary); background: var(--nr-primary-subtle); box-shadow: inset 0 0 0 1px var(--nr-primary); }
.choice-tiles .form-check:has(.form-check-input:focus-visible) { outline: 2px solid var(--nr-primary); outline-offset: 2px; }
.choice-tiles .form-check:has(.form-check-input.is-invalid) { border-color: var(--bs-danger); }
.choice-inline fieldset > div { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.choice-inline .form-check { min-height: 32px; }
.support-request-contact { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--nr-border); }

/* ---------- Pages légales ---------- */
.legal-toc ol { padding-left: 20px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--nr-primary-dark); }
.legal-toc li + li { margin-top: 6px; }
.legal-content section + section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--nr-border); }
.legal-content h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.legal-content section { scroll-margin-top: 24px; }
.legal-list { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin-bottom: 0; }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin-bottom: 8px; color: var(--nr-muted); }
@media (min-width: 768px) {
    .legal-list { grid-template-columns: minmax(200px, 1fr) 2fr; }
    .legal-list dd { margin-bottom: 0; }
}
@media (min-width: 992px) {
    .legal-toc { position: sticky; top: 96px; }
}
.legal-missing { color: var(--bs-warning); font-style: italic; }
.website .form-control, .website .form-select { min-height: 48px; font-size: 16px; }
.website .form-check-input { width: 20px; height: 20px; margin-top: 2px; }
.website .form-check-label { padding-left: 4px; }

/* ---------- Espaces connectés : organisation et administration (docs/demo.md, section 2.7) ---------- */
.app-body { background: var(--nr-page); }
.app-header { background: #fff; border-bottom: 1px solid var(--nr-border); }
.app-header .navbar > .container-xxl { min-height: 72px; flex-wrap: wrap; }
.app-space-label { max-width: 220px; overflow: hidden; font-size: 13px; color: var(--nr-muted); text-overflow: ellipsis; white-space: nowrap; }
.app-nav-account { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 16px; }
.app-account-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--nr-text); font-weight: 500; text-decoration: none; }
.app-account-link:hover, .app-account-link.active { background: var(--nr-primary-subtle); color: var(--nr-primary); }
/* Le menu de l'espace se déplie à partir de xl (1200 px) : jusqu'à sept entrées, sans retour à la ligne. */
.app-header .website-nav .website-nav-link, .app-account-link { white-space: nowrap; }
.app-nav-account .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 1200px) {
    .app-header .navbar > .container-xxl { flex-wrap: nowrap; gap: 8px; }
    .app-header .website-nav .website-nav-link { padding: 0 10px; }
    .app-nav-account { flex-direction: row; align-items: center; padding: 0; }
    .app-nav-account .btn { width: auto !important; min-height: 44px; }
}
/* Entre xl et xxl, le nom du compte et « Se déconnecter » ne gardent que leur icône (texte toujours lu par les lecteurs d'écran). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .app-nav-account .app-nav-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}
@media (max-width: 1199.98px) {
    .app-header .website-nav { padding-top: 8px; }
}
.app-page-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 768px) {
    .app-page-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.app-page-title { margin-bottom: 4px; font-size: clamp(24px, 4vw, 30px); font-weight: 700; color: var(--nr-primary); }
.app-page-actions:empty { display: none; }
.app-flash { border-radius: 8px; }
.app-list { display: grid; gap: 8px; }
.app-list-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; }
@media (min-width: 768px) {
    .app-list-item { flex-direction: row; justify-content: space-between; align-items: center; }
}
.app-list-main { min-width: 0; }
.app-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-list-actions form { margin: 0; }
.app-list-actions .btn-sm { min-height: 40px; }
.app-list-link { text-decoration: none; }
.app-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.app-badge.is-active { background: #E3F2EA; color: var(--bs-success); }
.app-badge.is-inactive { background: #FBE9E7; color: var(--bs-danger); }
.app-badge.is-pending { background: #FDF0E1; color: var(--bs-warning); }
.app-badge.is-neutral { background: var(--nr-primary-subtle); color: var(--nr-primary); }
.app-empty { padding: 32px 16px; background: #fff; border: 1px dashed var(--nr-border); border-radius: 8px; color: var(--nr-muted); text-align: center; }
.app-form-card { max-width: 640px; height: auto; }
.app-form-card-wide { max-width: 880px; }

/* Texte du DPA dans la Gestion (templates/Pdf/Core/dpa/v*.html.twig, partagé avec le PDF signé). */
.dpa-text { max-height: 60vh; overflow-y: auto; padding-right: 8px; }
.dpa-text h2 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.dpa-text h2:first-child { margin-top: 0; }
.dpa-text ul, .dpa-text ol { padding-left: 1.25rem; }
.dpa-parties { width: 100%; margin-bottom: 1rem; }
.dpa-parties td { display: block; vertical-align: top; padding: 12px; border: 1px solid var(--nr-border); }
.dpa-parties td + td { border-top: 0; }
@media (min-width: 768px) {
    .dpa-parties td { display: table-cell; width: 50%; }
    .dpa-parties td + td { border-top: 1px solid var(--nr-border); border-left: 0; }
}
.app-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.app-facts dt { font-weight: 500; color: var(--nr-muted); }
.app-facts dd { margin: 0; min-width: 0; }
.app-stat { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.app-stat:hover { border-color: var(--nr-primary); }
.app-stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--nr-primary); }
.app-activity li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--nr-border); }
.app-activity li:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 768px) {
    .app-activity li { flex-direction: row; gap: 12px; align-items: baseline; }
}
/* Onglets de fiche : défilement interne si l'écran est étroit, jamais de la page. */
.app-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--nr-border); }
.app-tab { min-height: 44px; padding: 10px 16px; border-bottom: 3px solid transparent; color: var(--nr-muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.app-tab:hover { color: var(--nr-primary); }
.app-tab.active { border-bottom-color: var(--nr-primary); color: var(--nr-primary); font-weight: 600; }

/* ---------- Connexion et mot de passe ---------- */
.auth-card { max-width: 480px; height: auto; }

/* Demandes reçues (A7) */
.app-request-details summary { min-height: 44px; display: flex; align-items: center; color: var(--nr-primary); font-weight: 500; cursor: pointer; }
.text-pre-line { white-space: pre-line; }

/* Échéancier de facturation d'un client */
.app-timeline th { font-size: 13px; font-weight: 600; color: var(--nr-muted); white-space: nowrap; }
.app-timeline td, .app-timeline th { padding: 12px 16px; }
.app-timeline-action td:first-child { box-shadow: inset 3px 0 0 var(--bs-warning); }

/* Cartes du tableau de bord : un liseré de couleur signale ce qui demande une action. */
.app-stat { border-top: 4px solid var(--nr-border); }
.app-stat-ok { border-top-color: var(--bs-success); }
.app-stat-info { border-top-color: var(--nr-primary); }
.app-stat-warning { border-top-color: var(--bs-warning); }
.app-stat-danger { border-top-color: var(--bs-danger); }
.app-stat-danger .app-stat-value { color: var(--bs-danger); }

/* ---------- Parcours d'envoi (écrans 3 à 8), d'abord pour mobile ---------- */
.app-send { max-width: 640px; margin: 0 auto; padding-bottom: 8px; }
.app-demo-banner { background: #FDF0E1; border-bottom: 1px solid #F3D6B0; color: #7A4100; font-size: 14px; }
.app-demo-banner .container-xxl { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.app-send-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-send-back { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--nr-border); border-radius: 8px; background: #fff; color: var(--nr-primary); text-decoration: none; }
.app-send-back:hover { background: var(--nr-primary-subtle); }
.app-send-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--nr-primary); }
.app-send-subtitle { font-size: 14px; color: var(--nr-muted); }
.app-stepper { margin-bottom: 16px; }
.app-stepper-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.app-stepper-bars span { height: 6px; border-radius: 3px; background: var(--nr-border); }
.app-stepper-bars span.on { background: var(--nr-primary); }
.app-day-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; color: inherit; text-decoration: none; }
.app-day-button:hover { border-color: var(--nr-primary); background: var(--nr-primary-subtle); }
.app-day-button-primary { border-color: var(--nr-primary); box-shadow: inset 0 0 0 1px var(--nr-primary); }
/* Agenda : bande des jours, défilement interne sur mobile. */
.app-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.app-day { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1 0 64px; min-height: 72px; padding: 8px 6px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; color: inherit; text-decoration: none; }
.app-day:hover { border-color: var(--nr-primary); }
.app-day.active { border-color: var(--nr-primary); background: var(--nr-primary); color: #fff; }
.app-day-name { font-size: 13px; white-space: nowrap; }
.app-day-number { font-size: 20px; font-weight: 700; line-height: 1.2; }
.app-day-count { font-size: 12px; opacity: .8; }
.app-demo-banner .container-xxl { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.app-demo-text { display: flex; align-items: center; gap: 8px; }
.app-demo-text svg { flex-shrink: 0; }
.app-demo-switch, .app-demo-profile, .app-demo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.app-demo-switch .app-chip, .app-demo-profile .app-chip, .app-demo-links .app-chip { min-height: 32px; font-size: 13px; }
.app-list-item-compact { padding: 12px 16px; flex-direction: row; align-items: center; justify-content: space-between; }
.app-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.app-chip { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 40px; padding: 0 14px; border: 1px solid var(--nr-border); border-radius: 999px; background: #fff; color: var(--nr-text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.app-chip.active { border-color: var(--nr-primary); background: var(--nr-primary); color: #fff; }
.app-chips-sm .app-chip { min-height: 36px; font-size: 13px; }
.app-slot { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; cursor: pointer; }
.app-slot .form-check-input { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; }
.app-slot.selected { border-color: var(--nr-primary); background: var(--nr-primary-subtle); box-shadow: inset 0 0 0 1px var(--nr-primary); }
.app-slot-all { align-items: center; background: var(--nr-page); }
.app-slot-time { display: block; font-size: 13px; font-weight: 600; color: var(--nr-primary); }
.app-slot-count { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; color: var(--nr-muted); }
.app-slot-count strong { font-size: 20px; color: var(--nr-text); line-height: 1.1; }
/* Agenda : regroupement par site puis par lieu, créneau déjà prévenu bien visible. */
.app-slot-site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--nr-border); }
.app-slot-site-notified { color: #8A4B00; font-weight: 600; }
.app-slot-group { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--nr-muted); text-transform: uppercase; letter-spacing: .02em; }
.app-slot-notified { border-left: 5px solid #E08A00; background: #FFF8EE; }
.app-slot-alert { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; color: #6B3A00; }
.app-slot-alert svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.app-slot-skipped { color: #6B3A00; }
.app-day-alert { position: absolute; top: 4px; right: 6px; color: #E08A00; line-height: 1; }
.app-day-alert svg { width: 14px; height: 14px; }
.app-switch-card { padding: 14px 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; }
/* Barre d'action : reste visible en bas de l'écran pendant le défilement. */
.app-action-bar { position: sticky; bottom: 0; z-index: 10; margin: 16px -12px 0; padding: 12px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--nr-border); box-shadow: 0 -.25rem 1rem rgba(16, 62, 104, .08); }
@media (min-width: 768px) {
    .app-action-bar { margin: 24px 0 0; border: 1px solid var(--nr-border); border-radius: 8px; }
}
.app-send-stat { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; font-size: 13px; color: var(--nr-muted); }
.app-send-stat-value { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--nr-text); }
.app-send-stat.is-primary { border-color: var(--nr-primary); background: var(--nr-primary-subtle); }
.app-send-stat.is-primary .app-send-stat-value { color: var(--nr-primary); }
.app-send-stat.is-ok .app-send-stat-value { color: var(--bs-success); }
.app-send-stat.is-warn .app-send-stat-value { color: var(--bs-warning); }
.app-send-stat.is-ko .app-send-stat-value { color: var(--bs-danger); }
/* Aperçu d'un SMS reçu, à la manière d'une messagerie de téléphone : en-tête de conversation, heure, bulle grise. */
.app-sms-preview { padding: 0 0 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 16px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.app-sms-header { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 16px 10px; background: #F7F7F8; border-bottom: 1px solid #E5E5EA; }
.app-sms-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #A5ABB6, #868C98); color: #fff; font-size: 26px; overflow: hidden; }
.app-sms-avatar svg { width: 30px; height: 30px; margin-top: 8px; }
.app-sms-sender { font-size: 13px; font-weight: 500; color: #1C1C1E; }
.app-sms-meta { margin: 12px 0 6px; font-size: 11px; color: #8E8E93; text-align: center; }
.app-sms-preview .app-sms-bubble { margin: 0 16px; }
.app-sms-bubble { max-width: 85%; padding: 10px 14px; background: #E9E9EB; border-radius: 18px 18px 18px 4px; color: #1C1C1E; font-size: 15px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.app-summary { margin-bottom: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; }
.app-summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.app-summary-head a { font-size: 14px; text-decoration: none; }

/* ---------- Listes de contacts et QR codes ---------- */
.app-place-list li { padding: 10px 0; border-top: 1px solid var(--nr-border); }
.app-place-list li:first-child { border-top: 0; padding-top: 0; }
.app-sms-mention { color: var(--nr-muted); white-space: nowrap; }
.app-site-heading { margin: 4px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--nr-muted); }
/* Affiche du QR code : format portrait, imprimée seule (bouton « Imprimer l'affiche »). */
.app-poster { max-width: 420px; margin: 0 auto; padding: 32px 28px; background: #fff; border: 1px solid var(--nr-border); border-radius: 8px; text-align: center; }
.app-poster-org { font-size: 14px; font-weight: 600; color: var(--nr-muted); text-transform: uppercase; letter-spacing: .05em; }
.app-poster-title { margin: 8px 0 4px; font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--nr-primary); }
.app-poster-call { margin: 12px 0 20px; font-size: 18px; }
.app-poster-qr { width: min(240px, 70%); margin: 0 auto; }
.app-poster-qr svg { display: block; width: 100%; height: auto; }
.app-poster-help { margin: 20px 0 0; font-size: 14px; color: var(--nr-muted); }
@media print {
    body:has(.app-poster) * { visibility: hidden; }
    body:has(.app-poster) .app-poster, body:has(.app-poster) .app-poster * { visibility: visible; }
    body:has(.app-poster) .app-poster { position: absolute; inset: 0; max-width: none; border: 0; padding-top: 15mm; }
    .app-poster-title { font-size: 40pt; }
    .app-poster-call { font-size: 20pt; }
    .app-poster-qr { width: 110mm; }
}
/* Page publique d'inscription, sur le téléphone de l'usager. */
.app-signup { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; }

/* Mise en service d'une organisation (administration, Tableau de bord) : une carte par étape. */
.app-onboarding-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; border-top: 4px solid var(--nr-border); }
.app-onboarding-card:hover { border-color: var(--nr-primary); }
.app-onboarding-card.is-done { border-top-color: var(--bs-success); }
.app-onboarding-card.is-done h3 { color: var(--bs-secondary-color); }
.app-onboarding-card.is-next { border-color: var(--nr-primary); border-top-color: var(--nr-primary); box-shadow: 0 0 0 1px var(--nr-primary); }
.app-onboarding-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 700; background: var(--nr-primary-subtle); color: var(--nr-primary); }
.app-onboarding-card.is-done .app-onboarding-number { background: var(--bs-success); color: #fff; }
.app-onboarding-icon { color: var(--nr-primary); }
.app-onboarding-progress { height: 6px; }

/* Texte du DPA dans la Gestion : lisible sans allonger la page, défilement interne au clavier (tabindex). */
.app-dpa-text { max-height: 32rem; overflow-y: auto; }

/* Espace organisation sur grand écran : les pages de consultation (accueil, agenda, historique, listes, modèles, aide)
   prennent toute la largeur, les créneaux et les actions passent en grille. Les écrans d'envoi et les formulaires
   restent en colonne (.app-send), plus lisibles pour écrire. Le mobile ne change pas. */
@media (min-width: 992px) {
    .app-send-wide { max-width: none; }
    .app-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-dashboard-actions { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .app-send-wide .app-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .app-send-wide .app-action-bar > div { margin-bottom: 0 !important; }
    .app-send-wide .app-action-bar .btn-lg.w-100 { width: auto !important; padding-inline: 2.5rem; }
}
@media (min-width: 1400px) {
    .app-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Points à traiter (tableau de bord de l'espace organisation, fiche d'une organisation) ---------- */
.app-issue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 14px;
    border-radius: var(--bs-border-radius);
    border-left: 4px solid currentColor;
}
.app-issue-danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger); }
.app-issue-warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning); }
.app-issue-info { background: var(--bs-primary-bg-subtle); color: var(--nr-primary); }
.app-issue-text { display: flex; align-items: flex-start; gap: 10px; color: var(--nr-text); }
.app-issue .btn { min-height: 36px; }

/* ---------- Contrats : un onglet par contrat avec son état (CGV, DPA) ---------- */
.app-contract-tabs .nav-link { border: 1px solid var(--nr-border); background: #fff; color: var(--nr-text); font-weight: 500; }
.app-contract-tabs .nav-link.active { background: var(--nr-primary); border-color: var(--nr-primary); color: #fff; }
.app-contract-tabs .nav-link:hover { text-decoration: none; }
