/* LESN: look of the prototype (Figma), on top of Bootstrap 5.3.
   Fonts: Fraunces (titles, gold italics) and Manrope (text), served by the site itself.
   Colours: navy for authority, gold for the accents, an action blue for the buttons. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --lesn-navy: #0a2a5e;
    --lesn-navy-dark: #00000a;
    --lesn-gold: #c9a84c;
    --lesn-gold-light: #f0cb72;
    --lesn-blue: #0041c8;
    --lesn-ink: #00000a;
    --lesn-muted: #5f6876;
    --lesn-line: #dfe3e9;
    --lesn-cream: #f7f1df;
    --lesn-soft: #fafafa;
    --lesn-serif: "Fraunces", Georgia, serif;
    --lesn-sans: "Manrope", Arial, sans-serif;
    --lesn-ease: cubic-bezier(.22, .61, .36, 1);

    /* Bootstrap uses our fonts and colours */
    --bs-body-font-family: var(--lesn-sans);
    --bs-body-color: var(--lesn-ink);
    --bs-body-bg: #fff;
    --bs-link-color-rgb: 0, 65, 200;
    --bs-border-color: var(--lesn-line);
    --bs-primary: var(--lesn-blue);
    --bs-primary-rgb: 0, 65, 200;
}

body { font-size: 1rem; line-height: 1.65; overflow-x: clip; } /* the gold seals overhang their photo: never a side scroll */

h1, h2, h3, .section-title, .page-title, .hero-title, .card-title, .cta-title {
    font-family: var(--lesn-serif);
    font-weight: 500;
    color: var(--lesn-navy);
    letter-spacing: -.01em;
}

/* The gold italic end of the titles: "notre rigueur." */
h1 em, h2 em, .hero-title em, .section-title em, .page-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--lesn-gold);
}

/* Small label above a title, with a gold hairline: — NOS EXPERTISES */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lesn-blue);
}

.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--lesn-gold); }
.kicker-center::after { content: ""; width: 2rem; height: 1px; background: var(--lesn-gold); }
.kicker-light { color: var(--lesn-gold-light); }
.kicker-inline { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lesn-blue); }

/* Buttons: square corners; an icon only when it adds meaning, text always centered */
.btn-lesn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.4rem;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 2px;
    transition: transform .3s var(--lesn-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-lesn .bi { font-size: 1.05em; line-height: 1; }
.btn-primary { --bs-btn-bg: var(--lesn-blue); --bs-btn-border-color: var(--lesn-blue); --bs-btn-hover-bg: var(--lesn-navy); --bs-btn-hover-border-color: var(--lesn-navy); --bs-btn-active-bg: var(--lesn-navy); }
.btn-outline-secondary { --bs-btn-color: var(--lesn-navy); --bs-btn-border-color: var(--lesn-line); --bs-btn-hover-bg: var(--lesn-navy); --bs-btn-hover-border-color: var(--lesn-navy); --bs-btn-hover-color: #fff; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-color: var(--lesn-navy); --bs-btn-hover-bg: var(--lesn-gold-light); --bs-btn-hover-border-color: var(--lesn-gold-light); }

/* ------------------------------------------------------------------------- Header */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--lesn-line);
    /* No backdrop-filter / transform here: they would trap the full-screen mobile menu (position: fixed) */
}

.site-header .navbar { --bs-navbar-padding-y: 1.1rem; }

/* Wider side margins, as on Yanka Prime: 20px from the edge on desktop, 24px on phones */
.container { --bs-gutter-x: 2.5rem; }
@media (max-width: 767.98px) { .container { --bs-gutter-x: 3rem; } }

/* The logo (static/img/brand, from the firm's files): its height drives the header; generous clear space around it */
:root { --lesn-logo-h: 2.4rem; }
@media (min-width: 992px) { :root { --lesn-logo-h: 2.9rem; } }
.brand-logo { padding: .35rem 0; margin-right: 1.5rem; transition: opacity .25s ease; }
.brand-logo:hover { opacity: .85; }
.brand-logo img, .menu-logo { display: block; height: var(--lesn-logo-h); width: auto; }
.footer-logo img { display: block; height: 3.2rem; width: auto; }

.site-header .nav-link {
    position: relative;
    margin-inline: .35rem;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--lesn-navy);
}

.site-header .nav-link::after {
    content: "";
    position: absolute;
    inset: auto .5rem .2rem;
    height: 2px;
    background: var(--lesn-gold);
    transform: scaleX(0);
    transition: transform .3s var(--lesn-ease);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }

/* Actions: same height, square icon buttons, then the main button */
.header-actions { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
@media (min-width: 992px) { .header-actions { margin-inline-start: 0; } }
@media (min-width: 1200px) { .site-header .nav-link { margin-inline: .6rem; } }
.btn-icon, .language-switcher .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--lesn-navy);
    border: 1px solid var(--lesn-line);
    border-radius: 2px;
}
.btn-icon:hover, .language-switcher .btn:hover { color: #fff; background: var(--lesn-navy); border-color: var(--lesn-navy); }
.btn-start { align-items: center; justify-content: center; height: 2.4rem; padding-inline: 1rem; font-weight: 700; border-radius: 2px; white-space: nowrap; }
.btn-round { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; font-size: 1.4rem; border-radius: 50%; }
.language-code { display: inline-block; width: 1.8rem; font-weight: 700; color: var(--lesn-blue); }

/* Below lg: the pages in a full-screen panel, big links with their icon */
@media (max-width: 991.98px) {
    .site-menu { --bs-offcanvas-width: 100vw; }
    .site-menu .offcanvas-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--lesn-line); }
    .site-menu .offcanvas-body { padding: 1.5rem; }
    .site-nav .nav-link { display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1rem 0; font-family: var(--lesn-serif); font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid var(--lesn-line); }
    .site-nav .nav-link .bi { font-size: 1.1rem; color: var(--lesn-gold); }
    .site-nav .nav-link::after { display: none; }
    .site-nav .nav-link.active { color: var(--lesn-blue); }
}

/* ------------------------------------------------------------------------- Sections */

.section { padding-block: 5rem; }
@media (min-width: 992px) { .section { padding-block: 7rem; } }
.section-soft { background: var(--lesn-soft); }
.section-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.12; margin-bottom: 1rem; }
.section-title-sm { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.section-subtitle { margin: 5rem 0 2rem; font-size: 1.6rem; }
.section-lead, .page-lead { max-width: 40rem; color: var(--lesn-muted); }
.text-muted-lesn { color: var(--lesn-muted); }

.page-head { padding-block: 5rem 3rem; }
@media (min-width: 992px) { .page-head { padding-block: 7rem 4rem; } }
.page-title { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem); line-height: 1.08; max-width: 18ch; }

/* Hero */
.hero { padding-block: 5rem 4.5rem; overflow: hidden; }
@media (min-width: 992px) { .hero { padding-block: 7rem 6rem; } }
.hero-title { font-size: clamp(2.8rem, 1.8rem + 4vw, 4.6rem); line-height: 1.02; margin-bottom: 1.5rem; }
.hero-lead { max-width: 32rem; color: var(--lesn-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; font-size: .85rem; color: var(--lesn-muted); }
.hero-proof strong { color: var(--lesn-navy); }
.avatars { display: flex; }
.avatars span { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; margin-left: -.5rem; font-size: .8rem; font-weight: 700; color: #fff; background: var(--lesn-navy); border: 2px solid #fff; border-radius: 50%; }
.avatars span:first-child { margin-left: 0; background: var(--lesn-gold); }
.avatars span:nth-child(2) { background: var(--lesn-blue); }

.hero-media { position: relative; margin: 0 0 0 auto; max-width: 30rem; padding: 1.25rem; }
.hero-media::before { content: ""; position: absolute; inset: 0 0 2.5rem 2.5rem; border: 1px solid var(--lesn-gold); }
.hero-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-card { position: absolute; left: -1.5rem; bottom: 3rem; display: flex; gap: .75rem; max-width: 18rem; padding: 1rem 1.2rem; font-size: .78rem; color: var(--lesn-muted); background: #fff; box-shadow: 0 1.5rem 3rem rgba(10, 42, 94, .15); }
.hero-card .bi { font-size: 1.2rem; color: var(--lesn-gold); }
.hero-card strong { color: var(--lesn-navy); font-family: var(--lesn-serif); font-size: .9rem; }

/* Gold seal ("LESN", "La sérénité, à chaque étape.") */
.seal { position: absolute; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.seal-gold img { width: 58%; height: auto; }
.seal-gold { top: -.5rem; right: -.5rem; width: 6rem; height: 6rem; font-family: var(--lesn-serif); font-size: .85rem; font-weight: 600; letter-spacing: .15em; color: var(--lesn-navy); background: var(--lesn-gold); box-shadow: 0 0 0 6px rgba(201, 168, 76, .25); }
.seal-text { top: 2rem; right: 2rem; width: 8.5rem; height: 8.5rem; padding: 1rem; font-size: .85rem; font-style: italic; letter-spacing: 0; line-height: 1.25; text-align: center; }

@media (max-width: 991.98px) {
    .hero-media { margin: 0 auto; }
    .hero-card { left: 0; }
    .seal-gold { right: .5rem; }
}
/* Phones: the photo first, as a wide banner, its card overlapping the bottom; then the promise */
@media (max-width: 767.98px) {
    .hero { padding-block: 1.5rem 3.5rem; }
    .hero .row { --bs-gutter-y: 2rem; }
    .hero-media { max-width: none; padding: .75rem .75rem 0 0; }
    .hero-media::before { inset: 0 0 1.5rem 1.5rem; }
    .hero-media { margin-bottom: 2.5rem; }
    .hero-media img { aspect-ratio: 1 / 1; object-position: center 15%; }
    .hero-media .seal { width: 4.5rem; height: 4.5rem; top: -.25rem; right: -.25rem; }
    .hero-card { left: .75rem; right: 2rem; bottom: -2.25rem; max-width: none; padding: .8rem 1rem; }
    .hero-title { font-size: clamp(2.4rem, 1.6rem + 5vw, 3rem); }
    .hero-actions .btn-lesn { flex: 1 1 100%; }
}

/* Key figures on navy */
.figures { background: var(--lesn-navy); color: #fff; }
.figures-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.figures-list li { display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.figures-list li:last-child { border-right: 0; }
.figure-value { font-family: var(--lesn-serif); font-size: 2.6rem; line-height: 1; color: var(--lesn-gold-light); }
.figure-label { margin-top: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* Cards */
.card-lesn {
    position: relative;
    padding: 2.25rem;
    background: #fff;
    border: 1px solid var(--lesn-line);
    transition: transform .35s var(--lesn-ease), box-shadow .35s ease, border-color .35s ease;
}

.card-lesn:hover { transform: translateY(-4px); border-color: var(--lesn-gold); box-shadow: 0 1.25rem 2.5rem rgba(10, 42, 94, .08); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.card-number { display: block; font-size: .75rem; font-weight: 700; color: var(--lesn-gold); letter-spacing: .1em; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; font-size: 1.15rem; color: var(--lesn-navy); background: var(--lesn-cream); border-radius: 50%; }
.card-title { font-size: 1.45rem; margin-bottom: .75rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-text { color: var(--lesn-muted); font-size: .92rem; }
.card-link {
    /* A link, but it reads as a button: soft background, centered text */
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1.25rem; padding: .6rem 1.1rem;
    font-size: .85rem; font-weight: 700; color: var(--lesn-navy); text-decoration: none;
    background: var(--lesn-cream); border: 1px solid transparent; border-radius: 2px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.card-link:hover, .card-lesn:hover .card-link { color: #fff; background: var(--lesn-blue); }
.card-navy .card-link { color: var(--lesn-navy); background: var(--lesn-gold-light); }
.card-navy { color: rgba(255, 255, 255, .8); background: var(--lesn-navy); border-color: var(--lesn-navy); }
.card-navy .card-title { color: #fff; }

.check-list { padding: 0; margin: 1.25rem 0 0; list-style: none; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.6rem; font-size: .92rem; border-top: 1px solid var(--lesn-line); }
.check-list li::before { content: "\F26E"; position: absolute; left: 0; top: .5rem; font-family: "bootstrap-icons"; color: var(--lesn-gold); }
.check-list-lg li { font-size: 1rem; padding-block: .7rem; }

/* Promise: photo on the left, navy on the right */
.promise { display: grid; grid-template-columns: 1fr 1fr; background: var(--lesn-navy); color: rgba(255, 255, 255, .8); }
.promise-media { position: relative; min-height: 32rem; }
.promise-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promise-content { padding: clamp(5rem, 8vw, 7rem) clamp(1.75rem, 6vw, 6rem); }
.promise-content .section-title { color: #fff; }
.promise-content .section-title em { color: var(--lesn-gold-light); }
.promise-content .section-lead { color: rgba(255, 255, 255, .7); }
.promise-steps { padding: 0; margin: 2rem 0 2.5rem; list-style: none; }
.promise-steps li { display: flex; gap: 1.5rem; padding: 1.1rem 0; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.promise-steps strong { font-family: var(--lesn-serif); font-size: 1.05rem; font-weight: 500; color: #fff; }
.step-number { font-size: .75rem; font-weight: 700; color: var(--lesn-gold); }

@media (max-width: 991.98px) {
    .promise { grid-template-columns: 1fr; }
    .promise-media { min-height: 22rem; }
}

/* Testimonials */
.quote-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; color: var(--lesn-gold); background: var(--lesn-cream); border-radius: 50%; }
.testimonial-quote { margin: 1.5rem 0 2rem; font-family: var(--lesn-serif); font-size: 1.02rem; line-height: 1.6; color: var(--lesn-navy); }
.testimonial-author { display: flex; align-items: center; gap: .8rem; padding-top: 1.25rem; font-size: .9rem; border-top: 1px solid var(--lesn-line); }
.testimonial-author small { color: var(--lesn-muted); }
.author-initial { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; font-weight: 700; color: #fff; background: var(--lesn-navy); border-radius: 50%; }
.author-initial-lg { width: 4rem; height: 4rem; font-family: var(--lesn-serif); font-size: 1.6rem; border: 2px solid var(--lesn-gold); }

/* Why LESN */
.why-item {
    /* Each commitment in its own warm card: the icon on the left, a gold edge, a lift on hover */
    display: flex; align-items: flex-start; gap: 1.1rem; height: 100%;
    padding: 1.5rem 1.4rem; background: var(--lesn-cream); border-left: 3px solid var(--lesn-gold); border-radius: 2px;
    transition: transform .35s var(--lesn-ease), box-shadow .35s ease, background-color .35s ease;
}
.why-item:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 1.25rem 2.5rem rgba(10, 42, 94, .08); }
.why-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3rem; height: 3rem; font-size: 1.25rem; color: #fff; background: var(--lesn-navy); border-radius: 50%; }
.col-sm-6:nth-child(even) > .why-item .why-icon { color: var(--lesn-navy); background: var(--lesn-gold); }
.why-title { font-size: 1.15rem; margin-bottom: .35rem; }
.why-item p { margin: 0; font-size: .9rem; color: var(--lesn-muted); }

/* Blue call-to-action band */
.section-cta { padding-block: 0 5rem; }
@media (min-width: 992px) { .section-cta { padding-block: 0 7rem; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 5vw, 4.5rem); color: rgba(255, 255, 255, .8); background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .1), transparent 40%), var(--lesn-blue); }
.cta-title { margin-bottom: .5rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); color: #fff; }

/* Expertises page */
.help-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: 2.5rem; background: var(--lesn-cream); border-left: 3px solid var(--lesn-gold); }
.help-title { font-size: 1.5rem; margin-bottom: .5rem; }

/* Process page */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; padding: 0; list-style: none; }
.team-quote { max-width: 46rem; margin: 4rem auto 0; text-align: center; }
.team-quote blockquote { font-family: var(--lesn-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-style: italic; line-height: 1.4; color: var(--lesn-navy); }
.team-quote figcaption { margin-top: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; color: var(--lesn-gold); }

/* About page */
.about-media { position: relative; margin: 0; padding: 1.25rem 1.25rem 0 0; }
.about-media::before { content: ""; position: absolute; inset: 0 0 2.5rem 2.5rem; border: 1px solid var(--lesn-gold); }
.about-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; }
.team-card { display: flex; align-items: center; gap: 1rem; width: 100%; height: 100%; text-align: start; color: inherit; cursor: pointer; }
.team-card-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.team-card-more { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--lesn-navy); background: var(--lesn-cream); border-radius: 50%; transition: background-color .25s ease, color .25s ease, transform .3s var(--lesn-ease); }
.team-card:hover .team-card-more, .team-card:focus-visible .team-card-more { color: #fff; background: var(--lesn-blue); transform: rotate(90deg); }
.team-photo { flex: none; width: 4rem; height: 4rem; object-fit: cover; border-radius: 50%; border: 2px solid var(--lesn-gold); }
.team-photo-lg { width: 7rem; height: 7rem; margin-inline: auto; }
.team-modal .modal-content { border: 0; border-top: 3px solid var(--lesn-gold); border-radius: 2px; }
.team-modal .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; }  /* above .modal-body (position: relative), which caught the click */
.team-modal .modal-body { padding: 2.75rem 2rem 2.25rem; text-align: center; }
.team-modal-name { margin: 1.25rem 0 .35rem; font-size: 1.6rem; }
.team-modal-bio { margin: 1.25rem auto 1.75rem; max-width: 26rem; color: var(--lesn-muted); }
.author-initial-xl { width: 7rem; height: 7rem; font-family: var(--lesn-serif); font-size: 2.6rem; border: 2px solid var(--lesn-gold); }

/* Articles */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-tabs a { padding: .45rem 1rem; font-size: .8rem; font-weight: 700; color: var(--lesn-navy); text-decoration: none; border: 1px solid var(--lesn-line); }
.filter-tabs a.active, .filter-tabs a:hover { color: #fff; background: var(--lesn-navy); border-color: var(--lesn-navy); }
.article-meta { margin: .75rem 0; font-size: .8rem; color: var(--lesn-muted); }
.article-container, .legal-container { max-width: 46rem; }
.article-content { margin-top: 2rem; font-size: 1.05rem; }
.back-link { font-size: .85rem; font-weight: 700; text-decoration: none; }

/* FAQ */
.faq { --bs-accordion-border-color: var(--lesn-line); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--lesn-navy); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.faq .accordion-button { font-family: var(--lesn-serif); font-size: 1.1rem; color: var(--lesn-navy); }
.faq .accordion-body { color: var(--lesn-muted); }

/* Contact */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; margin: 2rem 0; }

/* Contact page: the ways to reach us, in a navy card with a soft light and an icon per line */
.contact-aside {
    position: relative; height: 100%; padding: clamp(2rem, 4vw, 2.75rem); color: rgba(255, 255, 255, .8); overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(201, 168, 76, .25), transparent 45%), var(--lesn-navy);
}
.contact-aside-title { margin-bottom: .9rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); color: #fff; }
.contact-aside-lead { color: rgba(255, 255, 255, .75); }
.contact-lines { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .75rem; }
.contact-lines li { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 2px; transition: background-color .25s ease; }
.contact-lines li:hover { background: rgba(255, 255, 255, .1); }
.contact-line-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; font-size: 1.1rem; color: var(--lesn-navy); background: var(--lesn-gold-light); border-radius: 50%; }
.contact-line-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contact-lines a, .contact-lines li > span:last-child { color: #fff; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--lesn-gold-light); }
.contact-aside-note { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; font-size: .88rem; color: rgba(255, 255, 255, .8); border-left: 3px solid var(--lesn-gold); background: rgba(255, 255, 255, .05); }
.contact-aside-note .bi { font-size: 1.3rem; color: var(--lesn-gold-light); }
.contact-aside-note strong { color: #fff; }
.contact-list dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lesn-muted); padding-top: .2rem; }
.contact-list dd { margin: 0; font-weight: 600; color: var(--lesn-navy); }
.note-box { display: flex; gap: 1rem; padding: 1.25rem; font-size: .88rem; background: var(--lesn-cream); }
.note-box .bi { font-size: 1.3rem; color: var(--lesn-gold); }
.contact-form:hover { transform: none; }
.form-hint { font-size: .82rem; color: var(--lesn-muted); }
.form-label { font-size: .85rem; font-weight: 700; color: var(--lesn-navy); }
.form-control, .form-select { border-radius: 2px; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--lesn-blue); box-shadow: 0 0 0 3px rgba(0, 65, 200, .12); }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; font-size: .9rem; border: 1px solid var(--lesn-line); cursor: pointer; }
.choice:has(input:checked) { color: var(--lesn-navy); border-color: var(--lesn-blue); background: rgba(0, 65, 200, .05); }
.legal-section + .legal-section { margin-top: 1rem; }
.legal-section p:last-child { margin-bottom: 0; }

/* Legal pages: contents and the other pages, kept in view while scrolling (large screens) */
.legal-toc { position: sticky; top: 7rem; padding: 1.75rem; font-size: .9rem; background: var(--lesn-soft); }
.legal-toc ol, .legal-toc ul { display: grid; gap: .5rem; padding-left: 1.1rem; margin: 0; }
.legal-toc ul { padding-left: 0; list-style: none; }
.legal-toc a { color: var(--lesn-navy); text-decoration: none; }
.legal-toc a:hover { color: var(--lesn-blue); text-decoration: underline; }
.legal-section { scroll-margin-top: 7rem; }

/* ------------------------------------------------------------------------- Client area */

.client-bar { background: var(--lesn-navy); color: rgba(255, 255, 255, .8); font-size: .85rem; }
.client-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .7rem; }
.client-hello .bi { color: var(--lesn-gold); }
.client-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.client-links a, .client-links button { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem 0; font: inherit; font-weight: 600; color: rgba(255, 255, 255, .8); text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; }
.client-links a:hover, .client-links button:hover { color: #fff; }
.client-links a.active { color: #fff; border-bottom-color: var(--lesn-gold); }
.client-section { padding-block: 3rem 5rem; }
@media (min-width: 992px) { .client-section { padding-block: 4rem 7rem; } }

/* Login-type pages: a narrow column */
.auth-container { max-width: 30rem; }
.auth-container-wide { max-width: 56rem; }
.auth-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.auth-title em { font-style: italic; color: var(--lesn-gold); }
.auth-card { margin-top: 1.5rem; }
.auth-card:hover { transform: none; }
.auth-note { display: flex; gap: .6rem; margin-top: 1.5rem; font-size: .85rem; color: var(--lesn-muted); }
.token-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.otp-steps { padding-left: 1.2rem; margin: 1.5rem 0; }
.otp-steps li { padding-block: .3rem; }
.otp-qr { width: 13rem; padding: .75rem; background: #fff; border: 1px solid var(--lesn-line); }
.otp-qr svg { display: block; width: 100%; height: auto; }

/* Status of a case (diagram StatutDossier) */
.status-badge { display: inline-block; padding: .35rem .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.status-new { color: var(--lesn-navy); }
.status-analysis, .status-in_progress { color: var(--lesn-blue); background: rgba(0, 65, 200, .05); }
.status-waiting_documents { color: #8a6a10; background: var(--lesn-cream); }
.status-finalized { color: #1d6b3a; background: #eaf5ee; }
.status-closed { color: var(--lesn-muted); }

/* Cases list */
.case-card { display: block; height: 100%; color: inherit; text-decoration: none; }
.case-card:hover { color: inherit; }
.case-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.case-ref { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--lesn-gold); }
.case-meta { font-size: .85rem; color: var(--lesn-muted); }
.case-alert { margin: 1rem 0 0; font-size: .85rem; font-weight: 700; color: #8a6a10; }
.case-open { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.25rem; padding: .6rem 1.1rem; font-size: .85rem; font-weight: 700; color: var(--lesn-navy); background: var(--lesn-cream); border-radius: 2px; transition: background-color .25s ease, color .25s ease; }
a:hover .case-open, .case-open:hover { color: #fff; background: var(--lesn-blue); }
.case-progress { margin-top: 1rem; }
.progress-lesn { height: .4rem; border-radius: 0; background: var(--lesn-line); }
.progress-lesn .progress-bar { background: var(--lesn-gold); transition: width .6s var(--lesn-ease); }

/* Case page */
.case-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 2rem; }
.case-head .page-title { max-width: none; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
#dossier .card-lesn:hover { transform: none; }
.case-steps { display: grid; gap: .25rem; padding: 0; margin: 1.5rem 0 0; list-style: none; counter-reset: none; }
.case-steps li { display: flex; gap: 1rem; padding: .65rem 0; color: var(--lesn-muted); border-top: 1px solid var(--lesn-line); }
.case-steps .step-dot { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; font-size: .8rem; font-weight: 700; border: 1px solid var(--lesn-line); border-radius: 50%; }
.case-steps .done { color: var(--lesn-ink); }
.case-steps .done .step-dot { color: #fff; background: var(--lesn-gold); border-color: var(--lesn-gold); }
.case-steps .current { color: var(--lesn-navy); }
.case-steps .current .step-dot { color: #fff; background: var(--lesn-blue); border-color: var(--lesn-blue); box-shadow: 0 0 0 4px rgba(0, 65, 200, .15); }
.piece-list, .doc-list { display: grid; padding: 0; margin: 0; list-style: none; }
.piece-item, .doc-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--lesn-line); }
.piece-item > div, .doc-item > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-item > .bi { font-size: 1.3rem; color: var(--lesn-gold); }
.doc-old { opacity: .6; }
.doc-badge { display: inline-block; padding: .2rem .55rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.doc-pending { color: var(--lesn-navy); background: var(--lesn-soft); }
.doc-received { color: var(--lesn-blue); background: rgba(0, 65, 200, .06); }
.doc-verified { color: #1d6b3a; background: #eaf5ee; }
.doc-rejected { color: #a12a2a; background: #fbecec; }
.advisor-name { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--lesn-navy); }
.advisor-initial { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; font-family: var(--lesn-serif); color: var(--lesn-navy); background: var(--lesn-gold); border-radius: 50%; }

/* Upload modal */
#upload-modal .modal-content { border: 0; border-radius: 0; }
#upload-modal .modal-title { font-size: 1.4rem; }
.upload-piece { padding: .75rem 1rem; font-weight: 700; color: var(--lesn-navy); background: var(--lesn-cream); }

/* ------------------------------------------------------------------------- Footer */

.site-footer { padding-block: 5.5rem 2.5rem; font-size: .9rem; color: rgba(255, 255, 255, .7); background: var(--lesn-navy-dark); }
.footer-about { max-width: 22rem; margin: 2rem 0 1rem; }
.footer-city { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lesn-gold); }
.footer-title { margin-bottom: 1.25rem; font-family: var(--lesn-sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover { color: var(--lesn-gold-light); }
.footer-contact .bi { margin-right: .4rem; color: var(--lesn-gold); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; font-size: .78rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-motto { font-family: var(--lesn-serif); font-style: italic; color: var(--lesn-gold); }

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

/* ------------------------------------------------------------------------- Page loader and entry animations */
/* The loader exists only with JavaScript (class "js"), and only on the first page of the visit */
.page-loader { display: none; }
.js:not(.loader-seen) .page-loader {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; place-items: center;
    background: #fff;
    transition: opacity .6s var(--lesn-ease), visibility .6s;
}
.js.is-ready .page-loader { opacity: 0; visibility: hidden; }
.page-loader-mark { position: relative; width: clamp(8rem, 30vw, 11rem); aspect-ratio: 1; }
.page-loader-mark img { position: absolute; inset: 0; margin: auto; }
.page-loader-ring { width: 100%; height: 100%; opacity: .35; animation: lesn-rotate 6s linear infinite; }  /* the name turns */
.page-loader-monogram { width: 72%; height: 72%; animation: lesn-breathe 2.4s ease-in-out infinite; }
@keyframes lesn-rotate { to { transform: rotate(360deg); } }
@keyframes lesn-breathe { 50% { transform: scale(1.04); } }

/* Hero entry: each part rises in turn once the page is ready (the title line by line) */
@keyframes lesn-rise { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }
@keyframes lesn-reveal { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.04); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes lesn-pop { 0% { opacity: 0; transform: scale(.6) rotate(-20deg); } 70% { transform: scale(1.08) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes lesn-slide { from { opacity: 0; transform: translateX(-1.5rem); } to { opacity: 1; transform: none; } }

.js [data-enter] { opacity: 0; }
.js.is-ready [data-enter] { animation: lesn-rise .9s var(--lesn-ease) both; animation-delay: calc(var(--enter-order, 0) * 120ms + 100ms); }
.js.is-ready [data-enter="reveal"] { animation-name: lesn-reveal; animation-duration: 1.2s; }
.js.is-ready [data-enter="pop"] { animation-name: lesn-pop; animation-duration: .8s; }
.js.is-ready [data-enter="slide"] { animation-name: lesn-slide; }
.hero-title .line { display: block; }

@media (prefers-reduced-motion: reduce) {
    .page-loader-ring, .page-loader-monogram { animation: none; }
    .js [data-enter], .js.is-ready [data-enter] { opacity: 1; animation: none; }
}

/* Password fields: show / hide button, live rules */
.password-group .form-control { border-right: 0; }
.btn-password-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; color: var(--lesn-muted); background: #fff; border: var(--bs-border-width) solid var(--bs-border-color); border-left: 0; }
.btn-password-toggle:hover, .btn-password-toggle[aria-pressed="true"] { color: var(--lesn-blue); background: #fff; }
.password-group .form-control.is-invalid + .btn-password-toggle { border-color: var(--bs-form-invalid-border-color); }
.password-group:focus-within .btn-password-toggle { border-color: #86b7fe; }
.password-rules { list-style: none; margin: .75rem 0 0; padding: 0; font-size: .85rem; color: var(--lesn-muted); }
.password-rules li { display: flex; align-items: flex-start; gap: .4rem; padding: .15rem 0; transition: color .25s ease; }
.password-rules .bi { flex: none; width: 1rem; margin-top: .15rem; text-align: center; transition: transform .25s var(--lesn-ease); }
.password-rules li.is-ok { color: #157347; }
.password-rules li.is-ok .bi { color: #198754; transform: scale(1.1); }

/* Error pages */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-card { max-width: 38rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); text-align: center; background: #fff; border: 1px solid var(--lesn-line); border-top: 3px solid var(--lesn-gold); }
.error-logo { display: block; width: 12rem; height: auto; margin: 0 auto 2rem; }
.error-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; font-size: 1.6rem; color: var(--lesn-navy); background: var(--lesn-cream); border-radius: 50%; }
.error-code { margin: 1rem 0 .25rem; font-family: var(--lesn-serif); font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--lesn-gold); }
.error-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .75rem; }
.error-text { color: var(--lesn-muted); margin-bottom: 2rem; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Security: profile actions, personal questions, lost phone */
.security-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.security-action { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; color: var(--lesn-navy); text-decoration: none; background: var(--lesn-cream); border: 1px solid transparent; border-radius: 2px; transition: border-color .25s ease, background-color .25s ease; }
.security-action:hover { background: #fff; border-color: var(--lesn-gold); color: var(--lesn-navy); }
.security-action strong { display: block; font-size: .9rem; }
.security-action small { display: block; font-size: .78rem; color: var(--lesn-muted); }
.security-action-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; color: #fff; background: var(--lesn-navy); border-radius: 50%; }
.question-pair { margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--lesn-line); }
.question-number { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; margin-right: .35rem; font-size: .75rem; color: var(--lesn-navy); background: var(--lesn-gold-light); border-radius: 50%; }
.question-asked { display: flex; gap: .6rem; padding: 1rem 1.1rem; font-family: var(--lesn-serif); font-size: 1.1rem; color: var(--lesn-navy); background: var(--lesn-cream); border-left: 3px solid var(--lesn-gold); }
.auth-help { margin-top: 1.25rem; text-align: center; font-size: .9rem; }
.auth-help a { font-weight: 600; }
.security-action-icon-muted { color: var(--lesn-navy); background: var(--lesn-line); }
.erasure-steps { padding-left: 1.2rem; margin: 0 0 1.5rem; font-size: .92rem; color: var(--lesn-muted); }
.erasure-steps li { padding: .25rem 0; }
.auth-card .note-box { margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- very pale tint (Why LESN) */
.section-tint { background: linear-gradient(180deg, #f4f7fc 0%, #f8f9fc 100%); border-top: 1px solid #eef1f6; }

/* ---------------------------------------------------------------- "Nos réalisations": slider */
.section-showcase { position: relative; background: linear-gradient(180deg, #fff 0%, #fbf8ef 100%); }
.section-showcase::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--lesn-gold), transparent); opacity: .6; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.25rem; }
.slider-controls { display: flex; gap: .5rem; flex-shrink: 0; }
.slider-controls .btn-icon:disabled { opacity: .35; pointer-events: none; }
.slider-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 1.25rem;
    list-style: none; margin: 0; padding: .25rem .25rem 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--lesn-blue); outline-offset: 4px; }
@media (min-width: 576px) { .slider-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (min-width: 992px) { .slider-track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.slide { scroll-snap-align: start; }
.slide-card {
    position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3;
    width: 100%; padding: 0; border: 0; text-align: left; background: var(--lesn-navy); color: #fff; text-decoration: none;
    box-shadow: 0 10px 30px -18px rgba(10, 42, 94, .55);
}
.slide-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--lesn-ease); }
.slide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 42, 94, 0) 45%, rgba(10, 42, 94, .88) 100%); }
.slide-card:hover img, .slide-card:focus-visible img { transform: scale(1.05); }
.slide-badge {
    position: absolute; top: .9rem; left: .9rem; z-index: 1; display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--lesn-navy);
    font-size: .75rem; font-weight: 700;
}
.slide-badge .bi { color: var(--lesn-gold); }
.slide-text { position: absolute; left: 1.1rem; right: 3.5rem; bottom: 1rem; z-index: 1; line-height: 1.35; }
.slide-text strong { font-family: var(--lesn-serif); font-size: 1.15rem; font-weight: 600; }
.slide-text span { font-size: .85rem; opacity: .85; }
.slide-zoom {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 1; width: 2.25rem; height: 2.25rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--lesn-gold); color: var(--lesn-navy);
    transform: scale(.8); opacity: 0; transition: transform .3s var(--lesn-ease), opacity .3s ease;
}
.slide-card:hover .slide-zoom, .slide-card:focus-visible .slide-zoom { transform: none; opacity: 1; }
.slider-progress { height: 2px; background: var(--lesn-line); margin-top: .5rem; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--lesn-gold); transition: width .3s ease; }
@media (max-width: 575.98px) { .showcase-head { flex-direction: column; align-items: flex-start; } }
.lightbox .modal-content { background: var(--lesn-navy); color: #fff; border: 0; border-radius: 4px; overflow: hidden; }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; background: #061a3b; }
.lightbox .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.lightbox-text { padding: 1rem 1.25rem 1.25rem; }
.lightbox-text h3 { color: #fff; }
.lightbox-text p { opacity: .8; }

/* ---------------------------------------------------------------- chat bubble (live chat with the firm) */
.chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.chat-toggle {
    position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0;
    background: var(--lesn-navy); color: #fff; font-size: 1.45rem; display: grid; place-items: center;
    box-shadow: 0 12px 28px -10px rgba(10, 42, 94, .7); transition: transform .3s var(--lesn-ease), background-color .25s ease;
}
.chat-toggle:hover { transform: translateY(-2px); background: var(--lesn-blue); }
.chat-toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lesn-gold); opacity: .55; }
.chat-badge {
    position: absolute; top: -2px; right: -2px; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px;
    background: var(--lesn-gold); color: var(--lesn-navy); font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.chat-panel {
    width: min(23rem, calc(100vw - 2.5rem)); height: min(32rem, calc(100vh - 7rem)); display: flex; flex-direction: column;
    background: #fff; border-radius: 6px; overflow: hidden; border-top: 3px solid var(--lesn-gold);
    box-shadow: 0 24px 48px -16px rgba(10, 42, 94, .45);
}
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--lesn-navy); color: #fff; }
.chat-avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-avatar img { width: 1.7rem; height: 1.7rem; }
.chat-title { margin: 0; font-family: var(--lesn-serif); font-weight: 600; }
.chat-subtitle { margin: 0; font-size: .8rem; opacity: .8; }
.chat-subtitle::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #3ecf8e; margin-right: .35rem; }
.chat-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.1rem; opacity: .8; }
.chat-close:hover { opacity: 1; }
.chat-messages { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--lesn-soft); }
.chat-message { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; font-size: .92rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.chat-message.from-firm { align-self: flex-start; background: #fff; border: 1px solid var(--lesn-line); border-bottom-left-radius: 4px; }
.chat-message.from-firm.is-automatic { background: var(--lesn-cream); border-color: #efe5c8; }
.chat-message.from-me { align-self: flex-end; background: var(--lesn-blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--lesn-line); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--lesn-line); border-radius: 999px; padding: .5rem .9rem; }
.chat-form input:focus { outline: 2px solid var(--lesn-blue); outline-offset: 1px; }
.chat-form button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--lesn-gold); color: var(--lesn-navy); flex-shrink: 0; }
.chat-note { font-size: .72rem; color: var(--lesn-muted); text-align: center; padding: 0 .75rem .6rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } .slide-card img, .chat-toggle { transition: none; } }
