/* ==========================================================================
   Page d'accueil publique — présentation d'un bureau numérique administratif.
   Feuille autonome : elle ne dépend ni du thème Velzon ni des écrans internes.
   ========================================================================== */

:root {
    --lp-ink: #0f1d3a;
    --lp-ink-soft: #3d4b66;
    --lp-muted: #6b7690;
    --lp-line: #e3e8f2;
    --lp-bg: #ffffff;
    --lp-bg-soft: #f5f7fc;
    --lp-blue: #1d4e9f;
    --lp-blue-rgb: 29, 78, 159;
    --lp-sky: #3a7bd5;
    --lp-gold: #e0a33a;
    --lp-gold-rgb: 224, 163, 58;
    --lp-green: #1f9d74;
    --lp-green-rgb: 31, 157, 116;
    --lp-red: #d9534f;
    --lp-red-rgb: 217, 83, 79;
    --lp-radius: 18px;
    --lp-shadow: 0 1px 2px rgba(15, 29, 58, 0.05), 0 12px 40px rgba(15, 29, 58, 0.08);
    --lp-shadow-lg: 0 30px 80px rgba(15, 29, 58, 0.18);
    --lp-surface: #ffffff;
    --lp-line-strong: #cdd5e4;
    --lp-top-bg: rgba(255, 255, 255, 0.86);
    --lp-tip-bg: #0f1d3a;
    --lp-side-before: #fff8f7;
    --lp-side-after: #f3fbf8;
    --lp-dot: #d7dce8;
    --lp-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: var(--lp-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lp a { color: inherit; text-decoration: none; }
.lp img { max-width: 100%; display: block; }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }

.lp-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.lp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--lp-blue-rgb), 0.08);
    color: var(--lp-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-kicker i { font-size: 1rem; }

.lp-title {
    margin-top: 1rem;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.lp-sub {
    margin-top: 1rem;
    max-width: 44rem;
    color: var(--lp-ink-soft);
    font-size: 1.08rem;
}

.lp-head-center { text-align: center; }
.lp-head-center .lp-sub { margin-inline: auto; text-wrap: balance; }

/* ---------- Boutons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border: 0;
    border-radius: 12px;
    background: var(--lp-blue);
    color: #fff !important;
    font: 700 0.95rem/1 var(--lp-font);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(var(--lp-blue-rgb), 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lp-btn:hover { transform: translateY(-2px); background: #173f82; box-shadow: 0 14px 30px rgba(var(--lp-blue-rgb), 0.34); }
.lp-btn:focus-visible { outline: 3px solid rgba(var(--lp-gold-rgb), 0.7); outline-offset: 3px; }

.lp-btn.is-ghost {
    background: transparent;
    color: var(--lp-ink) !important;
    box-shadow: inset 0 0 0 1.5px var(--lp-line);
}

.lp-btn.is-ghost:hover { background: var(--lp-bg-soft); box-shadow: inset 0 0 0 1.5px var(--lp-line-strong); }
.lp-btn.is-light { background: #fff; color: var(--lp-blue) !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.lp-btn.is-light:hover { background: #f1f5ff; }
.lp-btn.is-small { padding: 0.6rem 1.05rem; font-size: 0.88rem; box-shadow: none; }

/* ---------- Barre du haut ---------- */
.lp-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--lp-top-bg);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-top.is-scrolled { border-color: var(--lp-line); box-shadow: 0 6px 24px rgba(15, 29, 58, 0.06); }

.lp-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }

.lp-brand { display: flex; align-items: center; gap: 0.75rem; }
.lp-brand img { height: 44px; width: auto; }
.lp-brand span { padding-left: 0.75rem; border-left: 1px solid var(--lp-line); font-weight: 800; letter-spacing: 0.04em; }

/* Une seule ligne : un lien qui ne tient plus passe à la ligne suivante, masquée, au lieu de serrer le bandeau. */
.lp-brand, .lp-top-actions { flex-shrink: 0; }
.lp-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 1.75rem); }
.lp-nav a { color: var(--lp-ink-soft); font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.lp-nav a:hover { color: var(--lp-blue); }

/* ---------- Accroche ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(var(--lp-blue-rgb), 0.12) 0%, transparent 60%),
        radial-gradient(40% 50% at 0% 100%, rgba(var(--lp-gold-rgb), 0.14) 0%, transparent 60%),
        var(--lp-bg);
}

.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.lp-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.lp-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--lp-blue), var(--lp-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero .lp-sub { font-size: 1.15rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.lp-proof { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.25rem; color: var(--lp-muted); font-size: 0.88rem; }
.lp-proof span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-proof i { color: var(--lp-green); font-size: 1.1rem; }

/* Maquette d'écran : un dossier suivi */
.lp-mock {
    position: relative;
    border-radius: 20px;
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow-lg);
    border: 1px solid var(--lp-line);
    overflow: hidden;
    animation: lp-flotte 7s ease-in-out infinite;
}

.lp-mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1rem; background: var(--lp-bg-soft); border-bottom: 1px solid var(--lp-line); }
.lp-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-dot); }
.lp-mock-bar i:nth-child(1) { background: #f47067; }
.lp-mock-bar i:nth-child(2) { background: #f4c167; }
.lp-mock-bar i:nth-child(3) { background: #6fd18a; }
.lp-mock-bar span { margin-left: 0.75rem; color: var(--lp-muted); font-size: 0.78rem; font-weight: 600; }

.lp-mock-body { padding: 1.25rem 1.25rem 1.4rem; }
.lp-mock-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lp-mock-title strong { font-size: 1rem; }
.lp-mock-title small { display: block; color: var(--lp-muted); font-size: 0.78rem; font-weight: 500; }

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.lp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lp-pill.is-green { background: rgba(var(--lp-green-rgb), 0.12); color: var(--lp-green); }
.lp-pill.is-gold { background: rgba(var(--lp-gold-rgb), 0.16); color: #b07514; }
.lp-pill.is-blue { background: rgba(var(--lp-blue-rgb), 0.1); color: var(--lp-blue); }
.lp-pill.is-red { background: rgba(var(--lp-red-rgb), 0.12); color: var(--lp-red); }

.lp-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.lp-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--lp-blue), var(--lp-green)); opacity: 0.35; }
.lp-steps li { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0; }
.lp-steps li > i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
}
.lp-steps .lp-txt { flex: 1 1 auto; min-width: 0; }
.lp-steps .lp-txt b { display: block; font-size: 0.86rem; }
.lp-steps .lp-txt small { color: var(--lp-muted); font-size: 0.74rem; }

.lp-i-blue { background: rgba(var(--lp-blue-rgb), 0.12); color: var(--lp-blue); }
.lp-i-gold { background: rgba(var(--lp-gold-rgb), 0.18); color: #b07514; }
.lp-i-green { background: rgba(var(--lp-green-rgb), 0.14); color: var(--lp-green); }
.lp-i-red { background: rgba(var(--lp-red-rgb), 0.12); color: var(--lp-red); }

.lp-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
    font-size: 0.8rem;
    animation: lp-flotte 6s ease-in-out infinite;
}
.lp-float i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; }
.lp-float b { display: block; font-size: 0.82rem; }
.lp-float small { color: var(--lp-muted); }
.lp-float.is-a { left: -2.25rem; bottom: 2.5rem; animation-delay: -2s; }
.lp-float.is-b { right: -1.5rem; top: -1.25rem; animation-delay: -4s; }

.lp-hero-visual { position: relative; padding: 1.5rem 0; }

@keyframes lp-flotte {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.lp-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.lp-section.is-soft { background: var(--lp-bg-soft); }

/* Le problème */
.lp-pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.lp-pain {
    position: relative;
    padding: 1.6rem 1.4rem;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
    transition: transform 0.2s ease;
}
.lp-pain:hover { transform: translateY(-4px); }
.lp-pain > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; }
.lp-pain h3 { margin-top: 1.1rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-pain p { margin-top: 0.5rem; color: var(--lp-ink-soft); font-size: 0.93rem; }
.lp-pain blockquote {
    margin: 1rem 0 0;
    padding: 0.65rem 0.8rem;
    border-left: 3px solid var(--lp-gold);
    border-radius: 0 8px 8px 0;
    background: rgba(var(--lp-gold-rgb), 0.08);
    color: var(--lp-ink);
    font-size: 0.85rem;
    font-style: italic;
}

/* Avant / après */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.lp-side { padding: 2rem; border-radius: var(--lp-radius); border: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-side.is-before { background: linear-gradient(180deg, var(--lp-surface) 0%, var(--lp-side-before) 100%); }
.lp-side.is-after { background: linear-gradient(180deg, var(--lp-surface) 0%, var(--lp-side-after) 100%); border-color: rgba(var(--lp-green-rgb), 0.35); box-shadow: var(--lp-shadow); }
.lp-side h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 800; }
.lp-side ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.lp-side li { display: flex; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px dashed var(--lp-line); color: var(--lp-ink-soft); font-size: 0.95rem; }
.lp-side li:first-child { border-top: 0; }
.lp-side li > i { flex-shrink: 0; margin-top: 0.15rem; font-size: 1.15rem; }
.lp-side.is-before li > i { color: var(--lp-red); }
.lp-side.is-after li > i { color: var(--lp-green); }
.lp-side li b { color: var(--lp-ink); }

/* Le fil d'un dossier */
.lp-flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.lp-flow::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 34px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lp-blue), var(--lp-sky), var(--lp-gold), var(--lp-green));
    opacity: 0.4;
}
.lp-flow-step { position: relative; text-align: center; }
.lp-flow-step > i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
    font-size: 1.7rem;
}
.lp-flow-step .lp-num { display: block; margin-top: 1rem; color: var(--lp-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.lp-flow-step h3 { margin-top: 0.2rem; font-size: 0.98rem; font-weight: 800; }
.lp-flow-step p { margin-top: 0.4rem; color: var(--lp-ink-soft); font-size: 0.86rem; }

/* « .lp » devant : sans lui, la remise à zéro « .lp p { margin: 0 } » l'emporte et la note colle aux étapes. */
.lp .lp-flow-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem auto 0;
    max-width: 46rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(var(--lp-blue-rgb), 0.06);
    color: var(--lp-ink);
    font-size: 0.95rem;
    text-align: left;
}
.lp-flow-note i { color: var(--lp-blue); font-size: 1.5rem; }

/* S'organiser : trois cartes, chacune avec une petite maquette (liste, frise, performance) */
.lp-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.lp-prod {
    padding: 1.25rem 1.25rem 1.6rem;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow);
}
.lp-prod-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 232px;
    padding: 1rem;
    border-radius: 12px;
    background: var(--lp-bg-soft);
    border: 1px solid var(--lp-line);
    font-size: 0.78rem;
}
.lp-prod h3 { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-prod h3 i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; font-size: 1.2rem; font-weight: 400; }
.lp-prod p { margin-top: 0.7rem; color: var(--lp-ink-soft); font-size: 0.93rem; }

/* Maquette : la liste « À faire » */
.lp-todo { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.lp-todo li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 9px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    font-weight: 600;
}
.lp-todo li > i { color: var(--lp-muted); font-size: 1.05rem; }
.lp-todo li > i + span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-todo .is-done > i { color: var(--lp-green); }
.lp-todo .is-done > span { color: var(--lp-muted); text-decoration: line-through; }
.lp-todo .lp-pill { padding: 0.15rem 0.5rem; font-size: 0.66rem; }

/* Maquette : la frise (une colonne de libellés, cinq jours ; --d = trait de départ, --l = durée) */
.lp-gantt { position: relative; }
.lp-gantt::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 0;
    left: calc(4rem + (100% - 4rem) * 0.5);
    width: 2px;
    border-radius: 2px;
    background: var(--lp-red);
    opacity: 0.55;
}
.lp-gantt-head, .lp-gantt-row { display: grid; grid-template-columns: 4rem repeat(5, minmax(0, 1fr)); align-items: center; }
.lp-gantt-head { padding-bottom: 0.4rem; color: var(--lp-muted); font-size: 0.68rem; text-align: center; }
.lp-gantt-row { padding: 0.5rem 0; border-top: 1px dashed var(--lp-line); }
.lp-gantt-row span { color: var(--lp-ink-soft); font-weight: 600; }
.lp-gantt-row i { grid-row: 1; grid-column: var(--d) / span var(--l); height: 14px; border-radius: 7px; }
.lp-gantt-row .is-green { background: var(--lp-green); }
.lp-gantt-row .is-blue { background: var(--lp-blue); }
.lp-gantt-row .is-gold { background: var(--lp-gold); }
.lp-gantt-row .is-red { background: var(--lp-red); }

/* Maquette : la performance (deux taux en anneau, --v en %, et le rythme en barres, --h en %) */
.lp-perf { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 1rem; }
.lp-gauge { display: grid; justify-items: center; gap: 0.4rem; color: var(--lp-muted); font-size: 0.72rem; font-weight: 600; }
.lp-ring {
    --c: var(--lp-green);
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--lp-line) 0);
}
.lp-ring.is-blue { --c: var(--lp-blue); }
.lp-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--lp-bg-soft); }
.lp-ring b { position: relative; color: var(--lp-ink); font-size: 0.84rem; font-weight: 800; }
.lp-bars { display: flex; align-items: flex-end; gap: 0.35rem; width: 100%; height: 76px; }
.lp-bars i { flex: 1 1 0; height: calc(var(--h) * 1%); border-radius: 4px 4px 0 0; background: rgba(var(--lp-blue-rgb), 0.3); }
.lp-bars i:last-child { background: var(--lp-blue); }

/* Ce que l'outil réunit */
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.lp-feature {
    padding: 1.75rem;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lp-feature:hover { border-color: rgba(var(--lp-blue-rgb), 0.35); box-shadow: var(--lp-shadow); transform: translateY(-3px); }
.lp-feature > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; font-size: 1.4rem; }
.lp-feature h3 { margin-top: 1.1rem; font-size: 1.05rem; font-weight: 800; }
.lp-feature p { margin-top: 0.5rem; color: var(--lp-ink-soft); font-size: 0.93rem; }

/* Rôles */
.lp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.lp-role { padding: 1.75rem; border-radius: var(--lp-radius); background: var(--lp-surface); border: 1px solid var(--lp-line); }
.lp-role-head { display: flex; align-items: center; gap: 0.85rem; }
.lp-role-head i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; }
.lp-role-head h3 { font-size: 1.05rem; font-weight: 800; }
.lp-role-head small { display: block; color: var(--lp-muted); font-size: 0.82rem; }
.lp-role ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.lp-role li { display: flex; gap: 0.6rem; padding: 0.4rem 0; color: var(--lp-ink-soft); font-size: 0.92rem; }
.lp-role li i { color: var(--lp-blue); margin-top: 0.15rem; }

/* Appel final */
.lp-final {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    border-radius: 26px;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
        linear-gradient(135deg, #10275a 0%, var(--lp-blue) 60%, var(--lp-sky) 100%);
    color: #fff;
    box-shadow: var(--lp-shadow-lg);
}
.lp-final h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.lp-final p { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.82); max-width: 36rem; }
.lp-final .lp-kicker { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Pied de page */
.lp-foot { padding: 2.5rem 0; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 0.88rem; }
.lp-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-foot nav { display: flex; gap: 1.25rem; }
.lp-foot a:hover { color: var(--lp-blue); }

/* ---------- Apparition au défilement ---------- */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-mock, .lp-float { animation: none; }
    .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
    .lp-pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
    .lp-flow::before { display: none; }
}

/* Sous cette largeur, les cinq liens ne tiennent plus à côté des boutons d'un compte connecté. */
@media (max-width: 1160px) {
    .lp-nav { display: none; }
}

@media (max-width: 900px) {
    .lp-hero-grid, .lp-compare, .lp-final { grid-template-columns: minmax(0, 1fr); }
    .lp-features, .lp-roles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lp-prods { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
    .lp-float.is-a { left: 0.5rem; }
    .lp-float.is-b { right: 0.5rem; }
}

@media (max-width: 600px) {
    .lp-brand span { display: none; }
    .lp-pains, .lp-features, .lp-roles, .lp-flow { grid-template-columns: minmax(0, 1fr); }
    .lp-float { display: none; }
    .lp-cta .lp-btn { width: 100%; }
}

/* ==========================================================================
   Choix de l'application (après connexion)
   ========================================================================== */
.lp-apps-page {
    min-height: 100vh;
    background:
        radial-gradient(50% 45% at 90% 0%, rgba(var(--lp-blue-rgb), 0.10) 0%, transparent 60%),
        radial-gradient(40% 40% at 0% 100%, rgba(var(--lp-gold-rgb), 0.10) 0%, transparent 60%),
        var(--lp-bg-soft);
}

.lp-user { display: flex; align-items: center; gap: 0.85rem; }
.lp-user-name { display: flex; align-items: center; gap: 0.6rem; color: var(--lp-ink); font-size: 0.9rem; font-weight: 700; }
.lp-user-name:hover { color: var(--lp-blue); }
.lp-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-blue), var(--lp-sky));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}
.lp-user form { margin: 0; }

.lp-apps-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.lp-apps-hero h1 { margin-top: 0.9rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lp-apps-hero .lp-sub { margin-top: 0.75rem; }

.lp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding-bottom: 4rem; }

.lp-app {
    --c: var(--lp-blue);
    --c-rgb: var(--lp-blue-rgb);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 210px;
    padding: 1.6rem;
    border-radius: 20px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: 0 1px 2px rgba(15, 29, 58, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-app::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(var(--c-rgb), 0.07);
    transition: transform 0.35s ease;
}
.lp-app:hover { transform: translateY(-4px); border-color: rgba(var(--c-rgb), 0.4); box-shadow: var(--lp-shadow); }
.lp-app:hover::after { transform: scale(1.35); }
.lp-app:focus-visible { outline: 3px solid rgba(var(--c-rgb), 0.5); outline-offset: 3px; }

.lp-app-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--c-rgb), 0.12);
    color: var(--c);
    font-size: 1.65rem;
}
.lp-app h2 { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-app p { position: relative; z-index: 1; color: var(--lp-ink-soft); font-size: 0.92rem; flex: 1 1 auto; }
.lp-app-go {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--c);
    font-size: 0.88rem;
    font-weight: 700;
}
.lp-app-go i { transition: transform 0.2s ease; }
.lp-app:hover .lp-app-go i { transform: translateX(4px); }

/* L'application qui donne la vue d'ensemble occupe deux colonnes. */
.lp-app.is-featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    min-height: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #10275a 0%, var(--lp-blue) 60%, var(--lp-sky) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--lp-shadow-lg);
}
.lp-app.is-featured::after { background: rgba(255, 255, 255, 0.08); width: 260px; height: 260px; right: -80px; top: -110px; }
.lp-app.is-featured .lp-app-icon { width: 76px; height: 76px; flex-shrink: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 2.2rem; border-radius: 22px; }
.lp-app.is-featured h2 { font-size: 1.5rem; }
.lp-app.is-featured p { color: rgba(255, 255, 255, 0.82); margin-top: 0.35rem; }
.lp-app.is-featured .lp-app-go { margin-top: 0.85rem; color: #fff; }
.lp-app.is-featured .lp-badge { background: rgba(255, 255, 255, 0.16); color: #fff; }

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--lp-blue-rgb), 0.1);
    color: var(--lp-blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Couleurs des applications (champ « couleur » du module). */
.lp-app.c-primary   { --c: var(--lp-blue);  --c-rgb: var(--lp-blue-rgb); }
.lp-app.c-info      { --c: #2b8ccf;          --c-rgb: 43, 140, 207; }
.lp-app.c-success   { --c: var(--lp-green); --c-rgb: var(--lp-green-rgb); }
.lp-app.c-warning   { --c: #c98a1c;          --c-rgb: 201, 138, 28; }
.lp-app.c-danger    { --c: var(--lp-red);   --c-rgb: var(--lp-red-rgb); }
.lp-app.c-secondary { --c: #7a5cc4;          --c-rgb: 122, 92, 196; }

.lp-apps-empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    border-radius: 20px;
    border: 1px dashed var(--lp-line-strong);
    background: var(--lp-surface);
    color: var(--lp-ink-soft);
    text-align: center;
}
.lp-apps-empty i { display: block; margin-bottom: 0.75rem; color: var(--lp-muted); font-size: 2rem; }

@media (max-width: 900px) {
    .lp-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-user-name span { display: none; }
}
@media (max-width: 600px) {
    .lp-apps { grid-template-columns: minmax(0, 1fr); }
    .lp-app.is-featured { grid-column: auto; flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Lanceur d'applications : grille d'icônes (une tuile = une application)
   ========================================================================== */
.lp-launcher-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 2.25rem; text-align: center; }
.lp-launcher-hero h1 { margin-top: 0.85rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.lp-launcher-hero .lp-sub { margin: 0.6rem auto 0; font-size: 1rem; }

/* Message laissé par une redirection (par exemple un accès refusé), lu sur la page des applications. */
.lp-messages { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: -0.75rem auto 2rem; }
.lp .lp-message {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: var(--lp-bg-soft);
    color: var(--lp-ink-soft);
    font-size: 0.9rem;
}
.lp .lp-message.is-error { background: rgba(var(--lp-red-rgb), 0.1); color: var(--lp-red); }

.lp-launcher {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 2rem 1.25rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 4rem;
    list-style: none;
}

.lp-tile {
    --c: var(--lp-blue);
    --c2: var(--lp-sky);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 18px;
    text-align: center;
}
/* Survol : pas de cadre (il paraissait décentré autour d'une tuile plus large que l'icône) ;
   l'icône se soulève et le nom prend la couleur de l'application. */
.lp-tile:hover .lp-tile-name { color: var(--c); }
.lp-tile:focus-visible { outline: 3px solid rgba(var(--lp-blue-rgb), 0.45); outline-offset: 2px; }

.lp-tile-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--c2), var(--c));
    color: #fff;
    font-size: 2.3rem;
    box-shadow: 0 10px 22px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-tile:hover .lp-tile-icon { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 28px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.lp-tile:active .lp-tile-icon { transform: scale(0.97); }

.lp-tile-name { color: var(--lp-ink); font-size: 0.95rem; font-weight: 700; line-height: 1.25; transition: color 0.18s ease; }

/* Info-bulle : la description, au survol ou au clavier. */
.lp-tile-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 5;
    width: max-content;
    max-width: 240px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: var(--lp-tip-bg);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    box-shadow: var(--lp-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.lp-tile-tip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: var(--lp-tip-bg);
}
.lp-tile:hover .lp-tile-tip,
.lp-tile:focus-visible .lp-tile-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }

/* Couleurs des tuiles (champ « couleur » du module) */
.lp-tile.c-primary   { --c: #1d4e9f; --c2: #4a86e0; }
.lp-tile.c-info      { --c: #1b74b3; --c2: #4cb3e8; }
.lp-tile.c-success   { --c: #168a65; --c2: #3cc493; }
.lp-tile.c-warning   { --c: #c27a12; --c2: #f0b54a; }
.lp-tile.c-danger    { --c: #c23b37; --c2: #f07470; }
.lp-tile.c-secondary { --c: #6646b8; --c2: #9c7ce8; }

@media (max-width: 600px) {
    .lp-launcher { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0.5rem; }
    .lp-tile-icon { width: 68px; height: 68px; border-radius: 18px; font-size: 1.9rem; }
    .lp-tile-name { font-size: 0.85rem; }
    .lp-tile-tip { display: none; }
}

/* Une couleur propre à chaque application (prioritaire sur la couleur du module). */
.lp-tile.app-pilotage   { --c: #1d4e9f; --c2: #4a86e0; }
.lp-tile.app-todos      { --c: #168a65; --c2: #3cc493; }
.lp-tile.app-courriers  { --c: #1b74b3; --c2: #4cb3e8; }
.lp-tile.app-meetings   { --c: #6646b8; --c2: #9c7ce8; }
.lp-tile.app-projects   { --c: #c27a12; --c2: #f0b54a; }
.lp-tile.app-logiciels  { --c: #0e8a8a; --c2: #3cc6c0; }
.lp-tile.app-partners   { --c: #c23b62; --c2: #f0708f; }

/* ==========================================================================
   Thème sombre : même choix que dans l'application (clé « data-bs-theme »).
   ========================================================================== */
[data-bs-theme="dark"] {
    color-scheme: dark;
    --lp-ink: #e6ebf5;
    --lp-ink-soft: #b4bdd0;
    --lp-muted: #8b95ab;
    --lp-line: #2c3445;
    --lp-line-strong: #3b4558;
    --lp-bg: #151a24;
    --lp-bg-soft: #1a202c;
    --lp-surface: #1e2430;
    --lp-blue: #5b8fe6;
    --lp-blue-rgb: 91, 143, 230;
    --lp-sky: #6aa6f0;
    --lp-top-bg: rgba(19, 23, 31, 0.86);
    --lp-tip-bg: #2a3243;
    --lp-side-before: #2a1f22;
    --lp-side-after: #1a2a26;
    --lp-dot: #3b4558;
    --lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
    --lp-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .lp-btn:hover { background: #4a7fd6; }
[data-bs-theme="dark"] .lp-btn.is-ghost:hover { background: var(--lp-bg-soft); }
[data-bs-theme="dark"] .lp-btn.is-light { color: #1d4e9f !important; }
[data-bs-theme="dark"] .lp-pill.is-gold,
[data-bs-theme="dark"] .lp-i-gold { color: #f0b54a; }
[data-bs-theme="dark"] .lp-tile-tip { border: 1px solid var(--lp-line); }
[data-bs-theme="dark"] .lp-tile:hover .lp-tile-name { color: var(--c2); }

/* Fond sombre : de légers halos bleu, orange et vert, pour ne pas laisser un noir plat. */
[data-bs-theme="dark"] .lp-apps-page,
[data-bs-theme="dark"] .lp-hero {
    background:
        radial-gradient(45% 40% at 88% 0%, rgba(91, 143, 230, 0.16) 0%, transparent 65%),
        radial-gradient(40% 45% at 0% 95%, rgba(240, 160, 60, 0.12) 0%, transparent 65%),
        radial-gradient(35% 35% at 100% 100%, rgba(60, 196, 147, 0.10) 0%, transparent 65%),
        radial-gradient(30% 30% at 15% 15%, rgba(156, 124, 232, 0.08) 0%, transparent 65%),
        linear-gradient(180deg, #161b26 0%, #131823 100%);
}
[data-bs-theme="dark"] .lp-apps-page { background-attachment: fixed; }
[data-bs-theme="dark"] .lp-section.is-soft {
    background:
        radial-gradient(40% 60% at 100% 0%, rgba(60, 196, 147, 0.07) 0%, transparent 65%),
        radial-gradient(40% 60% at 0% 100%, rgba(240, 160, 60, 0.07) 0%, transparent 65%),
        var(--lp-bg-soft);
}

/* Bouton clair / sombre de la barre du haut. */
.lp-theme, .lp-rond {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-ink-soft);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 1.5px var(--lp-line);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lp-theme:hover, .lp-rond:hover { background: var(--lp-bg-soft); color: var(--lp-blue); }
.lp-theme:focus-visible, .lp-rond:focus-visible { outline: 3px solid rgba(var(--lp-blue-rgb), 0.45); outline-offset: 2px; }
.lp-theme .lp-theme-clair { display: none; }
[data-bs-theme="dark"] .lp-theme .lp-theme-clair { display: inline; }
[data-bs-theme="dark"] .lp-theme .lp-theme-sombre { display: none; }
.lp-top-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- Notifications en temps réel (choix des applications) ----------
   Cette page n'a pas Bootstrap : les classes que pose service_notification_temps_reel.js sont stylées ici. */
.lp-cloche {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--lp-ink-soft);
    font-size: 1.15rem;
    box-shadow: inset 0 0 0 1.5px var(--lp-line);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lp-cloche:hover { background: var(--lp-bg-soft); color: var(--lp-blue); }
.lp-cloche:focus-visible { outline: 3px solid rgba(var(--lp-blue-rgb), 0.45); outline-offset: 2px; }
.lp-cloche-nb {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--lp-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.lp-cloche-nb.d-none { display: none; }
.lp [data-notifications-alertes] .alert {
    position: relative;
    margin-bottom: 0.6rem;
    padding: 0.85rem 2.4rem 0.85rem 1rem;
    border-left: 4px solid var(--lp-blue);
    border-radius: 12px;
    background: var(--lp-surface);
    color: var(--lp-ink);
    box-shadow: var(--lp-shadow);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lp [data-notifications-alertes] .alert.show { opacity: 1; }
.lp [data-notifications-alertes] .alert-success { border-left-color: var(--lp-green); }
.lp [data-notifications-alertes] .alert-warning { border-left-color: var(--lp-gold); }
.lp [data-notifications-alertes] .alert-info { border-left-color: var(--lp-sky); }
.lp [data-notifications-alertes] .d-block { display: block; }
.lp [data-notifications-alertes] .fs-13 { color: var(--lp-ink-soft); font-size: 0.82rem; }
.lp [data-notifications-alertes] .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.lp [data-notifications-alertes] .btn-close::before { content: "\00d7"; }
.lp [data-notifications-alertes] .btn-close:hover { background: var(--lp-bg-soft); color: var(--lp-ink); }
