/* ============================================================
   LYNAKOR — Design system inspiré d'Atalas.ai (version FR réelle)
   Fond clair · typographie massive · minimalisme · noir/indigo
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --pub-bg:           #f5f5f9;
    --pub-bg-secondary: #ededf4;
    --pub-card:         #ffffff;
    --pub-card-hover:   #fafafe;
    --pub-elevated:     #f0f0f6;

    /* Text */
    --pub-text:         #0a0a14;
    --pub-text-muted:   #52526e;
    --pub-text-dim:     #9898b2;

    /* Accent principal — Indigo/bleu Lynakor */
    --pub-accent:          #4f52c8;
    --pub-accent-strong:   #3b3ea8;
    --pub-accent-dim:      rgba(79, 82, 200, 0.08);
    --pub-accent-dim2:     rgba(79, 82, 200, 0.04);

    /* Accent secondaire — Cyan */
    --pub-cyan:         #0891b2;
    --pub-cyan-dim:     rgba(8, 145, 178, 0.08);

    /* Borders */
    --pub-border:       rgba(10, 10, 20, 0.07);
    --pub-border-hover: rgba(10, 10, 20, 0.13);
    --pub-border-accent:rgba(79, 82, 200, 0.2);

    /* Gradients */
    --grad-primary:  linear-gradient(135deg, #4f52c8 0%, #7c6fd8 100%);
    --grad-text:     linear-gradient(135deg, #4f52c8 0%, #7c6fd8 60%, #0891b2 100%);
    --grad-card:     linear-gradient(135deg, rgba(79,82,200,0.04) 0%, rgba(124,111,216,0.02) 100%);
    --grad-hero:     #f5f5f9;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(10,10,20,0.07);
    --shadow-md:   0 4px 16px rgba(10,10,20,0.08);
    --shadow-lg:   0 8px 32px rgba(10,10,20,0.10);
    --shadow-xl:   0 16px 48px rgba(10,10,20,0.12);
    --shadow-nav:  0 2px 24px rgba(10,10,20,0.08);

    /* Typography */
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --max-width: 1200px;

    /* Transitions */
    --t-fast:   150ms ease;
    --t-base:   250ms ease;
    --t-slow:   400ms ease;

    /* Radii */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  14px;
    --r-xl:  20px;
    --r-2xl: 28px;
    --r-full: 9999px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pub-text-muted);
    background: var(--pub-bg);
    /* clip (pas hidden) : évite le scroll X iOS sans forcer overflow-y:auto */
    overflow-x: clip;
    max-width: 100%;
    min-height: 100vh;
}

a { color: var(--pub-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--pub-accent-strong); }
img { max-width: 100%; display: block; }

/* ── Accessibilité clavier ──────────────────────────────────── */
.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10050;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.6rem 0;
    background: var(--pub-text, #02002c);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(-120%);
    transition: transform 150ms ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--pub-accent, #215ed5);
    outline-offset: 3px;
    border-radius: 4px;
}

main:focus,
main:focus-visible { outline: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--pub-text);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }

/* Articles de blog — titre plus lisible */
.lyn-article-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Hero — titre grand intentionnellement */
.lyn-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.025em;
}

p { line-height: 1.7; }

/* ── Layout ─────────────────────────────────────────────────── */
.pub-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* ── Background décoratif — constellation ───────────────────── */
.pub-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Motif de points constellation subtil */
    background-image:
        radial-gradient(circle, rgba(79,82,200,0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.5;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.75rem;
    max-width: 1100px;
    margin: 1rem auto 0;
    position: sticky;
    top: 0.75rem;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    /* Flou sur ::before — backdrop-filter sur l'élément casse position:fixed des enfants */
    border: 1px solid var(--pub-border);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-nav);
    flex-wrap: nowrap;
    gap: 0.75rem;
    isolation: isolate;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    height: 30px;
    width: auto;
    transition: opacity var(--t-fast);
}
.site-logo:hover img { opacity: 0.8; }

.admin-brand img {
    display: block;
    height: 25px;
    width: auto;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.site-nav a,
.site-nav .site-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    color: var(--pub-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.4rem 0.875rem;
    border-radius: var(--r-full);
    transition: all var(--t-fast);
}

.site-nav a:hover,
.site-nav .site-nav-dropdown-toggle:hover {
    color: var(--pub-text);
    background: rgba(10,10,20,0.05);
}

.site-nav a.nav-active,
.site-nav .site-nav-dropdown-toggle.nav-active {
    color: var(--pub-accent);
    background: var(--pub-accent-dim);
    font-weight: 600;
}

.site-nav a.nav-active:hover,
.site-nav .site-nav-dropdown-toggle.nav-active:hover {
    color: var(--pub-accent);
    background: var(--pub-accent-dim);
}

.nav-clara {
    background: var(--pub-text) !important;
    color: #fff !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: var(--r-full) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: opacity var(--t-fast), transform var(--t-fast) !important;
    margin-left: 0.25rem;
}
.nav-clara:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Dropdown */
.site-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-nav-dropdown-toggle {
    align-self: stretch;
    cursor: pointer;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.site-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: max(100%, 210px);
    max-width: min(90vw, 28rem);
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    padding: 0.75rem 0.5rem 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: 0;
}

/* Pont invisible entre le toggle et le menu pour ne pas perdre le hover */
.site-nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu { display: block; }

.site-nav-dropdown-menu a,
.site-nav-dropdown-menu .nav-soon {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--r-lg);
    color: var(--pub-text-muted);
    white-space: nowrap;
}
.site-nav-dropdown-menu a:hover {
    background: var(--pub-accent-dim);
    color: var(--pub-accent);
}

/* Entrées « bientôt » : visibles mais non cliquables, contraste AA */
.nav-soon,
.nav-soon:hover {
    color: var(--pub-text-muted) !important;
    background: transparent !important;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
}

.site-footer .nav-soon,
.site-footer .nav-soon:hover {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Hamburger — caché sur desktop */
.nav-hamburger { display: none; }

/* Fil d'Ariane */
.site-breadcrumb {
    margin: 0 0 0.35rem;
    padding: 1.25rem 0 0.25rem;
}

.site-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pub-text-muted, #5c6578);
    font-size: 0.82rem;
    line-height: 1.3;
}

.site-breadcrumb__item:not(:last-child)::after {
    color: var(--pub-text-muted, #5c6578);
    content: '›';
    font-weight: 500;
    opacity: 0.75;
}

.site-breadcrumb__item a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.site-breadcrumb__item a:hover {
    color: var(--pub-accent, #215ed5);
}

.site-breadcrumb__item [aria-current="page"] {
    color: var(--pub-accent, #215ed5);
    font-weight: 600;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
    background: #02002c;
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.4fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1280px;
    margin: 0 auto 2rem;
    align-items: start;
}

.footer-brand { min-width: 0; max-width: 18rem; }

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 0;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 1.75rem;
}

.footer-tagline {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
}

.footer-social a {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-social a:hover {
    border-color: rgba(33, 94, 213, 0.7);
    background: rgba(33, 94, 213, 0.18);
    color: #fff;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    min-width: 0;
}

.footer-col h3 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li + li { margin-top: 0.45rem; }

.footer-col a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-col a:hover { color: #fff; }

.footer-col h3 a { color: inherit; text-decoration: none; transition: opacity 160ms ease; }
.footer-col h3 a:hover { opacity: 0.75; }

.footer-copy {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 1080px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { max-width: none; }
    .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.lyn-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 4rem;
    padding: 5rem 0 4rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.lyn-hero-text {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lyn-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyn-hero-visual img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
}

.lyn-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.025em;
}

/* ── Badge ──────────────────────────────────────────────────── */
.lyn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem 0.35rem 0.5rem;
    background: var(--pub-card);
    color: var(--pub-text-muted);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
}

.lyn-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--pub-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

/* ── Lead ───────────────────────────────────────────────────── */
.lyn-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pub-text-muted);
    margin: 0 0 1rem;
    max-width: none;
}
.lyn-lead strong { color: var(--pub-text); font-weight: 600; }

/* ── CTA Row ────────────────────────────────────────────────── */
.lyn-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.lyn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    transition: all var(--t-base);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

/* Bouton primaire = noir façon Atalas */
.lyn-btn-primary {
    background: var(--pub-text);
    color: #fff;
    border-color: var(--pub-text);
}
/* Flèche auto sur les CTA liens uniquement (pas sur les <button> de formulaire) */
a.lyn-btn-primary::after { content: ' →'; font-weight: 400; }
.lyn-btn-primary:hover {
    color: #fff;
    background: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Bouton secondaire = blanc avec bordure */
.lyn-btn-secondary {
    background: var(--pub-card);
    color: var(--pub-text);
    border-color: var(--pub-border-hover);
    box-shadow: var(--shadow-sm);
}
.lyn-btn-secondary:hover {
    color: var(--pub-text);
    background: var(--pub-card);
    border-color: var(--pub-border-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ── Sections ───────────────────────────────────────────────── */
.lyn-section {
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.lyn-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.lyn-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pub-text-muted);
    margin: 0 0 1.25rem;
    max-width: none;
}
.lyn-sub strong { color: var(--pub-text); font-weight: 600; }

.lyn-section--cta {
    text-align: center;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-sm);
}

.lyn-section--clara {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.lyn-section--clara::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

/* ── Stats ──────────────────────────────────────────────────── */
.lyn-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lyn-stat {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
    text-align: left;
    container-type: inline-size;
}

.lyn-stat:hover {
    border-color: var(--pub-border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.lyn-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 7cqi, 2.5rem);
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.lyn-stat-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pub-text);
    margin: 0 0 0.35rem;
}

.lyn-stat-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--pub-text-muted);
}

/* ── Pills ──────────────────────────────────────────────────── */
.lyn-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.lyn-pill {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}

.lyn-pill:hover {
    border-color: var(--pub-border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lyn-pill strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--pub-text);
    font-weight: 700;
}

.lyn-pill span {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--pub-text-muted);
}

/* Étiquette « Bientôt » pour les ressources/pages à venir */
.lyn-soon-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--pub-elevated);
    color: var(--pub-text-dim);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Pill cliquable : toute la carte est un lien vers une sous-page */
a.lyn-pill--link { text-decoration: none; cursor: pointer; }
a.lyn-pill--link strong { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
a.lyn-pill--link strong span { color: var(--pub-accent); font-size: 1.05rem; transition: transform var(--t-fast); }
a.lyn-pill--link:hover strong span { transform: translateX(3px); }

/* ── Steps ──────────────────────────────────────────────────── */
.lyn-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.lyn-step {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.lyn-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
    border-radius: inherit;
}

.lyn-step:hover {
    border-color: var(--pub-border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.lyn-step:hover::before { transform: scaleX(1); }

.lyn-step strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--pub-accent);
    font-weight: 700;
}

.lyn-step span {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--pub-text-muted);
}

/* ── Highlight block ────────────────────────────────────────── */
.lyn-highlight-block {
    border-left: 4px solid var(--pub-accent);
    background: var(--pub-accent-dim);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    padding: 1.75rem 2rem;
}

.lyn-highlight-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pub-accent);
    margin: 0 0 0.5rem;
}

.lyn-highlight-text {
    font-size: 1rem;
    color: var(--pub-text);
    margin: 0;
    line-height: 1.65;
}
.lyn-highlight-text strong { color: var(--pub-accent); font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────────── */
.lyn-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.lyn-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}

.lyn-card:hover {
    border-color: var(--pub-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lyn-card h3 { font-size: 1.1rem; color: var(--pub-text); font-weight: 700; }
.lyn-card p { font-size: 0.9rem; color: var(--pub-text-muted); line-height: 1.65; }

/* ── Tags ───────────────────────────────────────────────────── */
.lyn-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    background: var(--pub-accent-dim);
    color: var(--pub-accent);
    border: 1px solid var(--pub-border-accent);
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-heading);
}

/* ── Hero compact ───────────────────────────────────────────── */
.lyn-hero--compact {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    min-height: 0;
}
.lyn-hero--compact h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* ── Article hero image ─────────────────────────────────────── */
.lyn-article-hero-img {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin: 1.5rem 0 2rem;
}

.lyn-article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Blog list ──────────────────────────────────────────────── */
.lyn-blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.lyn-blog-list--home {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
    width: 100%;
    max-width: 100% !important;
    margin: 0;
}

.lyn-blog-img {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 0.5rem;
    aspect-ratio: 16/9;
    background: var(--pub-elevated);
}
.lyn-blog-img img { width: 100%; height: 100%; object-fit: cover; }

.lyn-blog-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}

.lyn-blog-card:hover {
    border-color: var(--pub-border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ── Carte blog entièrement cliquable (stretched link) ──────── */
.lyn-blog-card--clickable { position: relative; cursor: pointer; }
.lyn-blog-stretched::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Les tags restent cliquables au-dessus de l'overlay */
.lyn-blog-card--clickable .lyn-tag { position: relative; z-index: 2; }
.lyn-tag--link { cursor: pointer; text-decoration: none; transition: all var(--t-fast); }
.lyn-tag--link:hover { background: var(--pub-accent); color: #fff; border-color: var(--pub-accent); }
.lyn-blog-card--clickable:hover .lyn-blog-titre a { color: var(--pub-accent); }
.lyn-blog-card--clickable:hover .lyn-blog-lire { color: var(--pub-accent-strong); }

.lyn-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--pub-text-dim);
}

.lyn-blog-lecture { font-size: 0.78rem; color: var(--pub-text-dim); }

.lyn-blog-titre {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--pub-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.lyn-blog-titre a { color: var(--pub-text); transition: color var(--t-fast); }
.lyn-blog-titre a:hover { color: var(--pub-accent); }

.lyn-blog-extrait { font-size: 0.9rem; line-height: 1.65; color: var(--pub-text-muted); margin: 0; }

.lyn-blog-lire {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--pub-accent);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: gap var(--t-fast);
    margin-top: auto;
}
.lyn-blog-lire:hover { gap: 0.5rem; color: var(--pub-accent-strong); }

.lyn-blog-list--home .lyn-blog-card { padding: 1.25rem 1.5rem; gap: 0.5rem; box-shadow: var(--shadow-sm); }
.lyn-blog-list--home .lyn-blog-img { display: none; }
.lyn-blog-list--home .lyn-blog-titre { font-size: 1rem; }
.lyn-blog-list--home .lyn-blog-extrait {
    font-size: 0.83rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lyn-blog-list--home .lyn-blog-lire { font-size: 0.82rem; }

/* ── Team ───────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 2rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}
.team-card:hover { border-color: var(--pub-border-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.team-photo-wrap { flex-shrink: 0; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pub-border); }

.team-info { display: flex; flex-direction: column; gap: 0.35rem; }
.team-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--pub-text); letter-spacing: -0.01em; }
.team-role { font-size: 0.78rem; font-weight: 600; color: var(--pub-accent); text-transform: uppercase; letter-spacing: 0.06em; }
.team-bio { font-size: 0.875rem; line-height: 1.65; color: var(--pub-text-muted); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { }

.contact-form-wrap {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-field--full {
    margin-bottom: 1rem;
}

.contact-field label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pub-text);
}

.contact-field .required { color: var(--pub-accent); }
.contact-field .optional { color: var(--pub-text-dim); font-weight: 400; font-size: 0.8rem; }

.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-lg);
    color: var(--pub-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--t-fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--pub-text-dim); }

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px rgba(79,82,200,0.1);
}

.contact-field textarea { min-height: 140px; resize: vertical; }

.contact-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-submit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-legal {
    font-size: 0.78rem;
    color: var(--pub-text-dim);
    line-height: 1.5;
}
.contact-legal a { color: var(--pub-text-dim); text-decoration: underline; }
.contact-legal a:hover { color: var(--pub-accent); }

.contact-success {
    background: rgba(79,82,200,0.06);
    border: 1px solid var(--pub-border-accent);
    border-radius: var(--r-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.contact-success-title { font-family: var(--font-heading); font-weight: 700; color: var(--pub-text); margin-bottom: 0.5rem; }

.contact-error {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--r-lg);
    padding: 0.875rem 1rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

@media (max-width: 768px) {
    .contact-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Usages ─────────────────────────────────────────────────── */
.lyn-usages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.lyn-usage-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 2.25rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.lyn-usage-card:hover { border-color: var(--pub-border-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lyn-usage-header { margin-bottom: 1.1rem; }
.lyn-usage-card h3 { font-size: 1.1rem; color: var(--pub-text); margin: 0 0 0.85rem; line-height: 1.3; }
.lyn-usage-card p { color: var(--pub-text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0 0 1.5rem; }
.lyn-usage-metric {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--pub-border);
}
.lyn-usage-metric-value { font-family: var(--font-heading); font-weight: 700; color: var(--pub-text); margin-right: 0.45rem; }
.lyn-usage-metric-label { color: var(--pub-text-muted); font-size: 0.9rem; }

/* ── Page intro ─────────────────────────────────────────────── */
.page-intro { padding: 3rem 0 2rem; position: relative; z-index: 1; }
.page-intro h1 { margin-bottom: 1.25rem; }

/* ── Solutions ──────────────────────────────────────────────── */
.solution-hero { padding: 3rem 0 2.5rem; position: relative; z-index: 1; }
.solution-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.feature-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover { border-color: var(--pub-border-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Articles blog ──────────────────────────────────────────── */
.lyn-article-wrap {
    max-width: 100%;
}

.lyn-article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--pub-border);
}

.lyn-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--pub-text-dim);
}

.lyn-back {
    color: var(--pub-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    transition: color var(--t-fast);
}
.lyn-back:hover { color: var(--pub-accent); }

.lyn-article-extrait {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--pub-text-muted);
    margin: 0.75rem 0 0.5rem;
    font-weight: 400;
}

.lyn-article-auteur {
    font-size: 0.82rem;
    color: var(--pub-text-dim);
    margin: 0.5rem 0 0;
}

.lyn-article-hero-img {
    margin-top: 1.5rem;
    border-radius: var(--r-xl);
    overflow: hidden;
}
.lyn-article-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.lyn-article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pub-text-muted);
}

.lyn-article-body h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin: 2rem 0 0.75rem;
    color: var(--pub-text);
}

.lyn-article-body h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 1.5rem 0 0.5rem;
    color: var(--pub-text);
}

.lyn-article-body p { margin-bottom: 1.25rem; }

.lyn-article-body ul,
.lyn-article-body ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lyn-article-body li { line-height: 1.7; }

.lyn-article-body strong { color: var(--pub-text); font-weight: 600; }

.lyn-article-body a {
    color: var(--pub-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lyn-article-body a.lyn-btn {
    text-decoration: none;
}

.lyn-article-body blockquote {
    border-left: 4px solid var(--pub-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--pub-accent-dim);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    font-style: italic;
    color: var(--pub-text-muted);
}

.lyn-article-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pub-border);
}

/* ── Lien inline ─────────────────────────────────────────────── */
.lyn-link {
    color: var(--pub-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}
.lyn-link:hover { color: var(--pub-accent-strong); }

/* ── Section split (texte + image côte à côte) ──────────────── */
.lyn-section-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3.5rem;
    align-items: start;
}

.lyn-section-split--reverse {
    grid-template-columns: 2fr 3fr;
    direction: rtl;
}
.lyn-section-split--reverse > * {
    direction: ltr;
}

.lyn-section-split__visual {
    position: sticky;
    top: 6rem;
}

.lyn-section-split__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Visual system */
.lyn-section-split--visual {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1.05fr);
    gap: 4rem;
}

.lyn-section-split--reverse.lyn-section-split--visual {
    grid-template-columns: minmax(460px, 1.05fr) minmax(0, 1fr);
}

.lyn-visual-section {
    padding: 2rem 0;
}

.lyn-visual-figure {
    margin: 0;
}

.lyn-visual-figure--wide {
    margin-top: 2rem;
}

.lyn-visual-figure img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.lyn-system-map,
.lyn-bpmn-board {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    background:
        radial-gradient(circle at 20% 15%, rgba(79, 82, 200, 0.14), transparent 32%),
        radial-gradient(circle at 82% 80%, rgba(8, 145, 178, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,245,249,0.88));
    box-shadow: var(--shadow-lg);
}

.lyn-system-map {
    display: grid;
    gap: 0.85rem;
    padding: 1.5rem;
}

.lyn-system-map::before,
.lyn-bpmn-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,82,200,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,82,200,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,0.82), transparent 86%);
    pointer-events: none;
}

.lyn-system-node {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(79,82,200,0.12);
    border-radius: var(--r-xl);
    background: rgba(255,255,255,0.86);
    box-shadow: var(--shadow-sm);
}

.lyn-system-node span {
    width: max-content;
    padding: 0.18rem 0.5rem;
    border-radius: var(--r-full);
    background: var(--pub-accent-dim);
    color: var(--pub-accent-strong);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
}

.lyn-system-node strong {
    font-family: var(--font-heading);
    color: var(--pub-text);
}

.lyn-system-node small {
    color: var(--pub-text-muted);
    font-size: 0.84rem;
}

.lyn-system-node--core {
    border-color: var(--pub-border-accent);
    background: linear-gradient(135deg, rgba(79,82,200,0.11), rgba(255,255,255,0.9));
}

.lyn-system-rail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0 1rem;
}

.lyn-system-rail i {
    height: 2px;
    border-radius: var(--r-full);
    background: linear-gradient(90deg, transparent, rgba(79,82,200,0.45), transparent);
    animation: lynFlow 2.4s ease-in-out infinite;
}

.lyn-system-rail i:nth-child(2) { animation-delay: 0.18s; }
.lyn-system-rail i:nth-child(3) { animation-delay: 0.36s; }

.lyn-bpmn-board {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.lyn-bpmn-lane {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 96px repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(10,10,20,0.06);
    border-radius: var(--r-xl);
    background: rgba(255,255,255,0.74);
}

.lyn-bpmn-label {
    color: var(--pub-text-muted);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lyn-bpmn-node,
.lyn-bpmn-decision {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    border: 1px solid var(--pub-border);
    background: var(--pub-card);
    color: var(--pub-text);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.lyn-bpmn-node {
    border-radius: var(--r-lg);
}

.lyn-bpmn-node--accent {
    border-color: var(--pub-border-accent);
    background: var(--pub-accent-dim);
    color: var(--pub-accent-strong);
}

.lyn-bpmn-decision {
    width: 54px;
    height: 54px;
    justify-self: center;
    border-radius: var(--r-md);
    transform: rotate(45deg);
}

.lyn-bpmn-decision::before {
    content: '?';
    transform: rotate(-45deg);
    color: var(--pub-accent-strong);
}

.lyn-bpmn-decision {
    color: transparent;
}

@keyframes lynFlow {
    0%, 100% { opacity: 0.25; transform: scaleX(0.72); }
    50% { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .lyn-system-rail i {
        animation: none;
    }
}

.lyn-card--visual {
    padding: 0 !important;
    overflow: hidden;
}
.lyn-card--visual img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: var(--r-2xl);
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Constellation hero ─────────────────────────────────────── */
#hero-constellation {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.blog-filter-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: var(--pub-accent-dim);
    border: 1px solid var(--pub-border-accent);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--pub-text-muted);
}
.blog-filter-reset { color: var(--pub-accent); font-size: 0.8rem; font-weight: 600; }

/* ── Gradient text ──────────────────────────────────────────── */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Misc ───────────────────────────────────────────────────── */
.lyn-section--cta p { color: var(--pub-text-muted); }
.lyn-section--cta h2 { color: var(--pub-text); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .lyn-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pub-wrap { padding: 0 1.25rem 4rem; }
    .site-header { margin: 0.5rem; top: 0.5rem; padding: 0.75rem 1.25rem; border-radius: var(--r-2xl); }

    /* Nav cachée par défaut sur mobile */
    .site-nav { display: none; }

    /* Menu ouvert — plein écran */
    .site-nav.open {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        padding: 5rem 1.5rem 2rem !important;
        gap: 0 !important;
        overflow-y: auto !important;
    }

    .site-nav.open a {
        display: block !important;
        font-family: var(--font-heading) !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 0.875rem 0 !important;
        border-bottom: 1px solid rgba(10,10,20,0.08) !important;
        border-radius: 0 !important;
        color: var(--pub-text) !important;
        background: none !important;
        width: 100% !important;
        letter-spacing: -0.01em !important;
    }
    .site-nav.open a:hover,
    .site-nav.open a.nav-active { color: var(--pub-accent) !important; background: none !important; }

    /* Dropdown mobile — colonne, pas de rangée horizontale */
    .site-nav.open .site-nav-dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: static !important;
        width: 100% !important;
    }
    .site-nav.open .site-nav-dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 0.25rem 1rem !important;
    }
    .site-nav.open .site-nav-dropdown-menu a {
        display: block !important;
        width: 100% !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: var(--pub-text-muted) !important;
        padding: 0.55rem 0 !important;
        border-bottom: none !important;
    }
    .site-nav.open .site-nav-dropdown-toggle::after { display: none; }

    /* Bouton Clara en bas */
    .site-nav.open .nav-clara {
        margin-top: 1.5rem !important;
        padding: 0.875rem 1.5rem !important;
        border-radius: var(--r-full) !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        align-self: stretch !important;
        justify-content: center !important;
    }

    /* Hamburger */
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem;
        z-index: 10002;
        position: relative;
        flex-shrink: 0;
    }

    .nav-hamburger.open {
        position: fixed;
        top: 1.35rem;
        right: 1.35rem;
    }
    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--pub-text);
        border-radius: 999px;
        transition: all 0.25s ease;
        transform-origin: center;
    }
    .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Hero en colonne */
    .lyn-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
    .lyn-hero-visual { display: none; }
    .lyn-hero--compact { padding-top: 2rem; padding-bottom: 0.5rem; margin-bottom: 0; }

    .lyn-stats { grid-template-columns: 1fr; }
    .lyn-pill-grid { grid-template-columns: 1fr; }
    .lyn-steps { grid-template-columns: 1fr; }
    .lyn-grid-2 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-row { grid-template-columns: 1fr; }
    .lyn-section-split,
    .lyn-section-split--reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
    .lyn-section-split__visual { order: -1; }
    .lyn-contact-row { grid-template-columns: 1fr; }
    .lyn-blog-list--home { grid-template-columns: 1fr !important; }
    .team-card { flex-direction: column; }
    .lyn-system-map,
    .lyn-bpmn-board { padding: 1rem; }
    .lyn-bpmn-lane {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .lyn-bpmn-label { margin-bottom: 0.15rem; }
}

/* ── Demo page ───────────────────────────────────────────────── */
.demo-hero { }

.demo-explainer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: var(--content-width);
    margin: 0 auto 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--pub-accent-dim);
    border-left: 3px solid var(--pub-accent);
    border-radius: var(--r-lg);
    font-size: 0.85rem;
    color: var(--pub-text-muted);
}
.demo-explainer-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--pub-accent);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.demo-block {
    border-left: 3px solid var(--pub-border);
    padding-left: 2rem;
    position: relative;
}
.demo-block::before {
    content: '';
    position: absolute;
    left: -6px; top: 1.5rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--pub-accent);
    border: 2px solid var(--pub-bg);
}
.demo-block--first { border-color: var(--pub-accent); opacity: 0.6; }

.demo-block-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.demo-block-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pub-accent);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}
.demo-block-label {
    font-size: 0.75rem;
    color: var(--pub-text-muted);
}

.nav-demo {
    background: var(--pub-accent);
    color: #fff !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 999px;
    font-weight: 700;
}
.nav-demo:hover,
.nav-demo.nav-active { background: var(--pub-accent-strong) !important; color: #fff !important; opacity: 1 !important; }

/* ── Hero visual masqué (SVG avec fond blanc) ───────────────── */
.lyn-hero-visual--masked img {
    mix-blend-mode: multiply;
}

/* ── Anti-spam honeypot ───────────────────────────────────────── */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* ── Pagination blog ──────────────────────────────────────────── */
.lyn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.lyn-page-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lyn-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--pub-border);
    border-radius: var(--r-md);
    background: var(--pub-card);
    color: var(--pub-text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
}
.lyn-page:hover {
    border-color: var(--pub-border-accent);
    color: var(--pub-text);
    box-shadow: var(--shadow-sm);
}
.lyn-page.is-current {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    cursor: default;
}
.lyn-page.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.lyn-page--nav { font-weight: 500; }

@media (max-width: 640px) {
    .lyn-page--nav { padding: 0 0.6rem; font-size: 0.8rem; }
}

/* ── Réglementation : onglets et cartes ── */
.reg-tabs { margin-top: 2.5rem; }

.reg-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid var(--pub-border);
    margin-bottom: 2.5rem;
}

.reg-tab {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pub-text-muted);
    padding: 0.75rem 1.1rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.reg-tab:hover { color: var(--pub-text); background: var(--pub-accent-dim2); }
.reg-tab[aria-selected="true"] { color: var(--pub-accent-strong); border-bottom-color: var(--pub-accent); }

.reg-panel { display: none; }
.reg-panel.is-active { display: block; animation: regFade 0.3s ease; }

@keyframes regFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.reg-panel-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.75rem; }
.reg-panel-intro { color: var(--pub-text-muted); margin: 0 0 0.5rem; }
.reg-subhead { font-weight: 700; color: var(--pub-text); margin: 2.25rem 0 0.25rem; }

.reg-timeline { margin-top: 1.75rem; }

.reg-milestone {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--pub-border);
}
.reg-milestone:last-child { border-bottom: 1px solid var(--pub-border); }
.reg-milestone-date { font-weight: 800; color: var(--pub-accent-strong); }
.reg-milestone-body strong { display: block; color: var(--pub-text); margin-bottom: 0.3rem; }
.reg-milestone-body { color: var(--pub-text-muted); }

.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.reg-card {
    border: 1px solid var(--pub-border);
    border-radius: var(--r-2xl);
    padding: 1.75rem;
    background: #fff;
}
.reg-card h3 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.reg-card p { color: var(--pub-text-muted); margin: 0; }
.reg-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--pub-text-muted); }
.reg-card li { margin-bottom: 0.35rem; }

.reg-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.reg-tag--info { background: var(--pub-accent-dim); color: var(--pub-accent-strong); }
.reg-tag--warn { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.reg-tag--danger { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.reg-tag--ok { background: rgba(5, 150, 105, 0.12); color: #047857; }

.reg-rules { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.reg-rule {
    border: 1px solid var(--pub-border);
    border-left: 4px solid var(--pub-border-hover);
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    background: #fff;
}
.reg-rule strong { display: block; color: var(--pub-text); margin-bottom: 0.3rem; }
.reg-rule span { color: var(--pub-text-muted); }
.reg-rule--green { border-left-color: #059669; }
.reg-rule--orange { border-left-color: #d97706; }
.reg-rule--red { border-left-color: #dc2626; }

.reg-note {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: var(--pub-accent-dim2);
    border: 1px solid var(--pub-border);
    font-size: 0.9rem;
    color: var(--pub-text-muted);
}

@media (max-width: 640px) {
    .reg-milestone { grid-template-columns: 1fr; gap: 0.35rem; }
    .reg-tablist { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .reg-tab { white-space: nowrap; }
}

/* ── Réglementation : liens officiels ── */
.reg-links { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.reg-links li { margin-bottom: 0.55rem; }
.reg-links a { font-weight: 600; color: var(--pub-accent); }
.reg-links a::after { content: ' \2197'; font-size: 0.85em; }
.reg-links a:hover { color: var(--pub-accent-strong); text-decoration: underline; }

/* ============================================================
   ADMIN — Authentification + Chat Clara
   ============================================================ */

body.admin-auth-page .pub-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}
.admin-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}
.admin-auth-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}
.admin-auth-logo img { display: block; height: 30px; width: auto; }
.admin-auth-card h1 { margin: 0 0 .35rem; font-size: 1.7rem; }
.admin-auth-sub { color: var(--pub-text-muted); margin: 0 0 1.5rem; }
.admin-auth-form { display: flex; flex-direction: column; gap: .4rem; }
.admin-auth-form label { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.admin-auth-form input {
    padding: .75rem .9rem;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    font: inherit;
    background: var(--pub-bg);
    color: var(--pub-text);
}
.admin-auth-form input:focus {
    outline: none;
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-dim);
}
.admin-auth-form button { margin-top: 1.25rem; }
.admin-auth-error {
    background: rgba(200, 30, 30, 0.08);
    color: #b02020;
    border: 1px solid rgba(200, 30, 30, 0.2);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .9rem;
    margin-bottom: 1rem;
}

/* ── Chat ── */
.clara-chat {
    max-width: 860px;
    margin: 2rem auto 3rem;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 320px);
}
.clara-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pub-border);
    margin-bottom: 1.25rem;
}
.clara-chat-head h1 { margin: 0; font-size: 1.6rem; }
.clara-chat-status { margin: .2rem 0 0; color: var(--pub-text-muted); font-size: .9rem; }
.clara-chat-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.clara-btn-sm { padding: .5rem .9rem; font-size: .85rem; }

.clara-notice {
    padding: .8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: .92rem;
}
.clara-notice--warn {
    background: rgba(180, 120, 0, 0.08);
    border: 1px solid rgba(180, 120, 0, 0.22);
    color: #8a5a00;
}
.clara-notice code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 5px; }

.clara-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: .5rem;
    max-height: 62vh;
    scroll-behavior: smooth;
}
.clara-empty {
    margin: auto;
    color: var(--pub-text-dim);
    text-align: center;
    padding: 2rem;
}
.clara-msg { display: flex; }
.clara-msg--user { justify-content: flex-end; }
.clara-msg--assistant { justify-content: flex-start; }
.clara-bubble {
    max-width: 82%;
    padding: .75rem 1rem;
    border-radius: 16px;
    line-height: 1.55;
    font-size: .95rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.clara-msg--user .clara-bubble {
    background: var(--grad-primary);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.clara-msg--assistant .clara-bubble {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    border-bottom-left-radius: 5px;
}
.clara-bubble p:first-child { margin-top: 0; }
.clara-bubble p:last-child { margin-bottom: 0; }
.clara-bubble pre {
    background: #0f1020;
    color: #e6e6f0;
    padding: .8rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .85rem;
    margin: .5rem 0;
}
.clara-bubble code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
}
.clara-bubble :not(pre) > code {
    background: rgba(79,82,200,0.1);
    padding: .1rem .35rem;
    border-radius: 5px;
}
.clara-bubble a { color: var(--pub-accent-strong); text-decoration: underline; }

.clara-dots { display: inline-flex; gap: 4px; align-items: center; height: 1em; }
.clara-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--pub-text-dim);
    animation: clara-blink 1.2s infinite ease-in-out both;
}
.clara-dots i:nth-child(2) { animation-delay: .2s; }
.clara-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes clara-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.clara-input {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pub-border);
}
.clara-input-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.clara-voice-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    color: var(--pub-text-muted);
    cursor: pointer;
    user-select: none;
}
.clara-voice-toggle input { accent-color: var(--pub-accent); }
.clara-mic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--pub-border);
    border-radius: 50%;
    background: var(--pub-card);
    color: var(--pub-text);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.clara-mic-btn:hover:not(:disabled) {
    border-color: var(--pub-accent);
    color: var(--pub-accent-strong);
}
.clara-mic-btn.is-recording {
    background: rgba(200, 30, 30, 0.12);
    border-color: #c03030;
    color: #c03030;
    animation: clara-pulse 1.2s infinite;
}
.clara-mic-btn:disabled { opacity: .5; cursor: not-allowed; }
@keyframes clara-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,48,48,.35); } 50% { box-shadow: 0 0 0 8px rgba(192,48,48,0); } }
.clara-input-row {
    display: flex;
    gap: .6rem;
    align-items: flex-end;
}
.clara-recording {
    margin: 0;
    font-size: .85rem;
    color: #c03030;
}
.clara-voice-label {
    margin: 0 0 .35rem;
    font-size: .78rem;
    font-weight: 600;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.clara-audio {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-top: .65rem;
}
.clara-input-row textarea {
    flex: 1;
    resize: none;
    padding: .75rem 1rem;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    font: inherit;
    line-height: 1.4;
    background: var(--pub-bg);
    color: var(--pub-text);
    max-height: 160px;
}
.clara-input textarea:focus {
    outline: none;
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-dim);
}
.clara-input-row button { white-space: nowrap; }
.clara-input-row textarea:disabled, .clara-input-row button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
    .clara-bubble { max-width: 90%; }
    .clara-messages { max-height: 58vh; }
}
.clara-empty--error { color: #b02020; }

/* ============================================================
   ADMIN SHELL — navigation, dashboard, formulaires
   ============================================================ */

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: var(--pub-bg);
}
.admin-sidebar {
    background: var(--pub-card);
    border-right: 1px solid var(--pub-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--pub-text);
    font-weight: 700;
}
.admin-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-nav a {
    padding: .65rem .85rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--pub-text-muted);
    font-weight: 500;
}
.admin-nav a:hover { background: var(--pub-accent-dim); color: var(--pub-text); }
.admin-nav a.is-active {
    background: var(--pub-accent-dim);
    color: var(--pub-accent-strong);
    font-weight: 600;
}
.admin-sidebar-foot {
    border-top: 1px solid var(--pub-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.admin-user { font-weight: 600; font-size: .9rem; margin: 0 0 .25rem; }
.admin-link-muted { font-size: .85rem; color: var(--pub-text-muted); text-decoration: none; }
.admin-link-muted:hover { color: var(--pub-accent); }

.admin-main { padding: 2rem; overflow-x: auto; }
.admin-page { max-width: 1100px; }
.admin-page--narrow { max-width: 520px; }
.admin-page-head { margin-bottom: 1.75rem; }
.admin-page-head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-page-head h1 { margin: 0 0 .35rem; font-size: 1.75rem; }
.admin-page-sub { margin: 0; color: var(--pub-text-muted); }
.admin-page-sub a { color: var(--pub-accent); }

.admin-flash {
    padding: .75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .92rem;
}
.admin-flash--success { background: rgba(20, 140, 60, 0.1); border: 1px solid rgba(20, 140, 60, 0.25); color: #1a7a3a; }
.admin-flash--error { background: rgba(200, 30, 30, 0.08); border: 1px solid rgba(200, 30, 30, 0.2); color: #b02020; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.admin-stat {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.admin-stat-label { font-size: .82rem; color: var(--pub-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-stat strong { font-size: 1.5rem; color: var(--pub-text); }
.admin-stat span:last-child { font-size: .85rem; color: var(--pub-text-dim); }

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}
a.admin-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem 1.3rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    scroll-margin-top: 1rem;
}
a.admin-kpi:hover {
    border-color: var(--pub-border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: inherit;
}
.admin-kpi__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pub-accent);
}
.admin-kpi__value {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.15;
}
.admin-kpi__meta {
    font-size: 0.88rem;
    color: var(--pub-text-muted);
    line-height: 1.4;
}
.admin-kpi__cta {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pub-accent-strong);
}
#conversations, #crons, #couts { scroll-margin-top: 1.25rem; }

.admin-section-title { font-size: 1.15rem; margin: 2rem 0 1rem; }
.admin-subsection-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    margin: 1.25rem 0 0.75rem;
}
.admin-page-head--compact { margin-bottom: 0.5rem; }
.admin-audience {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pub-border);
}
.admin-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.admin-stats--funnel {
    margin-bottom: 1.5rem;
}
.admin-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 160px;
    padding: 1rem 0.75rem 0.35rem;
    margin-bottom: 1.5rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    overflow-x: auto;
}
.admin-chart__col {
    flex: 1 1 0;
    min-width: 14px;
    max-width: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}
.admin-chart__bar {
    width: 100%;
    min-height: 2px;
    background: var(--grad-primary);
    border-radius: 4px 4px 0 0;
}
.admin-chart__label {
    font-size: 0.58rem;
    color: var(--pub-text-dim);
    transform: rotate(-55deg);
    transform-origin: top center;
    white-space: nowrap;
    height: 1.6rem;
    margin-top: 0.15rem;
}
@media (max-width: 720px) {
    .admin-chart__label { display: none; }
    .admin-chart { height: 120px; }
}
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--pub-border); border-radius: 14px; background: var(--pub-card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--pub-border); }
.admin-table th { background: var(--pub-bg-secondary); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--pub-text-muted); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.is-active-row { background: var(--pub-accent-dim2); }
.admin-table code { font-size: .82em; background: var(--pub-bg); padding: .15rem .4rem; border-radius: 5px; }
.admin-table-actions { display: flex; gap: .75rem; align-items: center; white-space: nowrap; }
.admin-table-actions form { display: inline; margin: 0; }
.admin-link-danger { background: none; border: none; color: #b02020; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.admin-tag {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--pub-accent-dim);
    color: var(--pub-accent-strong);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
}
.admin-empty, .admin-notice { color: var(--pub-text-muted); padding: 1rem 0; }
.admin-notice { background: rgba(180, 120, 0, 0.08); border: 1px solid rgba(180, 120, 0, 0.2); border-radius: 12px; padding: 1rem; color: #8a5a00; }

.admin-form { display: flex; flex-direction: column; gap: .5rem; }
.admin-form label { font-weight: 600; font-size: .9rem; margin-top: .5rem; }
.admin-form input[type="email"],
.admin-form input[type="text"],
.admin-form input[type="tel"],
.admin-form input[type="password"] {
    padding: .75rem .9rem;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    font: inherit;
    background: var(--pub-card);
}
.admin-form .form-help, .admin-form .help-block { font-size: .85rem; color: var(--pub-text-muted); }
.admin-form button { margin-top: 1rem; align-self: flex-start; }

/* Admin — annule les contraintes pub-wrap de la charte Graphite (padding 6rem, max-width…) */
body.lyn-site.admin-shell-page .pub-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body.lyn-site.admin-shell-page:has(.clara-chat) {
    height: 100%;
    overflow: hidden;
}
body.lyn-site.admin-shell-page .pub-wrap:has(.clara-chat) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
body.lyn-site.admin-shell-page .admin-shell:has(.clara-chat) {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
body.lyn-site.admin-shell-page .admin-main:has(.clara-chat) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1.25rem 1.5rem 0;
    overflow: hidden;
    box-sizing: border-box;
}
body.lyn-site.admin-shell-page .admin-main .clara-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.lyn-site.admin-shell-page .admin-main .clara-chat-head,
body.lyn-site.admin-shell-page .admin-main .clara-notice { flex-shrink: 0; }
body.lyn-site.admin-shell-page .admin-main .clara-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}
body.lyn-site.admin-shell-page .admin-main .clara-input {
    flex-shrink: 0;
    margin-top: 0;
    padding: 1rem 0 1.25rem;
    background: var(--pub-bg);
    border-top: 1px solid var(--pub-border);
}

@media (max-width: 768px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { height: auto; position: relative; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-main { padding: 1rem; }
}

/* ── Cookie consent (CNIL) ─────────────────────────────────── */
.lyn-cookie-banner {
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    pointer-events: none;
}
.lyn-cookie-banner[hidden] { display: none !important; }
.lyn-cookie-banner__inner {
    pointer-events: auto;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
}
.lyn-cookie-banner__copy {
    flex: 1 1 18rem;
    min-width: 0;
}
.lyn-cookie-banner__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pub-text);
    margin: 0 0 0.35rem;
}
.lyn-cookie-banner__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--pub-text-muted);
}
.lyn-cookie-banner__text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lyn-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 0 0 auto;
}
.lyn-cookie-banner__btn {
    appearance: none;
    border-radius: var(--r-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.15rem;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.lyn-cookie-banner__btn--deny {
    background: transparent;
    color: var(--pub-text);
    border: 1px solid var(--pub-border-hover);
}
.lyn-cookie-banner__btn--deny:hover {
    border-color: var(--pub-text-muted);
    background: var(--pub-bg-secondary);
}
.lyn-cookie-banner__btn--grant {
    background: var(--pub-accent);
    color: #fff;
    border: 1px solid var(--pub-accent);
}
.lyn-cookie-banner__btn--grant:hover {
    background: var(--pub-accent-strong);
    border-color: var(--pub-accent-strong);
}
.footer-copy a[data-consent-open],
.footer-cookie-btn {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: 0;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
@media (max-width: 640px) {
    .lyn-cookie-banner__actions {
        width: 100%;
    }
    .lyn-cookie-banner__btn {
        flex: 1 1 calc(50% - 0.3rem);
        text-align: center;
    }
}

/* ── Admin blog ─────────────────────────────────────────── */
.admin-page--wide { max-width: 1200px; }
.admin-page--xl { max-width: 1480px; }
.admin-cell-muted { color: var(--pub-text-muted); font-size: .88rem; margin-top: .2rem; }
.admin-section-lead { margin: -0.35rem 0 1rem; max-width: 52rem; }
.admin-textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    font: inherit;
    line-height: 1.5;
    background: var(--pub-card);
    resize: vertical;
    box-sizing: border-box;
}
.admin-textarea--tall { min-height: 28rem; }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="tel"],
.admin-form input[type="password"],
.admin-form textarea.admin-textarea {
    width: 100%;
    box-sizing: border-box;
}
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.admin-form .admin-form-actions .lyn-btn,
.admin-form .admin-form-actions button {
    margin-top: 0;
    align-self: auto;
}
.admin-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    margin: .75rem 0;
}
.admin-check--inline { margin: 0; font-size: .88rem; font-weight: 500; }
.admin-check input { width: auto; margin: 0; }
.admin-field { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.admin-field-label { font-weight: 600; font-size: .9rem; }
.admin-field-hint { margin: .25rem 0 0; font-size: .82rem; color: var(--pub-text-muted); }

.admin-table--blog { border-collapse: separate; border-spacing: 0; }
.admin-table--blog th,
.admin-table--blog td {
    vertical-align: middle;
    border-bottom: 1px solid var(--pub-border);
}
.admin-table--blog tr:last-child th,
.admin-table--blog tr:last-child td { border-bottom: none; }
.admin-table--blog tr.is-next-row { background: var(--pub-accent-dim2); }
.admin-table-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    white-space: nowrap;
}
.admin-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.admin-tag-list .admin-tag { margin-left: 0; }
.admin-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--pub-bg-secondary);
    color: var(--pub-text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.admin-badge--accent {
    background: var(--pub-accent-dim);
    color: var(--pub-accent-strong);
}
.admin-callout {
    background: var(--pub-accent-dim2);
    border: 1px solid var(--pub-border-accent, var(--pub-border));
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1.5rem;
    max-width: 52rem;
}
.admin-callout p { margin: 0 0 .65rem; color: var(--pub-text-muted); line-height: 1.55; }
.admin-callout p:last-child { margin-bottom: 0; }
.admin-callout strong { color: var(--pub-text); }
.admin-stats--compact { margin-bottom: 1.5rem; max-width: 28rem; }

.admin-blog-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.admin-blog-split--editorial { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 1100px) {
    .admin-blog-split,
    .admin-blog-split--editorial { grid-template-columns: 1fr; }
}
.admin-blog-panel {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    min-width: 0;
}
.admin-md { font-size: .95rem; line-height: 1.65; color: var(--pub-text); }
.admin-md h1 { font-size: 1.4rem; margin: 0 0 1rem; }
.admin-md h2 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
.admin-md h3 { font-size: 1.02rem; margin: 1.25rem 0 .5rem; }
.admin-md p, .admin-md li { color: var(--pub-text-muted); }
.admin-md ul, .admin-md ol { padding-left: 1.25rem; }
.admin-md hr { border: 0; border-top: 1px solid var(--pub-border); margin: 1.5rem 0; }
.admin-md-table-wrap { overflow-x: auto; margin: 1rem 0; }

.admin-blog-plan-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-blog-plan-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.15rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.admin-blog-plan-card.is-next {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pub-accent) 35%, transparent);
}
.admin-blog-plan-card--new { border-style: dashed; }
.admin-blog-plan-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}
.admin-blog-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
@media (max-width: 720px) {
    .admin-blog-plan-grid { grid-template-columns: 1fr; }
}

.admin-quill-shell {
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.admin-quill-shell .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--pub-border);
    background: var(--pub-bg-secondary);
}
.admin-quill-shell .ql-container.ql-snow {
    border: none;
    font-family: inherit;
    font-size: 1rem;
}
.admin-quill-shell .ql-editor {
    min-height: 380px;
    line-height: 1.65;
}
.admin-quill-shell .ql-editor h2 { font-size: 1.35rem; margin: 1.25rem 0 .6rem; }
.admin-quill-shell .ql-editor h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
