/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
    --ink:        #3e5254;
    --ink-mid:    #6E6656;
    --ink-soft:   #8A8272;
    --teal:       #5F8B84;
    --teal-light: #E4EDEA;
    --teal-dark:  #4E7770;
    --sand:       #C89B6E;
    --sand-light: #F3E9D7;
    --bg:         #FAF7F1;
    --bg-warm:    #F3ECE0;
    --white:      #ffffff;
    --border:     #ECE3D3;
    --border-strong: #E3D6C0;
    --cream:      #F6F0E7;
    --danger:     #a14343;
    --success:    #3f7b64;
    --mint:       #93DEC9;

    --shadow-sm:  0 2px 8px rgba(44,54,62,.06);
    --shadow-md:  0 20px 44px -18px rgba(44,54,62,.35);
    --shadow-lg:  0 40px 80px -30px rgba(44,54,62,.45);

    --r-sm: 11px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;

    --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

    --max-w: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────────── */
.contain {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: .75rem;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: .94rem;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--cream);
}
.btn-primary:hover { background: #344648; color: var(--cream); }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--ink);
}
.btn-outline:hover { background: var(--bg-warm); }

.btn-ghost {
    background: transparent;
    color: #5A6660;
}
.btn-ghost:hover { color: var(--ink); }

.btn-light {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,.35);
    color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

.btn-link {
    background: transparent;
    border: none;
    color: var(--teal-dark);
    padding: .7rem .25rem;
    font-weight: 700;
}
.btn-link:hover { color: #3C5F5A; }

.btn-lg { padding: .95rem 1.65rem; font-size: .95rem; border-radius: 13px; }

/* Compatibilité avec les vues applicatives existantes. */
.button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.35rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.button-primary {
    background: var(--ink);
    color: var(--white);
}

.button-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--ink-mid);
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(250,247,241,.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: background .3s, box-shadow .3s;
}

.site-header.is-scrolled {
    background: rgba(250,247,241,.94);
    box-shadow: 0 1px 12px rgba(44,54,62,.05);
}

.header-inner {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    min-height: 70px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.brand img { height: 46px; width: auto; }
.site-header .brand img { height: 46px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: .75rem;
    flex-wrap: wrap;
}

.nav-link {
    font-size: .9rem;
    font-weight: 600;
    color: #5A6660;
    padding: 0;
    border-radius: 0;
    transition: color .2s;
}
.nav-link::after { display: none; }
.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    background: transparent;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header-cta .btn-primary {
    padding: .7rem 1.25rem;
    font-size: .875rem;
    border-radius: 11px;
}

.nav-toggle {
    display: none;
    background: rgba(95,139,132,.12);
    border: none;
    padding: .5rem;
    border-radius: var(--r-sm);
    color: var(--ink);
    cursor: pointer;
    margin-left: auto;
    transition: background .15s;
}
.nav-toggle:hover { background: rgba(95,139,132,.2); }
.nav-toggle[aria-expanded="true"] { background: rgba(95,139,132,.2); }

/* ─────────────────────────────────────────────
   FLASH MESSAGES
───────────────────────────────────────────── */
.flash {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin: 1rem auto 0;
    padding: .85rem 1.1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 700;
    font-size: .9rem;
}
.flash-success { color: var(--success); }
.flash-error,
.flash-warning  { color: var(--danger); }

/* ─────────────────────────────────────────────
   MAIN
───────────────────────────────────────────── */
main { min-height: 72vh; }

/* ─────────────────────────────────────────────
   HERO (vitrine)
───────────────────────────────────────────── */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroShotIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero {
    position: relative;
    background: linear-gradient(180deg, #FBF6EE 0%, #F4EAD9 60%, #FAF7F1 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-text {
    width: min(920px, 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 4.875rem) 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroIn .7s ease-out both;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 1.5rem;
    padding: .4rem .85rem;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    width: fit-content;
}

.hero-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5.2vw, 3.625rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.04;
    margin-bottom: 0;
    max-width: 18ch;
}

.hero-text h1 em,
.hero-text h1 span {
    font-style: normal;
    color: var(--teal-dark);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--ink-mid);
    line-height: 1.6;
    max-width: 600px;
    margin: 1.5rem auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: center;
    justify-content: center;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.6rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.hero-proof-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hero-proof-item strong { font-weight: 600; color: inherit; }

.hero-shot {
    position: relative;
    width: min(1120px, 100% - var(--gutter) * 2);
    margin: 2.875rem auto 0;
    padding-inline: clamp(12px, 5vw, 56px);
    animation: heroShotIn .85s ease-out both;
    animation-delay: .15s;
    overflow: visible;
}

.hero-float {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid #E7DECF;
    border-radius: 14px;
    box-shadow: 0 20px 44px -18px rgba(44,54,62,.45);
    pointer-events: none;
    max-width: 220px;
}

.hero-float--budget {
    top: 64px;
    right: clamp(0px, 1vw, 8px);
    padding: 14px 16px;
}

.hero-float-label {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9A9082;
}

.hero-float-value {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-top: 3px;
}

.hero-float-meta {
    font-size: .75rem;
    font-weight: 700;
    color: var(--teal);
    margin-top: 1px;
}

.hero-float--index {
    bottom: 48px;
    left: clamp(0px, 1vw, 8px);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.hero-float-check {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-head);
}

.hero-float--index strong {
    display: block;
    font-size: .85rem;
    color: var(--ink);
}

.hero-float--index span {
    display: block;
    font-size: .75rem;
    color: var(--ink-soft);
}

.hero-browser {
    width: 88%;
    max-width: 960px;
    margin-inline: auto;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 40px 90px -34px rgba(44,54,62,.5);
    border: 1px solid #E4DAC8;
    border-bottom: none;
    background: var(--white);
    line-height: 0;
}

.hero-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    background: #F1EDE4;
    border-bottom: 1px solid #E7DECF;
}

.hero-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: none;
}
.hero-browser-dot--r { background: #E4B7A0; }
.hero-browser-dot--y { background: #EBD6A6; }
.hero-browser-dot--g { background: #B7CFC0; }

.hero-browser-url {
    margin-left: 12px;
    font-size: .75rem;
    color: #9A9082;
    font-weight: 600;
}

.hero-browser img {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1420 / 932;
    object-fit: contain;
    object-position: top center;
    display: block;
}

/* Legacy UI mock helpers (autres pages) */
.hero-ui { display: none; }
.ui-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}
.ui-card--main { width: 100%; max-width: 430px; }
.ui-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.ui-tag {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: .25rem .7rem;
    border-radius: 999px;
}
.ui-dots { display: flex; gap: 4px; }
.ui-dots i {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
}
.ui-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    padding: .35rem;
    border-radius: 999px;
    background: var(--bg);
    margin-bottom: 1.25rem;
}

.ui-tabs span {
    display: flex;
    justify-content: center;
    padding: .45rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    color: var(--ink-soft);
    white-space: nowrap;
}

.ui-tabs .is-active {
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Planning rows */
.ui-planning { display: flex; flex-direction: column; gap: .65rem; }

.ui-row {
    display: grid;
    grid-template-columns: 32px 1fr 1fr;
    gap: .5rem;
    align-items: center;
}

.ui-av {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--av-bg);
    color: var(--av-c);
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}

.ui-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: var(--r-sm);
    font-size: .7rem;
    font-weight: 700;
    transition: transform .15s;
}
.ui-bar:hover { transform: scale(1.04); }

.ui-bar--full  { background: var(--teal-light); color: var(--teal-dark); }
.ui-bar--half  { background: #f0f2f2; color: var(--ink-soft); }
.ui-bar--off   { background: var(--sand-light); color: #a07040; }

.ui-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.ui-summary div {
    padding: .9rem;
    border-radius: var(--r-sm);
    background: var(--bg);
    transition: background .15s;
}
.ui-summary div:hover { background: rgba(223,236,236,.4); }

.ui-summary span {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.ui-summary strong {
    display: block;
    font-size: .95rem;
    color: var(--ink);
}

/* Floating badges */
.ui-float {
    position: absolute;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(228,221,213,.72);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(38,56,60,.12);
    padding: .8rem 1.05rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 190px;
    z-index: 3;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: heroBadgeIn .6s ease-out both;
}

.ui-float--stat {
    top: -20px;
    right: -24px;
    animation-delay: .7s;
    animation-name: heroBadgeIn, floatY;
    animation-duration: .6s, 5s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
}

.ui-float--module {
    bottom: -18px;
    left: -20px;
    animation-delay: .9s;
    animation-name: heroBadgeIn, floatYAlt;
    animation-duration: .6s, 4.5s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
}

.ui-float svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: .45rem;
    border-radius: 999px;
    background: var(--teal-light);
}

.ui-float div {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    line-height: 1.2;
}

.ui-float strong { display: block; font-size: .92rem; color: var(--ink); }
.ui-float span   { display: block; font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }

.ui-module-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   TRUST / LANDING SECTIONS
───────────────────────────────────────────── */
.trust-strip {
    border-bottom: 1px solid var(--border);
}

.trust-inner {
    width: min(1100px, 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: 2.1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    flex-wrap: wrap;
}

.trust-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #A79E8C;
}

.trust-partner {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #B4AB99;
}

.landing-section {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: clamp(4.5rem, 8vw, 5.5rem) 0;
}

#fonctionnement,
#modules,
#how,
#features {
    scroll-margin-top: 5.5rem;
}

.landing-section--warm {
    width: 100%;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section--warm .landing-section-inner {
    width: min(1080px, 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: clamp(4.5rem, 8vw, 5.5rem) 0;
}

.landing-section--ink {
    width: 100%;
    background: #2B353D;
    color: #E7E1D4;
}

.landing-section--ink .landing-section-inner {
    width: min(1100px, 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: clamp(4.5rem, 8vw, 5.25rem) 0;
}

.landing-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.landing-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 3.5vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0;
}

.landing-section--ink .landing-head h2 { color: #fff; }

.landing-head p {
    font-size: 1rem;
    line-height: 1.6;
    color: #7A7263;
    margin: 1rem 0 0;
}

.landing-section--ink .landing-head p { color: #AEB9BC; }

.section-label--mint {
    color: var(--mint);
}

.landing-more {
    text-align: center;
    margin-top: 2.5rem;
}

.landing-more--light .btn-link {
    color: var(--mint);
}
.landing-more--light .btn-link:hover {
    color: #fff;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.suite-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-height: 184px;
}

.suite-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suite-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.suite-badge {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
}
.suite-badge--live { color: var(--teal-dark); background: var(--teal-light); }
.suite-badge--preview { color: #6C7780; background: #EEF0ED; }
.suite-badge--soon { color: #A08E70; background: #F0E7D6; }

.suite-cat {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #A79E8C;
}

.suite-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: -.35rem 0 0;
}

.suite-card p {
    font-size: .875rem;
    line-height: 1.55;
    color: #7A7263;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.how-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
}

.how-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
}

.how-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.1rem 0 .5rem;
}

.how-card p {
    font-size: .875rem;
    line-height: 1.55;
    color: #7A7263;
}

.equal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.equal-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0;
}

.equal-copy > p {
    font-size: 1rem;
    line-height: 1.65;
    color: #7A7263;
    margin: 1.1rem 0 1.5rem;
}

.equal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.equal-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    font-weight: 600;
    color: #4A4A42;
}

.equal-check {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 7px;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equal-panel {
    background: linear-gradient(150deg, #5F8B84, #4E7770);
    border-radius: 20px;
    padding: 2.4rem;
    color: #EAF2EF;
}

.equal-panel-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #BFDBD5;
}

.equal-panel-value {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    margin: .35rem 0 .25rem;
}

.equal-panel-sub {
    font-size: .875rem;
    color: #CFE3DF;
    margin-bottom: 1.6rem;
}

.equal-bar {
    height: 10px;
    background: rgba(255,255,255,.2);
    border-radius: 20px;
    overflow: hidden;
}

.equal-bar > span {
    display: block;
    width: 74%;
    height: 100%;
    background: var(--cream);
    border-radius: 20px;
}

.equal-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #BFDBD5;
    margin-top: .5rem;
    font-weight: 600;
}

.quote-section {
    width: 100%;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-inner {
    width: min(820px, 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 4.75rem) 0;
    text-align: center;
}

.quote-inner blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    line-height: 1.4;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.005em;
    margin: 0;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin-top: 1.75rem;
}

.quote-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
}

.quote-author strong {
    display: block;
    font-size: .95rem;
    color: var(--ink);
}

.quote-author span {
    display: block;
    font-size: .85rem;
    color: var(--ink-soft);
    text-align: left;
}

.stats-band {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin: 1rem auto 0;
    padding-bottom: clamp(4rem, 7vw, 5.75rem);
}

.stats-band-inner {
    background: #2B353D;
    border-radius: 24px;
    padding: clamp(2.2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats-band strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--mint);
    letter-spacing: -.01em;
}

.stats-band p {
    font-size: .875rem;
    line-height: 1.5;
    color: #C4CDCF;
    margin-top: .5rem;
}

.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.faq-search {
    margin-bottom: 1.15rem;
}

.faq-search input {
    width: 100%;
    padding: .85rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.faq-search input::placeholder {
    color: var(--ink-soft);
}

.faq-search input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.faq-empty {
    margin-top: 1rem;
    text-align: center;
    font-size: .92rem;
    color: var(--ink-soft);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex: none;
    font-size: 1.35rem;
    color: var(--teal);
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 1.35rem 1.35rem;
    font-size: .9rem;
    line-height: 1.6;
    color: #7A7263;
}

.access-panel {
    background: linear-gradient(140deg, #FBF6EE, #F1E3CE 60%, #E4EDEA);
    border: 1px solid #ECDFCC;
    border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 3.5rem);
}

.access-panel .waitlist-wrap {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    width: 100%;
}

.access-panel .waitlist-text h2 {
    color: var(--ink);
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
}

.access-panel .waitlist-text > p {
    color: var(--ink-mid);
}

.access-panel .waitlist-perks li { color: #4A4A42; }
.access-panel .section-label--light { color: var(--teal); }

.access-panel .waitlist-card {
    background: var(--white);
    border: 1px solid #E7DECF;
    border-radius: 18px;
    box-shadow: none;
}

.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.home-pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.home-pricing-card.is-highlight {
    border-color: #D5E3DF;
    box-shadow: 0 16px 40px -24px rgba(78,119,112,.45);
}

.home-pricing-pill {
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--teal);
    padding: 5px 11px;
    border-radius: 20px;
    margin-bottom: .35rem;
}

.home-pricing-card h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}

.home-pricing-for {
    font-size: .875rem;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}

.home-pricing-amount {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.home-pricing-amount strong {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}

.home-pricing-amount span {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.home-pricing-divider {
    height: 1px;
    background: #EEE6D8;
    margin: 1rem 0;
}

.home-pricing-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.home-pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .875rem;
    line-height: 1.45;
    color: #4A4A42;
}

.home-pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.home-pricing-card .btn-outline {
    background: var(--bg-warm);
    border-color: #E7DECF;
}

.product-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.product-roadmap-card {
    background: #333F48;
    border: 1px solid #3F4B54;
    border-radius: 16px;
    padding: 1.35rem;
}

.product-roadmap-q {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--mint);
}

.product-roadmap-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: .5rem 0 .35rem;
}

.product-roadmap-card p {
    font-size: .82rem;
    line-height: 1.5;
    color: #AEB9BC;
}

/* ─────────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────────── */
.section {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 5rem 0;
}

.section-head {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--ink);
    margin: .5rem 0 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--ink-mid);
}

.mod-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px rgba(38,56,60,.07);
}
.mod-icon--teal { background: var(--teal-light); color: var(--teal-dark); }
.mod-icon--sand { background: var(--sand-light); color: #b07a3e; }
.mod-icon--ink  { background: #eef0f0; color: var(--ink-mid); }

.mod-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}

/* ─────────────────────────────────────────────
   PUBLIC PAGES
───────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(160deg, #FBF6EE 0%, #F3E9D7 50%, #E7EFEB 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero-inner {
    width: min(860px, 100% - var(--gutter) * 2);
    margin-inline: auto;
    text-align: center;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -.03em;
    color: var(--ink);
    margin: .5rem 0 1.25rem;
}

.page-hero p:not(.section-label) {
    max-width: 700px;
    margin-inline: auto;
    color: var(--ink-mid);
    font-size: 1.08rem;
    line-height: 1.75;
}

.feature-detail-section,
.contact-section {
    padding-top: 4.5rem;
}

.feature-detail-grid,
.contact-grid {
    display: grid;
    gap: 1.25rem;
}

.feature-detail-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-detail-card,
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
}

.feature-detail-card h2,
.contact-card h2,
.page-cta h2 {
    font-family: var(--font-head);
    color: var(--ink);
}

.feature-detail-card h2 {
    font-size: 1.2rem;
    margin-bottom: .7rem;
}

.feature-detail-card p,
.contact-card p,
.page-cta p {
    color: var(--ink-mid);
}

.feature-detail-card ul,
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.feature-detail-card li,
.contact-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--ink-mid);
    font-size: .9rem;
    line-height: 1.55;
}

.feature-detail-card li::before,
.contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--teal);
}

.page-cta {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin: 0 auto 5rem;
    padding: clamp(2rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-radius: 24px;
    border: 1px solid #ECDFCC;
    background: linear-gradient(140deg, #FBF6EE, #F1E3CE 60%, #E4EDEA);
    color: var(--ink);
}

.page-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--ink);
    margin: .3rem 0 .6rem;
}

.page-cta p {
    color: var(--ink-mid);
    max-width: 620px;
}

.page-cta .btn-light {
    background: var(--ink);
    color: var(--cream);
}
.page-cta .btn-light:hover {
    background: #344648;
    color: var(--cream);
}

.contact-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: .8rem;
}

.contact-link {
    display: inline-flex;
    width: fit-content;
    font-weight: 800;
    color: var(--teal-dark);
    text-decoration: none;
}

/* ─────────────────────────────────────────────
   BLOG / LE COIN RH
───────────────────────────────────────────── */
.blog-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(147, 222, 201, .28) 0%, transparent 34%),
        radial-gradient(circle at 12% 80%, rgba(200, 155, 110, .18) 0%, transparent 36%),
        linear-gradient(155deg, #FBF6EE 0%, #F3E9D7 48%, #E7EFEB 100%);
    border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
}

.blog-hero-copy {
    opacity: 1;
    animation: blog-rise .65s ease both;
}

.blog-hero-kicker {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.blog-hero-copy h1 {
    font-family: var(--font-head);
    font-size: clamp(1.95rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.14;
    color: #2f3d3f;
    margin: 0 0 1rem;
}

.blog-hero-copy h1 a {
    color: #2f3d3f;
    text-decoration: none;
}

.blog-hero-copy h1 a:hover {
    color: var(--teal-dark);
}

.blog-hero-excerpt {
    max-width: 34rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink-mid);
    margin: 0 0 1.75rem;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 1.5rem;
}

.blog-hero-meta {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.blog-hero-visual {
    position: relative;
    justify-self: end;
    width: min(100%, 320px);
    opacity: 1;
    animation: blog-rise .7s .05s ease both;
}

.blog-hero-visual-frame {
    aspect-ratio: 1;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255,255,255,.72), rgba(243,233,215,.9)),
        var(--white);
    border: 1px solid rgba(227, 214, 192, .9);
    box-shadow: 0 24px 50px -28px rgba(62, 82, 84, .35);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.blog-hero-visual-frame img {
    width: 78%;
    height: auto;
    display: block;
    transform: translateY(8px);
    animation: blog-float 5.5s ease-in-out infinite;
}

.blog-hero-stamp {
    position: absolute;
    left: -0.4rem;
    bottom: 1.4rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -14px rgba(44, 54, 62, .55);
}

.blog-index {
    background: var(--bg);
}

.blog-index-inner {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 5.5rem);
}

.blog-index-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-index-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
    max-width: 22ch;
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.blog-topic {
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--ink-mid);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    padding: .45rem .85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.blog-topic:hover {
    border-color: #D4C4A8;
    color: var(--ink);
    transform: translateY(-1px);
}

.blog-topic.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.blog-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.blog-row {
    display: grid;
    grid-template-columns: 8.5rem 1fr auto;
    gap: 1.25rem 1.75rem;
    align-items: start;
    padding: 1.55rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    animation: blog-rise .55s ease both;
    animation-delay: var(--blog-delay, 0ms);
    transition: background .2s, padding .2s, border-color .2s;
}

.blog-row:hover {
    background: linear-gradient(90deg, rgba(243, 233, 215, .55), transparent 70%);
}

.blog-row:hover .blog-row-main h3 {
    color: var(--teal-dark);
}

.blog-row:hover .blog-row-arrow {
    transform: translateX(4px);
    color: var(--teal-dark);
}

.blog-row-topic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-dark);
    padding-top: .35rem;
}

.blog-row-topic em {
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .04em;
    color: var(--ink);
    background: var(--sand-light);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: .2rem .55rem;
}

.blog-row.is-featured {
    background: linear-gradient(90deg, rgba(228, 237, 234, .55), transparent 65%);
}

.blog-row-main h3 {
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 750;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 .45rem;
    transition: color .2s;
}

.blog-row-main p {
    margin: 0;
    max-width: 46rem;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink-mid);
}

.blog-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    min-width: 8.5rem;
    padding-top: .2rem;
    text-align: right;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.blog-row-arrow {
    margin-top: .35rem;
    font-size: 1.15rem;
    color: var(--ink-soft);
    transition: transform .2s, color .2s;
}

.blog-empty {
    margin: 2rem 0 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.blog-article-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(147, 222, 201, .22) 0%, transparent 40%),
        linear-gradient(160deg, #FBF6EE 0%, #F3E9D7 55%, #E7EFEB 100%);
    border-bottom: 1px solid var(--border);
}

.blog-article-hero-inner {
    width: min(760px, 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 4.75rem) 0 3rem;
}

.blog-article-hero .blog-back {
    display: inline-flex;
    margin-bottom: 1.4rem;
}

.blog-article-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    letter-spacing: -.03em;
    color: var(--ink);
    margin: .5rem 0 1rem;
    line-height: 1.15;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    color: var(--ink-mid);
    font-size: .95rem;
    margin: 0;
}

.blog-article-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #5c6558;
    margin: 0 0 1.25rem;
    max-width: 40rem;
}

.blog-back {
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
}

.blog-back:hover {
    color: var(--ink);
}

.blog-article-layout {
    width: min(1100px, 100% - var(--gutter) * 2);
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

@media (min-width: 960px) {
    .blog-article-layout {
        grid-template-columns: 240px minmax(0, 720px);
        justify-content: center;
        gap: 3rem;
        align-items: start;
    }
}

.blog-toc {
    position: sticky;
    top: 5.5rem;
    padding: 1.25rem 1.35rem;
    background: #f7f3ea;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.blog-toc-title {
    margin: 0 0 .75rem;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-dark);
}

.blog-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
}

.blog-toc-list a {
    color: var(--ink-mid);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.35;
}

.blog-toc-list a:hover {
    color: var(--ink);
}

.blog-toc-level-3 {
    padding-left: .85rem;
}

.blog-article-body {
    min-width: 0;
}

.blog-article-body > p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--ink-mid);
    margin: 0 0 1.35rem;
}

.blog-article-body > p:first-of-type {
    font-size: 1.16rem;
    color: #5c6558;
}

.blog-article-body h2 {
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 2.6rem 0 1rem;
    line-height: 1.25;
    scroll-margin-top: 6rem;
}

.blog-article-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 2rem 0 .8rem;
    line-height: 1.3;
    scroll-margin-top: 6rem;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 1.5rem;
    padding-left: 1.3rem;
    color: var(--ink-mid);
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-article-body li {
    margin-bottom: .45rem;
}

.blog-article-body li::marker {
    color: var(--teal-dark);
}

.blog-article-body blockquote {
    margin: 0 0 1.6rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--teal-dark);
    background: rgba(147, 222, 201, .14);
    border-radius: 0 12px 12px 0;
}

.blog-article-body blockquote p {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-article-body hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.25rem 0;
}

.blog-article-body strong {
    color: var(--ink);
    font-weight: 700;
}

.blog-article-body a {
    color: var(--teal-dark);
    font-weight: 600;
}

.blog-article-footer {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.blog-article + .page-cta {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

@keyframes blog-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
    .blog-hero-copy,
    .blog-hero-visual,
    .blog-row,
    .blog-hero-visual-frame img {
        animation: none !important;
    }
}

.contact-grid {
    grid-template-columns: 1.25fr .9fr;
    align-items: stretch;
}

.contact-card--main {
    grid-row: span 2;
    background:
        radial-gradient(circle at 90% 10%, rgba(134,169,170,.22) 0%, transparent 30%),
        var(--bg);
}

.contact-card h2 {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    margin-bottom: .85rem;
}

.contact-card .btn {
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    padding: 3.25rem 0 2.1rem;
}

.footer-container {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #E7DECF;
    margin-bottom: 1.1rem;
}

.footer-logo { height: 52px; width: auto; margin-bottom: .9rem; }

.footer-description {
    font-size: .85rem;
    color: var(--ink-soft);
    max-width: 260px;
    line-height: 1.6;
}

.footer-nav-grid {
    display: contents;
}

.footer-column h4 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #A79E8C;
    margin-bottom: .9rem;
}

.footer-column a {
    display: block;
    font-size: .875rem;
    color: var(--ink-mid);
    font-weight: 500;
    margin-bottom: .65rem;
    transition: color .15s;
}
.footer-column a:hover { color: var(--ink); }

.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    font-size: .82rem;
    color: #9A9082;
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #9A9082; transition: color .15s; }
.footer-legal a:hover { color: var(--ink); }

/* ─────────────────────────────────────────────
   FEATURES SECTION HEADER
───────────────────────────────────────────── */
.feat-section-header {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    margin-bottom: 3rem;
}
.feat-section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--ink);
    margin: .5rem 0 .75rem;
}
.feat-section-header p {
    font-size: 1.05rem;
    color: var(--ink-mid);
}

.feature-detail-card.feat-card--live {
    border-color: rgba(63,123,100,.2);
    background: linear-gradient(135deg, rgba(212,240,224,.12), var(--white));
}

/* ─────────────────────────────────────────────
   PRICING
───────────────────────────────────────────── */
.pricing-section {
    padding: 5rem 0;
}

.pricing-layout {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(280px, 350px) 1fr;
    gap: 2rem;
    align-items: stretch;
}

.pricing-info-card {
    background: #dcc9b5;
    border: 1px solid rgba(176,122,62,.25);
    border-radius: var(--r-lg);
    padding: clamp(1.6rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.pricing-info-card h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 1.6rem;
}

.pricing-info-group h3 {
    font-size: .9rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: underline;
    margin-bottom: .5rem;
}

.pricing-info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.pricing-info-list li {
    position: relative;
    padding-left: 1.05rem;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--ink-mid);
}

.pricing-info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ink-mid);
    font-weight: 800;
}

.pricing-info-divider {
    width: 72%;
    height: 1px;
    margin: 1.8rem auto;
    background: rgba(38,56,60,.28);
}

.pricing-offers {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-heading {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-heading .section-label {
    margin-bottom: .2rem;
}

.pricing-heading h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--ink);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card--tier {
    grid-column: span 2;
    align-items: center;
    text-align: center;
    min-height: 164px;
    padding: 1.2rem 1.35rem;
    box-shadow: 0 8px 24px rgba(38,56,60,.14);
}

.pricing-card--wide {
    grid-column: span 3;
}

.pricing-card h2,
.pricing-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: .35rem;
}

.pricing-card--tier h3 {
    font-size: .95rem;
    font-weight: 900;
    margin-bottom: 0;
}

.pricing-card--tier h3 span,
.pricing-audience {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-top: .15rem;
}

.pricing-tagline {
    font-size: .88rem;
    color: var(--ink-mid);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    margin: 1rem 0 1.15rem;
    padding: 0;
    border-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: .35rem;
}

.pricing-price {
    display: inline-flex;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.55rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0;
}

.pricing-period {
    display: inline-flex;
    font-size: .78rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .88rem;
    color: var(--ink-mid);
    line-height: 1.5;
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-cta {
    width: fit-content;
    justify-content: center;
    margin-top: auto;
    border-radius: 8px;
    padding: .68rem 1.35rem;
    font-size: .8rem;
}

.pricing-card--tier .btn-primary {
    box-shadow: none;
}

.pricing-card--sand .btn-primary { background: #c8ad82; }
.pricing-card--sage .btn-primary { background: #88937f; }
.pricing-card--clay .btn-primary { background: #ad7655; }
.pricing-card--blue .btn-primary { background: #3f5658; }
.pricing-card--green .btn-primary { background: #34442f; }

.pricing-card--sand h3 { color: #b5966b; }
.pricing-card--sage h3 { color: #6d7665; }
.pricing-card--clay h3 { color: #9d684a; }
.pricing-card--blue h3 { color: #3f5658; }
.pricing-card--green h3 { color: #34442f; }

/* Pricing perks */
.pricing-perks-section {
    padding: 0 0 5rem;
}

.pricing-perks-grid {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-perk {
    text-align: center;
    padding: 2rem 1.5rem;
}

.pricing-perk-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.pricing-perk strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: .45rem;
}

.pricing-perk p {
    font-size: .88rem;
    color: var(--ink-mid);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   FONCTIONNALITÉS (grille asymétrique)
───────────────────────────────────────────── */
.feat-section {
    position: relative;
    background:
        linear-gradient(90deg, rgba(251,250,247,.98) 0 1px, transparent 1px),
        linear-gradient(180deg, rgba(251,250,247,.98) 0 1px, transparent 1px),
        radial-gradient(circle at 12% 6%, rgba(223,236,236,.62) 0%, transparent 30%),
        linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
    background-size: 42px 42px, 42px 42px, auto, auto;
    width: 100%;
    max-width: 100%;
    margin-top: -4rem;
    padding: 9rem 0 5.5rem;
    overflow: hidden;
}

.feat-section .section-head {
    position: relative;
    z-index: 1;
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    max-width: var(--max-w);
}

.feat-section .section-head .section-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.feat-section .section-head h2 {
    margin-bottom: 0;
}

.feat-section .section-sub {
    padding: 1.15rem 1.25rem;
    border-left: 3px solid var(--sand);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 30px rgba(38,56,60,.055);
}

.feat-grid {
    position: relative;
    z-index: 1;
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 1rem;
}

/* La première carte devient le panneau produit principal. */
.feat-card--wide {
    grid-row: span 3;
    min-height: 100%;
}

.feat-card {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
    border: 1px solid rgba(228,221,213,.72);
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(38,56,60,.055);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 4px;
    border-radius: 999px;
    background: var(--teal);
    opacity: .36;
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(134,169,170,.42);
    box-shadow: 0 24px 58px rgba(38,56,60,.11);
}

.feat-card-inner {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.35rem 1.45rem;
}

.feat-card .mod-icon {
    grid-column: 1;
    grid-row: 1 / 5;
    margin-bottom: 0;
}

.feat-card--wide .feat-card-inner {
    display: block;
    padding: clamp(2rem, 4vw, 3rem);
}

.feat-card--wide .mod-icon {
    margin-bottom: 1.25rem;
}

.feat-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    width: fit-content;
    grid-column: 2;
}

.feat-card--wide .feat-badge {
    grid-column: auto;
}

.feat-badge--live {
    color: #1a6b4a;
    background: #d4f0e0;
}
.feat-badge--live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #2da06a;
    animation: livePulse 2s ease-in-out infinite;
}

.feat-badge--soon {
    color: var(--ink-soft);
    background: var(--bg);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

.feat-card--live {
    border-color: rgba(63,123,100,.25);
    background:
        radial-gradient(circle at 96% 4%, rgba(212,240,224,.62), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(223,236,236,.20));
}

.feat-card--live:hover {
    border-color: rgba(63,123,100,.4);
}

.feat-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: .6rem;
    grid-column: 2;
}

.feat-card--wide h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    max-width: 520px;
}

.feat-card p { font-size: .9rem; color: var(--ink-mid); line-height: 1.65; grid-column: 2; }

.feat-card--wide p { max-width: 620px; }

/* ─────────────────────────────────────────────
   RÔLES
───────────────────────────────────────────── */
.roles-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.roles-intro h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--ink);
    margin: .5rem 0 1rem;
}

.roles-intro > p { font-size: .95rem; color: var(--ink-mid); line-height: 1.7; }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.role-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(251,250,247,.88));
    border: 1px solid rgba(228,221,213,.72);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(38,56,60,.055);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.role-card:hover {
    transform: translateY(-3px);
    border-color: rgba(134,169,170,.36);
    box-shadow: 0 22px 48px rgba(38,56,60,.10);
}

.role-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--teal-light), rgba(255,255,255,.7));
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 22px rgba(38,56,60,.06);
}

.role-title {
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--teal-dark);
    margin-bottom: .5rem;
}

.role-card p { font-size: .88rem; color: var(--ink-mid); line-height: 1.6; }

/* ─────────────────────────────────────────────
   POURQUOI (avant / après)
───────────────────────────────────────────── */
.why-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.why-text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--ink);
    margin: .5rem 0 1rem;
}

.why-text > p { font-size: .95rem; color: var(--ink-mid); margin-bottom: 2rem; line-height: 1.7; }

.why-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.why-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--ink-mid);
}

.why-list li strong { color: var(--ink); display: block; margin-bottom: .1rem; }

.why-dot {
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sand);
    margin-top: .55rem;
}

.why-visual { display: flex; flex-direction: column; gap: 1rem; }

.why-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(251,250,247,.9));
    border: 1px solid rgba(228,221,213,.72);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    box-shadow: 0 14px 36px rgba(38,56,60,.07);
}

.why-card--after {
    border-color: rgba(134,169,170,.62);
    background:
        radial-gradient(circle at 100% 0%, rgba(223,236,236,.78), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(251,250,247,.9));
}

.why-card-label {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.why-before, .why-after {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.why-before li, .why-after li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: var(--ink-mid);
}

/* ─────────────────────────────────────────────
   WAITLIST
───────────────────────────────────────────── */
.waitlist-section {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 0 clamp(4.5rem, 8vw, 5.5rem);
}

.waitlist-wrap {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.section-label--light { color: var(--teal); }

.waitlist-text h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
    margin: .5rem 0 1.25rem;
}

.waitlist-text > p {
    color: var(--ink-mid);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.waitlist-perks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.waitlist-perks li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    color: #4A4A42;
    font-weight: 600;
}

/* Formulaire card */
.waitlist-card {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
}

.waitlist-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: .4rem;
}

.waitlist-card > p {
    font-size: .88rem;
    color: var(--ink-mid);
    margin-bottom: 2rem;
}

.waitlist-form { display: flex; flex-direction: column; gap: 0; }

.wf-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1.1rem;
}

.wf-group label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
}

.wf-group input,
.wf-group select {
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.wf-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a9296' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.wf-group input:focus,
.wf-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.wf-error {
    font-size: .78rem;
    color: var(--danger);
    font-weight: 600;
}

.wf-submit { width: 100%; justify-content: center; margin-top: .5rem; }

.wf-legal {
    text-align: center;
    font-size: .75rem;
    color: var(--ink-soft);
    margin-top: .85rem;
}

.waitlist-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #e6f2ec;
    border-radius: var(--r-md);
    font-size: .95rem;
    color: var(--success);
    font-weight: 600;
}

/* ─────────────────────────────────────────────
   AUTH
───────────────────────────────────────────── */
.auth-shell {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(4rem, 10vw, 8rem) 0;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 440px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2.5rem 2.5rem 0;
}

.auth-brand { display: inline-block; }
.auth-brand img { height: 36px; width: auto; }

.auth-subtitle {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: .65rem;
}

.auth-form {
    padding: 2rem 2.5rem;
}

.auth-form-head {
    margin-bottom: 1.75rem;
}

.auth-form-head h1 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--ink);
    margin-bottom: .3rem;
}

.auth-form-head p {
    font-size: .92rem;
    color: var(--ink-mid);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    background: rgba(161,67,67,.06);
    border: 1px solid rgba(161,67,67,.18);
    color: var(--danger);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.auth-alert svg { flex-shrink: 0; margin-top: 1px; }

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .35rem;
}

.auth-field input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
    background: var(--white);
}

.auth-field-error {
    display: block;
    font-size: .78rem;
    color: var(--danger);
    font-weight: 600;
    margin-top: .3rem;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 3rem;
}

.auth-toggle-pw {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: .35rem;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.auth-toggle-pw:hover {
    color: var(--ink);
    background: rgba(134,169,170,.1);
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: .5rem;
}

.auth-footer {
    padding: 1.5rem 2.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.auth-footer p {
    font-size: .85rem;
    color: var(--ink-soft);
}

.auth-footer a {
    color: var(--teal-dark);
    font-weight: 700;
    transition: color .15s;
}

.auth-footer a:hover { color: var(--ink); }

/* ─────────────────────────────────────────────
   APP SHELL & GENERIC FORM
───────────────────────────────────────────── */
.app-shell {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 3rem 0;
}

.form { width: min(100%, 540px); }
.form h1 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.form label { display: grid; gap: .3rem; margin-bottom: .9rem; font-size: .9rem; font-weight: 700; color: var(--ink); }
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.form textarea { resize: vertical; }

.form-error { font-size: .82rem; color: var(--danger); }

/* ─────────────────────────────────────────────
   APP LAYOUT (sidebar + main) — design mockup
───────────────────────────────────────────── */
body.is-app {
    --ink:        #3e5254;
    --ink-mid:    #5E6660;
    --ink-soft:   #8E948E;
    --teal:       #5F8B84;
    --teal-light: #E4EDEA;
    --teal-dark:  #4E7770;
    --sand:       #BC7E4E;
    --sand-light: #F6E9D8;
    --bg:         #F4F5F3;
    --white:      #ffffff;
    --border:     #EAECE9;
    --sidebar-bg: #FDFCFA;
    --muted-label:#AAA99E;
    --chip-flat:  #EFF0ED;
    --font-head:  "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font-body:  "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --r-sm: 11px;
    --r-md: 15px;
    --r-lg: 18px;
    --shadow-sm:  0 1px 0 rgba(44,54,62,.03);
    --shadow-md:  0 16px 32px -20px rgba(44,54,62,.4);
    --shadow-cta: 0 8px 18px -6px rgba(95,139,132,.55);
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

body.is-app a { color: var(--teal); }
body.is-app a:hover { color: var(--teal-dark); }

body.is-app .btn-primary {
    background: var(--teal);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-cta);
    border-radius: 12px;
}
body.is-app .btn-primary:hover {
    background: var(--teal-dark);
    box-shadow: 0 10px 22px -6px rgba(78,119,112,.55);
}
body.is-app .btn-ink {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--ink);
    color: #F6F0E7;
    border: none;
    padding: .72rem 1.15rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s;
}
body.is-app .btn-ink:hover { background: #344648; color: #F6F0E7; }
body.is-app .btn-app-cta { padding: .8rem 1.3rem; font-size: .9rem; font-weight: 600; }
body.is-app .btn-plus { font-size: 1.1rem; line-height: 0; margin-top: -1px; }

.app-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}

/* ── Sidebar ── */
.app-sidebar {
    background: var(--sidebar-bg);
    color: var(--ink-mid);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.15rem .9rem;
    gap: .35rem;
}

.sidebar-brand {
    display: block;
    padding: .15rem .35rem .9rem;
}
.sidebar-brand img {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
}

.sidebar-section {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted-label);
    padding: 1rem .75rem .45rem;
}

.sidebar-nav { flex: 1; padding-top: .15rem; }

.sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem .7rem;
    margin-bottom: 2px;
    font-size: .875rem;
    font-weight: 500;
    color: #5E6660;
    border-radius: 10px;
    transition: color .15s, background .15s;
}
.sidebar-link:hover {
    color: var(--ink);
    background: #F1F2EF;
}
.sidebar-link.is-active {
    color: var(--ink);
    background: var(--teal-light);
    font-weight: 700;
}
.sidebar-link.is-active svg { color: var(--teal-dark); }
.sidebar-link.is-disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}
.sidebar-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    opacity: .7;
    color: inherit;
}
.sidebar-link.is-active svg { opacity: 1; }

.sidebar-link-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .45rem;
}
.sidebar-link-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-section-tag {
    margin-left: .35rem;
    font-size: .62rem;
    letter-spacing: .08em;
    opacity: .7;
}

.sidebar-badge {
    margin-left: 0;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .18rem .35rem;
    border-radius: 5px;
    background: #F0F0EC;
    color: #9A9488;
    flex: 0 0 auto;
}
.sidebar-badge--preview {
    background: #EEF0ED;
    color: #6C7780;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem .65rem .35rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong {
    display: block;
    font-size: .82rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-info span {
    font-size: .7rem;
    color: var(--ink-soft);
}

.sidebar-logout {
    color: var(--ink-soft);
    padding: .35rem;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.sidebar-logout:hover {
    color: var(--ink);
    background: #F1F2EF;
}

/* ── Main ── */
.app-main {
    background: var(--bg);
    padding: 0;
    min-height: 100vh;
    min-width: 0;
}

/* ── Topbar ── */
.app-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.65rem 2.1rem .35rem;
    background: var(--bg);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: .35rem;
    color: var(--ink);
    cursor: pointer;
    border-radius: 8px;
}
.sidebar-toggle:hover { background: var(--teal-light); }

.app-topbar-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}

.app-topbar-org {
    font-size: .84rem;
    color: var(--ink-soft);
    margin-top: .15rem;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: .15rem;
}

/* ── Dashboard home (mockup Pit RH) ── */
.dash-home {
    padding: 1.25rem 2.1rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 1400px;
}

.dash-reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: dashReveal .5s ease forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes dashReveal {
    to { opacity: 1; transform: translateY(0); }
}

.dash-chip {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .55rem;
    border-radius: 6px;
    background: var(--chip-flat, #EFF0ED);
    color: var(--ink-soft);
    white-space: nowrap;
}
.dash-chip--live,
.dash-chip--ready {
    background: var(--teal-light);
    color: var(--teal-dark);
}
.dash-chip--preview {
    background: #EEF0ED;
    color: #6C7780;
}
.dash-chip--soon {
    background: var(--sand-light);
    color: var(--sand);
}

/* Welcome banner */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem 1.5rem;
}
.dash-welcome-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.dash-welcome-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-light);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.dash-welcome-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.35;
}
.dash-welcome-sub {
    font-size: .84rem;
    color: var(--ink-soft);
    margin-top: .15rem;
}
.dash-welcome-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-shrink: 0;
}
.dash-welcome-link {
    font-weight: 600;
    font-size: .875rem;
    color: #5F6B63;
}
.dash-welcome-link:hover { color: var(--ink); }

/* KPI row */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.dash-kpi {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.05rem 1.2rem;
}
.dash-kpi-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9DA29C;
}
.dash-kpi-value {
    display: block;
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    margin: .35rem 0 .5rem;
    line-height: 1.1;
}
.dash-kpi-delta {
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
}
.dash-kpi-delta--up {
    color: var(--teal-dark);
    background: var(--teal-light);
}
.dash-kpi-delta--warn {
    color: var(--sand);
    background: var(--sand-light);
}
.dash-kpi-delta--flat {
    color: #7C837C;
    background: var(--chip-flat, #EFF0ED);
}

/* Split: chart + parcours */
.dash-split {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1rem;
}
.dash-panel-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
}
.dash-panel-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}
.dash-panel-card h2,
.dash-parcours > h2 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}
.dash-panel-card-head p {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-top: .15rem;
}

.dash-chart {
    margin-top: .35rem;
}
.dash-chart svg {
    width: 100%;
    height: 168px;
    display: block;
}
.dash-chart-months {
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    color: #A9AEA8;
    font-weight: 600;
    margin-top: .25rem;
    padding: 0 .2rem;
}

.dash-parcours {
    display: flex;
    flex-direction: column;
}
.dash-parcours > h2 { margin-bottom: 1rem; }
.dash-parcours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}
.dash-parcours-item > a,
.dash-parcours-item > div {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem 0;
    border-bottom: 1px solid #F0F1EE;
    color: inherit;
    text-decoration: none;
}
.dash-parcours-item:last-child > a,
.dash-parcours-item:last-child > div { border-bottom: none; }
.dash-parcours-item > a:hover .dash-parcours-name { color: var(--teal-dark); }
.dash-parcours-num {
    width: 27px;
    height: 27px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    background: var(--chip-flat, #EFF0ED);
    color: #A7ABA4;
}
.dash-parcours-item.is-done .dash-parcours-num {
    background: var(--teal-light);
    color: var(--teal-dark);
}
.dash-parcours-item.is-active .dash-parcours-num {
    background: var(--teal);
    color: #fff;
}
.dash-parcours-name {
    flex: 1;
    font-weight: 600;
    font-size: .875rem;
    color: var(--ink);
}
.dash-parcours-status {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #B3B0A4;
}
.dash-parcours-item.is-done .dash-parcours-status { color: var(--teal-dark); }
.dash-parcours-item.is-active .dash-parcours-status { color: var(--teal); }
.dash-parcours-cta {
    margin-top: .9rem;
    font-weight: 600;
    font-size: .875rem;
    color: var(--teal);
}
.dash-parcours-cta:hover { color: var(--teal-dark); }

/* Tools */
.dash-tools-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: .2rem 0 .85rem;
}
.dash-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.dash-tool {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    min-height: 190px;
    transition: transform .15s, box-shadow .15s;
}
.dash-tool:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
}
.dash-tool-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.dash-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    color: var(--teal-dark);
}
.dash-tool strong {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}
.dash-tool p {
    font-size: .84rem;
    color: #7B817B;
    line-height: 1.5;
    flex: 1;
    margin: 0;
}
.dash-tool-meta {
    font-size: .8rem;
    font-weight: 700;
    color: var(--teal);
}
.dash-tool-cta {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    transition: color .15s;
}
.dash-tool:hover .dash-tool-cta { color: var(--teal); }

/* Legacy dash panels (autres écrans app) */
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
}
.dash-metric {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-metric-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-metric-icon--teal { background: var(--teal-light); color: var(--teal-dark); }
.dash-metric-icon--sand { background: var(--sand-light); color: #b07a3e; }
.dash-metric-icon--ink  { background: #eef0f0; color: var(--ink-mid); }
.dash-metric-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.dash-metric-value {
    display: block;
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--ink);
    line-height: 1.2;
    margin-top: .15rem;
}
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem 2rem;
}
.dash-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    min-width: 0;
    box-shadow: none;
}
.dash-panel--full,
.app-panel-span { grid-column: span 2; }
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.dash-panel-head h2 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--ink);
}
.dash-panel-badge {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: var(--teal-light);
    color: var(--teal-dark);
    white-space: nowrap;
}
.dash-panel-badge--soon {
    background: var(--sand-light);
    color: #9a6a35;
}
.dash-avg-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.dash-avg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: var(--bg);
    border-radius: var(--r-sm);
}
.dash-avg-job {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: var(--ink-mid);
}
.dash-av-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-avg-row strong {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--ink);
}
.dash-gauge-wrap { padding-top: .25rem; }
.dash-gauge {
    width: 100%;
    height: 10px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .85rem;
}
.dash-gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--success), var(--teal));
    transition: width .4s ease-out;
}
.dash-gauge-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--ink-mid);
}
.dash-gauge-labels strong { color: var(--ink); }
.dash-gauge-note {
    font-size: .78rem;
    font-weight: 700;
    color: var(--success);
}
.dash-empty {
    text-align: center;
    padding: 1.5rem;
    font-size: .88rem;
    color: var(--ink-soft);
}

/* ─────────────────────────────────────────────
   APP CONTENT (inside sidebar layout)
───────────────────────────────────────────── */
.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 2.1rem 2.5rem;
    background: var(--bg);
    max-width: 1400px;
}

.app-content-intro {
    grid-column: span 2;
    margin-bottom: .5rem;
}

.app-content-intro h2 {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--ink);
    margin-bottom: .3rem;
}

.app-content-intro p {
    font-size: .92rem;
    color: var(--ink-mid);
    max-width: 640px;
}

/* Page hero partagé (simulateur, grilles, observatoire, réglages) */
.app-page-hero {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(200px, .9fr);
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.app-page-hero::after { display: none; }
.app-page-hero--solo {
    grid-template-columns: 1fr;
}
.app-page-hero-copy {
    position: relative;
    z-index: 1;
}
.app-page-hero-copy .dash-chip {
    margin-bottom: .65rem;
}
.app-page-hero-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: .5rem;
    max-width: 28ch;
}
.app-page-hero-copy p {
    font-size: .94rem;
    color: var(--ink-mid);
    line-height: 1.55;
    max-width: 52ch;
}
.app-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.1rem;
}
.app-page-hero-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .75rem;
    position: relative;
    z-index: 1;
}
.app-page-hero-stat {
    padding: .9rem 1.05rem;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.app-page-hero-stat span {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .25rem;
}
.app-page-hero-stat strong {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--ink);
}

.app-help-cta {
    margin-top: 0;
}

.app-panel-span {
    grid-column: span 2;
}

.app-help-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.app-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-transform: none;
    letter-spacing: normal;
    vertical-align: middle;
}

.app-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(79,140,142,.35);
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal-dark);
    font: 800 .72rem/1 var(--font-body);
    cursor: help;
    padding: 0;
}

.app-help-trigger:focus {
    outline: 2px solid rgba(79,140,142,.35);
    outline-offset: 2px;
}

.app-help-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + .55rem);
    z-index: 60;
    width: min(250px, 75vw);
    padding: .65rem .75rem;
    border: 1px solid rgba(228,221,213,.9);
    border-radius: var(--r-sm);
    background: var(--ink);
    box-shadow: var(--shadow-md);
    color: var(--white);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .15s, transform .15s;
}

.app-help-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    background: var(--ink);
    transform: translate(-50%, -5px) rotate(45deg);
}

.app-help-tooltip--left {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.app-help-tooltip--left::after {
    left: auto;
    right: 8px;
    transform: translateY(-5px) rotate(45deg);
}

.app-help:hover .app-help-tooltip,
.app-help:focus-within .app-help-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-help:hover .app-help-tooltip--left,
.app-help:focus-within .app-help-tooltip--left {
    transform: translateY(0);
}

.responsive-table:has(.app-help) {
    overflow: visible;
}

.dash-panel:has(.app-help:hover),
.dash-panel:has(.app-help:focus-within) {
    position: relative;
    z-index: 80;
}

.app-modal {
    position: fixed;
    inset: 0;
    width: min(620px, calc(100% - 2rem));
    border: none;
    border-radius: var(--r-lg);
    margin: auto;
    padding: 0;
    background: transparent;
    color: var(--ink);
}

.app-modal::backdrop {
    background: rgba(38,56,60,.42);
    backdrop-filter: blur(4px);
}

.app-modal-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
}

.app-modal-card h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--ink);
    margin: .85rem 2rem .65rem 0;
}

.app-modal-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: .5rem;
}

.app-modal-card p {
    color: var(--ink-mid);
    font-size: .92rem;
    line-height: 1.6;
}

.app-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink-mid);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.app-modal-close:hover {
    color: var(--ink);
    background: var(--teal-light);
}

.app-modal-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(228,221,213,.75);
}

.app-modal-note {
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-radius: var(--r-sm);
    background: rgba(247,231,210,.45);
}

/* App table */
.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.app-table th {
    text-align: left;
    padding: .75rem 1rem;
    border-bottom: 2px solid var(--border);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.app-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(228,221,213,.5);
    color: var(--ink-mid);
    vertical-align: middle;
}

.app-table tbody tr:hover {
    background: rgba(134,169,170,.04);
}

.app-table tbody tr:last-child td {
    border-bottom: none;
}

.app-tag-percent {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: var(--teal-light);
    color: var(--teal-dark);
}

.app-av-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--av-bg);
    color: var(--av-c);
    font-size: .7rem;
    font-weight: 800;
}

.app-increase {
    font-weight: 700;
    color: var(--ink-soft);
}
.app-increase--up {
    color: var(--teal-dark);
}

.app-badge-ok {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: #d4f0e0;
    color: #1a6b4a;
}

.app-muted-note {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
}

.dash-panel-head .app-muted-note {
    max-width: 620px;
    margin: .35rem 0 0;
}

/* App reference toolbar */
.reference-toolbar {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: end;
    padding: 1rem 1.15rem;
    background: var(--white);
}

.reference-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.reference-toolbar-group--action {
    justify-self: end;
}

.reference-toolbar-label {
    display: block;
    min-height: 1rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1;
}

.reference-toolbar-select,
.reference-toolbar-btn,
.reference-grid-tab {
    height: 2.75rem;
    box-sizing: border-box;
}

.reference-toolbar-select {
    width: 100%;
    margin: 0;
    padding: 0 .9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
}

.reference-toolbar-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.reference-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding-inline: 1.1rem;
    border-radius: 10px;
}

.reference-grid-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
    padding: .25rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}

.reference-grid-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 .75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-mid);
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.reference-grid-tab:hover {
    color: var(--ink);
}

.reference-grid-tab.is-active {
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.reference-grid-panel {
    grid-column: span 2;
}

.reference-grid-panel[hidden],
.settings-grid-editor[hidden] {
    display: none !important;
}

.settings-grid-switcher {
    margin: .15rem 0 1rem;
    max-width: 360px;
}

.settings-grid-switcher .reference-grid-switcher {
    width: 100%;
}

/* App settings */
.settings-layout {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: 88px;
    padding: .7rem;
}

.settings-nav-kicker {
    padding: .45rem .55rem .65rem;
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.settings-nav-link {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .75rem .85rem;
    border-radius: var(--r-sm);
    color: var(--ink-mid);
    transition: background .15s, color .15s, box-shadow .15s;
}

.settings-nav-link:hover {
    background: rgba(134,169,170,.1);
    color: var(--ink);
}
.settings-nav-link.is-active {
    background: var(--teal-light);
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--teal-dark);
}

.settings-nav-link strong {
    display: block;
    font-size: .88rem;
    color: inherit;
}

.settings-nav-link > span {
    min-width: 0;
    width: 100%;
}

.settings-nav-link small {
    display: block;
    max-width: 100%;
    margin-top: .12rem;
    color: var(--ink-soft);
    font-size: .74rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-panel-main {
    min-width: 0;
}

.settings-page-hero {
    padding: 1.25rem 1.4rem;
}

.settings-general-form {
    margin-bottom: .85rem;
}

.settings-general-section {
    display: grid;
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(134,169,170,.22);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(251,250,247,.88));
}

.settings-general-section + .settings-general-section,
.settings-general-section + .settings-quick-links,
.settings-general-form + .settings-general-section {
    margin-top: .85rem;
}

.settings-general-section--read {
    align-items: start;
}

.settings-section-copy {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.settings-section-copy strong {
    font-family: var(--font-head);
    color: var(--ink);
    font-size: 1rem;
}

.settings-section-copy span {
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.45;
}

.settings-general-section .app-field--wide {
    grid-column: auto;
}

.settings-inline-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-account-list {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.settings-account-list div {
    min-width: 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(228,221,213,.85);
    border-radius: var(--r-sm);
    background: var(--white);
}

.settings-account-list dt {
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.settings-account-list dd {
    margin: .2rem 0 0;
    color: var(--ink);
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.settings-quick-links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: .85rem;
}

.settings-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(134,169,170,.2);
    border-radius: var(--r-sm);
    color: var(--ink);
    text-decoration: none;
    background: rgba(255,255,255,.72);
    transition: border-color .15s, background .15s, transform .15s;
}

.settings-quick-link:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateY(-1px);
}

.settings-quick-link span {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.settings-quick-link small {
    color: var(--ink-soft);
    font-size: .8rem;
}

.settings-quick-link em {
    color: var(--ink-mid);
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.settings-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.25rem 1.2rem;
    border: 1px solid rgba(134,169,170,.28);
    border-radius: var(--r-md);
    background: linear-gradient(160deg, #ffffff 0%, var(--teal-light) 100%);
    text-decoration: none;
    min-height: 140px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.settings-card::after {
    content: "Ouvrir →";
    margin-top: auto;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
}

.settings-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.settings-card strong {
    font-family: var(--font-head);
    color: var(--ink);
    font-size: 1.05rem;
}

.settings-card span {
    color: var(--ink-mid);
    font-size: .86rem;
    line-height: 1.5;
}

.settings-grid-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-grid-editor {
    padding: 1rem;
    border: 1px solid rgba(38,56,60,.08);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(251,250,247,.92));
}

.settings-grid-editor-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px;
    gap: .85rem;
    align-items: end;
    margin-bottom: 1rem;
}

.settings-level-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.settings-level-card {
    padding: .85rem;
    border: 1px solid rgba(228,221,213,.72);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.86);
}

.settings-level-head {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: .75rem;
    align-items: end;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(228,221,213,.72);
}

.settings-level-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .45rem .65rem;
    border-radius: var(--r-sm);
    background: var(--teal-light);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
}

.settings-band-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .75rem;
}

.settings-band-row {
    display: grid;
    grid-template-columns: minmax(150px, .72fr) 100px minmax(280px, 1.8fr);
    gap: .65rem;
    align-items: start;
    padding: .65rem;
    border-radius: var(--r-sm);
    background: rgba(247,245,240,.72);
}

.app-field textarea {
    padding: .65rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    resize: vertical;
    outline: none;
}

.app-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.settings-form-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid rgba(134,169,170,.24);
    border-radius: var(--r-md);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 28px rgba(38,56,60,.12);
    backdrop-filter: blur(10px);
}

.reference-share-panel {
    grid-column: span 2;
    padding: .85rem 1rem;
}

.reference-share-box {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.reference-share-box input {
    min-width: 0;
    flex: 1;
    padding: .65rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink-mid);
    font: inherit;
    font-size: .84rem;
}

.public-reference-page {
    background: var(--bg);
    padding-bottom: 2.5rem;
}

.public-reference-hero {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.public-reference-hero--compact {
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 1rem;
}

.public-reference-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
    letter-spacing: -.025em;
    margin-bottom: .85rem;
}

.public-reference-hero--compact h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0;
}

.public-reference-hero p:not(.section-label) {
    max-width: 760px;
    color: var(--ink-mid);
    font-size: 1rem;
    line-height: 1.75;
}

.public-reference-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.public-reference-content {
    width: min(var(--max-w), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 0 0 2.5rem;
}

/* App form grid */
.app-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.app-field { display: flex; flex-direction: column; gap: .3rem; }
.app-field-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.app-field label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
}
.app-field input,
.app-field select {
    padding: .65rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.app-field input:focus,
.app-field select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}
.app-field--action { align-items: flex-start; }
.app-field--wide { grid-column: span 3; }

/* App observatory */
.observatory-hero {
    grid-column: span 2;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    border: 1px solid rgba(228,221,213,.72);
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 88% 18%, rgba(226,180,127,.22) 0%, transparent 34%),
        radial-gradient(circle at 8% 8%, rgba(223,236,236,.88) 0%, transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(251,250,247,.84));
    box-shadow: 0 16px 46px rgba(38,56,60,.08);
}

.observatory-hero::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: rgba(134,169,170,.14);
    pointer-events: none;
}

.observatory-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.observatory-hero-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    color: var(--ink);
    letter-spacing: -.025em;
    margin: .9rem 0 .75rem;
}

.observatory-hero-copy p {
    color: var(--ink-mid);
    font-size: .98rem;
    line-height: 1.75;
}

.observatory-hero-card {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: var(--r-md);
    background: rgba(255,255,255,.72);
    box-shadow: 0 18px 42px rgba(38,56,60,.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.observatory-hero-card span,
.observatory-summary-label {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.observatory-hero-card strong {
    display: block;
    margin: .25rem 0 .35rem;
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--ink);
}

.observatory-hero-card p {
    color: var(--ink-mid);
    font-size: .86rem;
    line-height: 1.55;
}

.observatory-summary {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.observatory-summary-card {
    padding: 1.2rem;
    border: 1px solid rgba(38,56,60,.08);
    border-radius: var(--r-md);
    background: rgba(255,255,255,.92);
    box-shadow: 0 1px 0 rgba(38,56,60,.02);
    transition: transform .15s, border-color .15s;
}
.observatory-summary-card:hover {
    border-color: rgba(134,169,170,.45);
    transform: translateY(-1px);
}

.observatory-summary-card strong {
    display: block;
    margin-top: .35rem;
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    color: var(--ink);
    line-height: 1.1;
}

.observatory-summary-card p {
    margin-top: .25rem;
    color: var(--ink-soft);
    font-size: .84rem;
}

.observatory-table-panel {
    grid-column: span 2;
}

.observatory-table-panel .dash-panel-head {
    align-items: flex-start;
    gap: 1rem;
}

.compa-ratio {
    display: inline-block;
    min-width: 3.25rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.compa-ratio--ok {
    background: #d4f0e0;
    color: #1a6b4a;
}
.compa-ratio--under {
    background: #f7e7d2;
    color: #8a5a22;
}
.compa-ratio--over {
    background: #dfecec;
    color: #2f6b6d;
}
.compa-ratio--flat {
    background: rgba(38, 56, 60, .08);
    color: var(--ink-soft);
}

/* App info grid (observatory) */
.app-info-grid {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.app-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.app-info-list li {
    font-size: .86rem;
    color: var(--ink-mid);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}

.app-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

/* Responsive app content */
@media (max-width: 1024px) {
    .app-content { grid-template-columns: 1fr; padding: 1.25rem; }
    .app-content-intro,
    .app-page-hero,
    .app-panel-span { grid-column: span 1; }
    .app-page-hero { grid-template-columns: 1fr; padding: 1.25rem; }
    .app-form-grid { grid-template-columns: repeat(2, 1fr); }
    .app-field--wide { grid-column: span 2; }
    .responsive-table:has(.app-help) { overflow-x: auto; }
    .responsive-table .app-help-tooltip {
        top: calc(100% + .55rem);
        bottom: auto;
        transform: translate(-50%, -4px);
    }
    .responsive-table .app-help-tooltip::after {
        top: 0;
        transform: translate(-50%, -5px) rotate(45deg);
    }
    .responsive-table .app-help-tooltip--left {
        transform: translateY(-4px);
    }
    .responsive-table .app-help:hover .app-help-tooltip,
    .responsive-table .app-help:focus-within .app-help-tooltip {
        transform: translate(-50%, 0);
    }
    .responsive-table .app-help:hover .app-help-tooltip--left,
    .responsive-table .app-help:focus-within .app-help-tooltip--left {
        transform: translateY(0);
    }
    .reference-toolbar,
    .reference-grid-panel,
    .reference-share-panel,
    .settings-layout {
        grid-column: span 1;
    }
    .reference-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .reference-toolbar-group--action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
    .reference-toolbar-group--action .reference-toolbar-btn {
        width: 100%;
    }
    .settings-layout,
    .settings-grid-editor-head {
        grid-template-columns: 1fr;
    }
    .settings-nav {
        position: static;
    }
    .settings-general-section,
    .settings-account-list {
        grid-template-columns: 1fr;
    }
    .settings-account-list {
        grid-column: auto;
    }
    .settings-inline-actions {
        justify-content: flex-start;
    }
    .observatory-hero,
    .observatory-summary,
    .observatory-table-panel,
    .app-info-grid { grid-column: span 1; }
    .observatory-hero { grid-template-columns: 1fr; }
    .observatory-summary { grid-template-columns: 1fr; }
    .app-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .app-form-grid { grid-template-columns: 1fr; }
    .app-field--wide { grid-column: span 1; }
    .observatory-hero { padding: 1.25rem; }
    .reference-toolbar {
        grid-template-columns: 1fr;
    }
    .reference-share-box {
        align-items: stretch;
        flex-direction: column;
    }
    .settings-card-grid,
    .settings-level-head,
    .settings-band-row {
        grid-template-columns: 1fr;
    }
    .settings-form-actions {
        align-items: stretch;
        flex-direction: column;
        bottom: .5rem;
    }
    .observatory-table-panel .dash-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.install-form { width: min(100%, 760px); }

.form-section { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(247,231,210,.2); }
.form-section h2 { margin: 0 0 1rem; font-size: 1rem; color: var(--ink); }

.two-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.checkbox-label { grid-template-columns: auto 1fr !important; align-items: center; }
.checkbox-label input { width: auto; }

.inline-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; align-items: end; margin-bottom: 1rem; }
.inline-form label { margin: 0; }

/* App panels */
.section-heading {
    margin-bottom: 2rem;
}

.section-heading h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--ink);
    margin: .5rem 0 .75rem;
}

.section-heading > p {
    font-size: 1rem;
    color: var(--ink-mid);
    line-height: 1.7;
    max-width: 640px;
}

/* ─────────────────────────────────────────────
   FEATURE GRID (dashboard & observatoire)
───────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: transform .2s, box-shadow .2s;
}

.feature-card h2 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: .6rem;
}

.feature-card p {
    font-size: .9rem;
    color: var(--ink-mid);
    line-height: 1.65;
}

.link-card {
    display: block;
    text-decoration: none;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.panel, .metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.35rem;
}
.panel h2, .panel h3 { color: var(--ink); margin-bottom: .75rem; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.metric-card span { display: block; font-weight: 700; font-size: .85rem; color: var(--ink-mid); }
.metric-card strong { display: block; margin-top: .3rem; color: var(--sand); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; }

.panel-heading { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.grid-panel + .grid-panel { margin-top: 1rem; }
.muted { color: var(--ink-mid); }

.responsive-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: .88rem; }
th { color: var(--ink-mid); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }

.badge, .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 .75rem;
    color: var(--teal-dark);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .75rem;
}

.roadmap-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.roadmap-form {
    width: 100%;
    position: sticky;
    top: 88px;
}

.roadmap-form h2 {
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.roadmap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

.roadmap-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-mid);
    font-weight: 800;
    font-size: .88rem;
}

.roadmap-tab span {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding-inline: .35rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: .75rem;
}

.roadmap-tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.roadmap-tab.is-active span {
    background: rgba(255,255,255,.16);
    color: var(--white);
}

.roadmap-list .panel-heading {
    justify-content: space-between;
}

.roadmap-item {
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
}

.roadmap-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.roadmap-item-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.roadmap-item h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--ink);
}

.roadmap-item > p {
    color: var(--ink-mid);
    white-space: normal;
}

.roadmap-item footer {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-top: .9rem;
    color: var(--ink-soft);
    font-size: .82rem;
}

.roadmap-status-form {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.roadmap-status-form select {
    min-width: 130px;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .85rem;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    background: var(--bg);
    text-align: center;
}

.empty-state h3 {
    font-family: var(--font-head);
    color: var(--ink);
    margin-bottom: .4rem;
}

.empty-state p {
    color: var(--ink-mid);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .feat-section .section-head { grid-template-columns: 1fr; gap: 1.25rem; }
    .feat-grid    { grid-template-columns: repeat(2, 1fr); }
    .feat-card--wide { grid-column: span 2; grid-row: auto; }
    .suite-grid,
    .how-grid,
    .home-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .product-roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
    .feature-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-hero-inner { grid-template-columns: 1fr; }
    .blog-hero-visual { justify-self: start; width: min(280px, 70%); }
    .blog-row { grid-template-columns: 7rem 1fr; }
    .blog-row-side {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: .65rem;
        text-align: left;
        min-width: 0;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card--main { grid-row: auto; }
    .roles-wrap   { grid-template-columns: 1fr; gap: 3rem; }
    .roles-grid   { grid-template-columns: 1fr; }
    .equal-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 860px) {
    .hero-float { display: none; }
    .hero-shot { animation: none; padding-inline: 0; }
    .hero-browser { width: 100%; max-width: none; }
    .hero-text,
    .hero-label,
    .hero-text h1,
    .hero-sub,
    .hero-actions,
    .hero-proof   { animation: none; opacity: 1; }

    .why-wrap         { grid-template-columns: 1fr; gap: 3rem; }
    .waitlist-wrap,
    .access-panel .waitlist-wrap { grid-template-columns: 1fr; }
    .footer-top       { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand-col { grid-column: auto; }
    .feature-grid     { grid-template-columns: 1fr 1fr; }
    .pricing-grid     { grid-template-columns: 1fr; }
    .pricing-layout   { grid-template-columns: 1fr; }
    .pricing-info-card { max-width: 520px; margin-inline: auto; }
    .pricing-perks-grid { grid-template-columns: 1fr; }
    .page-cta         { align-items: flex-start; flex-direction: column; }
    .roadmap-layout   { grid-template-columns: 1fr; }
    .roadmap-form     { position: static; }

    .main-nav, .header-cta .btn-ghost { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 640px) {
    .feat-grid         { grid-template-columns: 1fr; }
    .feat-card--wide   { grid-column: span 1; }
    .feat-card-inner   { grid-template-columns: 1fr; }
    .feat-card .mod-icon,
    .feat-card h3,
    .feat-card p,
    .feat-badge        { grid-column: auto; }
    .feat-card .mod-icon { grid-row: auto; margin-bottom: 1rem; }
    .suite-grid,
    .how-grid,
    .home-pricing-grid,
    .product-roadmap-grid,
    .stats-band-inner { grid-template-columns: 1fr; }
    .feature-grid      { grid-template-columns: 1fr; }
    .feature-detail-grid { grid-template-columns: 1fr; }
    .blog-row { grid-template-columns: 1fr; gap: .55rem; }
    .blog-row-side { grid-column: 1; }
    .blog-index-head { align-items: start; }
    .pricing-plans     { grid-template-columns: 1fr; }
    .pricing-card--tier,
    .pricing-card--wide { grid-column: span 1; }
    .metric-grid       { grid-template-columns: 1fr 1fr; }
    .hero-proof        { max-width: 360px; }
    .footer-nav-grid   { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-top { display: flex; flex-direction: column; }
    .footer-bottom     { flex-direction: column; gap: .75rem; text-align: center; }
    .two-columns       { grid-template-columns: 1fr; }
    .inline-form       { grid-template-columns: 1fr 1fr; }
    .roadmap-item-header,
    .roadmap-status-form { flex-direction: column; align-items: stretch; }
}

/* ── App layout responsive ── */
@media (max-width: 1024px) {
    .app-layout { grid-template-columns: 1fr; }
    .app-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 260px;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform .25s ease-out;
    }
    .app-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .dash-metrics   { grid-template-columns: 1fr; }
    .dash-grid      { grid-template-columns: 1fr; }
    .dash-panel--full { grid-column: span 1; }
    .app-topbar { padding: 1rem 1.25rem; }
    .dash-metrics { padding: 1rem 1.25rem; }
    .dash-grid { padding: 0 1.25rem 1.25rem; }
    .app-topbar,
    .dash-home,
    .app-content { padding-left: 1.25rem; padding-right: 1.25rem; }
    .dash-home { padding-top: 1rem; padding-bottom: 1.5rem; }
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
    .dash-kpis,
    .dash-split,
    .dash-tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .dash-kpis,
    .dash-split,
    .dash-tools-grid {
        grid-template-columns: 1fr;
    }
    .dash-welcome-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(38,56,60,.35);
    z-index: 299;
}
.sidebar-overlay.is-open { display: block; }

/* Mobile nav open state */
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(250,247,241,.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2rem var(--gutter);
    gap: .25rem;
    box-shadow: var(--shadow-lg);
    animation: navSlideIn .3s ease-out;
    overflow-y: auto;
}

@keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-nav.is-open .nav-link {
    font-size: 1.05rem;
    padding: .85rem 1.25rem;
    width: 100%;
    border-radius: var(--r-sm);
}

.main-nav.is-open .nav-link:hover,
.main-nav.is-open .nav-link.is-active {
    background: rgba(134,169,170,.12);
}

.main-nav.is-open .nav-link::after { display: none; }

.main-nav.is-open + .header-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem var(--gutter) 2rem;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
}

.main-nav.is-open + .header-cta .btn-ghost { display: inline-flex; }

/* Nav toggle becomes close icon */
.nav-toggle[aria-expanded="true"] svg rect:nth-child(1) {
    y: 3; transform: rotate(45deg) translate(2px, 0); transform-origin: center;
}
.nav-toggle[aria-expanded="true"] svg rect:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] svg rect:nth-child(3) {
    y: 17; transform: rotate(-45deg) translate(2px, 0); transform-origin: center;
}

/* ─────────────────────────────────────────────
   À PROPOS
───────────────────────────────────────────── */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.about-intro-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 1.1rem;
}

.about-intro-copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: #7A7263;
    margin: 0 0 1rem;
}

.about-intro-copy p:last-child { margin-bottom: 0; }

.about-intro-visual {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, #FBF6EE, #E7EFEB);
    border: 1px solid var(--border);
}

.about-intro-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.about-founder {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: clamp(2rem, 5vw, 3.25rem);
    align-items: center;
}

.about-founder-photo {
    margin: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 12px 40px rgba(62, 82, 84, .12);
    background: var(--sand-light);
}

.about-founder-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-founder-copy h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .85rem;
}

.about-founder-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1rem;
}

.about-founder-copy p:not(.section-label):not(.about-founder-lead) {
    font-size: 1rem;
    line-height: 1.7;
    color: #7A7263;
    margin: 0 0 1rem;
}

.about-founder-copy p:last-child { margin-bottom: 0; }

.how-card h3 em {
    font-style: normal;
    color: var(--teal-dark);
}

.about-beaver .landing-head {
    max-width: 720px;
}

.about-beaver-punch {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mint) !important;
    margin-top: 1.25rem !important;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.about-value {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem 1.25rem 1.75rem;
}

.about-value img {
    display: block;
    width: min(160px, 70%);
    height: auto;
    margin: 0 auto 1.1rem;
}

.about-value h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .55rem;
}

.about-value p {
    font-size: .875rem;
    line-height: 1.55;
    color: #7A7263;
    margin: 0;
}

@media (max-width: 1024px) {
    .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .about-intro,
    .about-founder {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-founder-photo {
        width: min(220px, 60vw);
        margin-inline: auto;
    }

    .about-intro-copy .section-label,
    .about-founder-copy .section-label {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .about-values { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   CHATBOT GUIDÉ
───────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chatbot {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 300;
    font-family: var(--font-body);
}

.chatbot-launcher {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 12px 28px -10px rgba(78, 119, 112, .55);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.chatbot-launcher:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(78, 119, 112, .6);
}

.chatbot-launcher:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.chatbot-launcher-icon,
.chatbot-launcher-close {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    transition: opacity .18s ease, transform .18s ease;
}

.chatbot-launcher-close {
    opacity: 0;
    transform: scale(.7) rotate(-45deg);
}

.chatbot.is-open .chatbot-launcher-icon {
    opacity: 0;
    transform: scale(.7) rotate(45deg);
}

.chatbot.is-open .chatbot-launcher-close {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.chatbot-badge {
    position: absolute;
    top: -.1rem;
    right: -.1rem;
    display: grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: var(--sand);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(200, 155, 110, .45);
    opacity: 0;
    transform: scale(.6);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.chatbot-badge.is-visible {
    opacity: 1;
    transform: scale(1);
}

.chatbot.is-open .chatbot-badge {
    opacity: 0;
    transform: scale(.6);
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(3.5rem + .75rem);
    display: none;
    flex-direction: column;
    width: min(22.5rem, calc(100vw - 2rem));
    height: min(32rem, calc(100vh - 7rem));
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(147, 222, 201, .22), transparent 55%),
        linear-gradient(165deg, #FFFCFA 0%, var(--cream) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chatbot.is-open .chatbot-panel {
    display: flex;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1rem .85rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
}

.chatbot-eyebrow {
    margin: 0;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal);
}

.chatbot-header h2 {
    margin: .1rem 0 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.chatbot-icon-btn {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink-mid);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.chatbot-icon-btn:hover {
    color: var(--teal-dark);
    border-color: var(--teal);
    background: var(--teal-light);
}

.chatbot-close:hover {
    color: var(--danger);
    border-color: #e0b4b4;
    background: #f8ecec;
}

.chatbot-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    scroll-behavior: smooth;
}

.chatbot-bubble {
    max-width: 88%;
    padding: .7rem .9rem;
    border-radius: 1rem;
    font-size: .9rem;
    line-height: 1.5;
    animation: chatbot-in .28s ease both;
}

.chatbot-bubble--bot {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--ink);
    border-bottom-left-radius: .35rem;
    box-shadow: var(--shadow-sm);
}

.chatbot-bubble--user {
    align-self: flex-end;
    background: var(--teal);
    color: var(--white);
    border-bottom-right-radius: .35rem;
}

.chatbot-bubble--typing {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .85rem 1rem;
}

.chatbot-bubble--typing span {
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: var(--teal);
    opacity: .45;
    animation: chatbot-dot 1.1s ease-in-out infinite;
}

.chatbot-bubble--typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-bubble--typing span:nth-child(3) { animation-delay: .3s; }

.chatbot-choices {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .15rem;
    animation: chatbot-in .28s ease both;
}

.chatbot-choice {
    display: block;
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.chatbot-choice:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    color: var(--teal-dark);
    transform: translateX(2px);
}

.chatbot-choice:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

@keyframes chatbot-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatbot-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: .35; }
    40% { transform: translateY(-3px); opacity: .9; }
}

@media (max-width: 640px) {
    .chatbot {
        right: 1rem;
        bottom: 1rem;
    }

    .chatbot-panel {
        width: calc(100vw - 2rem);
        height: min(70vh, 32rem);
    }
}

.is-app .chatbot {
    right: 1.1rem;
    bottom: 1.1rem;
}
