:root {
  --ink: #14232b;
  --ink-2: #3c4f59;
  --muted: #6b7d86;
  --line: #dfe5e3;
  --bg: #f6f4ef;
  --card: #ffffff;
  --brand: #0f5c55;
  --brand-2: #127a70;
  --brand-soft: #e3f0ec;
  --accent: #e8743b;
  --accent-soft: #fdeee4;
  --ok: #2f7d4f;
  --ok-soft: #e4f3ea;
  --warn: #a86a00;
  --warn-soft: #fbf1dc;
  --bad: #b0362f;
  --bad-soft: #fbe6e4;
  --bg-alt: #efebe2;
  --grey-block: #7b7b7b;
  --font-title: Fraunces, Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,35,43,.05), 0 4px 16px rgba(20,35,43,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; font-family: Inter, sans-serif; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px; background: rgba(246,244,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: Fraunces, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: .04em; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 1.05rem; position: relative; }
.logo-mark::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
#nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 500; position: relative; }
#nav a:hover { background: var(--brand-soft); text-decoration: none; }
#nav a.active { color: var(--brand); background: var(--brand-soft); }
.badge-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }

main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }

/* Boutons & formulaires */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 500;
  cursor: pointer; background: var(--brand); color: #fff; transition: background .15s, transform .05s; text-decoration: none !important; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.accent { background: var(--accent); } .btn.accent:hover { background: #d4632c; }
.btn.danger { background: var(--card); color: var(--bad); border-color: #ecc7c3; } .btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 6px 11px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }
.hint { font-size: 13px; color: var(--muted); }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.item-card { display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; color: inherit; }
.item-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.item-card h3 { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 500; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ouverte, .pill.en_attente { background: var(--warn-soft); color: var(--warn); }
.pill.pourvue, .pill.acceptee { background: var(--ok-soft); color: var(--ok); }
.pill.terminee { background: var(--brand-soft); color: var(--brand); }
.pill.annulee, .pill.refusee, .pill.retiree { background: var(--bad-soft); color: var(--bad); }
.pill.invitation { background: var(--accent-soft); color: var(--accent); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.price { font-weight: 600; color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 1px; }
.layout-side { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar.centre { background: var(--accent); border-radius: 12px; }
.who { display: flex; align-items: center; gap: 12px; }
.who small { display: block; color: var(--muted); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; font-weight: 500; }

/* Filtres */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 20px; align-items: end; }
.filters .field { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: Fraunces, serif; font-size: 2rem; line-height: 1.1; color: var(--brand); }
.stat span { color: var(--muted); font-size: 13.5px; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table-wrap { overflow-x: auto; }

/* Messagerie */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 190px); min-height: 460px; padding: 0; overflow: hidden; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: inherit; }
.conv:hover { background: var(--bg); text-decoration: none; }
.conv.active { background: var(--brand-soft); }
.conv b { display: block; font-size: 14px; }
.conv small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fbfaf7; }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.bubble time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-form textarea { min-height: 44px; height: 44px; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
.hero h1 { font-size: 3rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; }
.hero-visual { position: relative; height: 340px; }
.hv-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(20,35,43,.1); width: 260px; }
.hv-card.a { top: 10px; left: 0; } .hv-card.b { top: 120px; right: 0; } .hv-card.c { bottom: 0; left: 40px; }
.hv-line { position: absolute; inset: 0; pointer-events: none; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how ol { padding-left: 20px; margin: 0; } .how li { margin-bottom: 8px; }
.how .card h2 { display: flex; align-items: center; gap: 10px; }
.section-title { text-align: center; margin: 24px 0 24px; }

/* Auth */
.auth { max-width: 460px; margin: 20px auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-pick label { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; margin: 0; background: #fff; }
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.role-pick b { display: block; font-size: 15px; color: var(--ink); }

/* Modale & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20,35,43,.4); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: 10px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--bad); }
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif.unread b::before { content: '● '; color: var(--accent); }
.notif small { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .how, .layout-side, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-visual { display: none; } .hero h1 { font-size: 2.2rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .thread-body { min-height: 320px; }
  main { padding: 20px 16px 48px; }
  .topbar { padding: 10px 16px; }
}

/* Correctifs */
#nav a.btn { color: #fff; background: var(--brand); }
#nav a.btn:hover { background: var(--brand-2); }
.cards > .card, .how > .card, .stack > .card, .layout-side > aside > .card { margin-top: 0; }

/* Matching */
.match { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.match:first-of-type { border-top: 0; }
.score { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 50%; font-weight: 700; font-variant-numeric: tabular-nums; border: 3px solid; }
.score.haut { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.score.moyen { color: var(--warn); border-color: #e2b85c; background: var(--warn-soft); }
.score.bas { color: var(--muted); border-color: var(--line); background: var(--bg); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.points li { padding-left: 20px; position: relative; }
.points li.plus::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.points li.vig { color: var(--warn); }
.points li.vig::before { content: '!'; position: absolute; left: 5px; font-weight: 700; }
.synthese { background: var(--brand-soft); border-radius: 9px; padding: 10px 14px; font-size: 14px; }
.ia-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }



/* ---------- Sections de la page d'accueil ---------- */
/* Pages publiques : sections pleine largeur */
main.public { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: 72px; }
.sec.alt { background: var(--bg-alt); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.hl { color: var(--brand); }
.hl-o { color: var(--accent); }

.k-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 56px 72px; }
.k-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.k-hero .lead { font-size: 1.05rem; color: var(--ink-2); max-width: 470px; }
.k-hero .lead b { color: var(--brand); font-weight: 600; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; display: flex; flex-direction: column; gap: 8px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0; }
.sec-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin: 4px 0 0; font-size: 1rem; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* Blocs arrondis colorés avec maquette d'interface */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.1fr; }
.split.rev .split-visual { order: 2; }
.split-text { display: flex; flex-direction: column; gap: 12px; }
.split-text h2 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.split-text p { color: var(--ink-2); margin: 0; }
.split-text .btn { align-self: flex-start; margin-top: 8px; }
.split-visual { position: relative; min-height: 360px; }
.blob { position: absolute; inset: 0 22% 0 0; border-radius: 0 56px 56px 0; }
.split.rev .blob { inset: 0 0 0 22%; border-radius: 56px 0 0 56px; }
.blob.orange { background: var(--accent); }
.blob.blue { background: var(--brand); }
.blob.grey { background: var(--grey-block); }
.mock { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(17,28,46,.18); overflow: hidden; }
.mock .bar { height: 18px; background: #f1f3f7; display: flex; gap: 4px; align-items: center; padding: 0 8px; }
.mock .bar i { width: 6px; height: 6px; border-radius: 50%; background: #cfd5df; }
.mock .body { padding: 14px; display: grid; gap: 8px; }
.mock .row-l { height: 8px; border-radius: 4px; background: #e9edf3; }
.mock .row-l.b { background: var(--brand-soft); } .mock .row-l.o { background: var(--accent-soft); }
.mock-main { width: 62%; right: 0; top: 14%; }
.split.rev .mock-main { left: 0; right: auto; }
.mock-side { width: 44%; left: 4%; bottom: 6%; }
.split.rev .mock-side { left: auto; right: 4%; }
.donut { --p: 82; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), #e9edf3 0); display: grid; place-items: center; margin: 4px auto; }
.donut::after { content: attr(data-label); width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 1.2rem Inter, sans-serif; color: var(--ink); }
.mock .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock .kpis span { height: 34px; border-radius: 6px; background: var(--bg-alt); }
.mock .kpis span:nth-child(2) { background: var(--brand-soft); }
.mock .person { display: flex; align-items: center; gap: 8px; }
.mock .person b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mock .person b.bl { background: var(--brand); }
.mock .chip { font-size: 10.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 2px 8px; justify-self: start; }

.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.join h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; }
.quote { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; color: var(--ink-2); font-style: italic; margin-top: 24px; }
.quote b { display: block; font-style: normal; font-size: 13.5px; color: var(--ink); margin-top: 6px; }
.join-visual { position: relative; min-height: 300px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); overflow: hidden; }
.cta-band { background: var(--brand); color: #fff; text-align: center; }
.cta-band .wrap { padding-block: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.cta-band p { margin: 0; opacity: .9; }
.btn.white { background: #fff; color: var(--brand); }
.btn.white:hover { background: var(--brand-soft); }
.btn.outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn.outline-w:hover { background: rgba(255,255,255,.12); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card .big { font: 800 2.2rem var(--font-title); color: var(--brand); }
.price-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.price-card li { margin-bottom: 6px; }

/* Pied de page */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.site-footer h4 { font: 700 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer .brand-name { font: 700 1.1rem var(--font-title); color: var(--brand); margin-bottom: 8px; }
.site-footer .copy { border-top: 1px solid var(--line); padding-block: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .k-hero, .split, .split.rev, .join, .price-grid { grid-template-columns: 1fr; }
  .split.rev .split-visual { order: 0; }
  .features, .featured { grid-template-columns: 1fr 1fr; }
  .split-visual { min-height: 300px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .sec { padding-block: 48px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 520px) { .features, .featured { grid-template-columns: 1fr; } }
.home-intro .hero { padding-top: 40px; }
.home-intro { padding-bottom: 64px; }

/* ---------- Illustrations ---------- */
.photo { position: absolute; border-radius: 16px; overflow: hidden; background: #ece6d9; box-shadow: 0 18px 40px rgba(20,35,43,.18); border: 4px solid #fff; }
.photo svg { display: block; width: 100%; height: 100%; }
.photo.side { width: 50%; aspect-ratio: 4 / 3; left: 2%; bottom: 2%; }
.split.rev .photo.side { left: auto; right: 2%; }
.photo.main-photo { width: 64%; aspect-ratio: 4 / 3; left: 0; top: 8%; }
.hero-visual { height: 380px; }
.photo.hero-photo { inset: 24px 24px 24px 56px; border-radius: 24px; }
.hv-card { z-index: 2; }
.hv-card.a { top: 0; left: 0; } .hv-card.b { top: 150px; right: -6px; } .hv-card.c { bottom: 0; left: 24px; }
.join-visual svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.join-visual { min-height: 340px; }
.join-visual .mock { z-index: 1; }

/* ---------- Animations ---------- */
@keyframes kl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kl-rise { from { transform: translateY(36px); opacity: 0; } }
@keyframes kl-blob { from { transform: translateX(-48px) scale(.96); } }
@keyframes kl-blob-r { from { transform: translateX(48px) scale(.96); } }
@keyframes kl-grow { from { transform: scaleY(0); } }
@keyframes kl-point { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes kl-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes kl-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .25; } }
@keyframes kl-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }
@keyframes kl-shake { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes kl-draw { from { stroke-dashoffset: 260; } }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes kl-donut { from { --p: 0; } }

/* Hero : entrée au chargement puis cartes qui flottent */
.hero h1 { animation: kl-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation: kl-rise .8s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero .actions { animation: kl-rise .8s .24s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo { animation: kl-rise 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.hv-card { animation: kl-float 6s ease-in-out infinite; }
.hv-card.b { animation-delay: -2s; } .hv-card.c { animation-delay: -4s; }

/* Apparition au défilement (le contenu est visible tant que l'animation n'a pas démarré) */
.reveal.in { animation: kl-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.split-visual.reveal.in { animation: none; }
.split-visual.in .blob { animation: kl-blob 1s cubic-bezier(.2,.7,.2,1) both; }
.split.rev .split-visual.in .blob { animation-name: kl-blob-r; }
.split-visual.in .mock, .split-visual.in .photo, .join-visual.in .mock { animation: kl-rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.split-visual.in .photo { animation-delay: .3s; }
.in .donut { animation: kl-donut 1.6s .4s ease-out both; }
.features.in .feature { animation: kl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.features.in { animation: none; }
.features.in .feature:nth-child(2) { animation-delay: .1s; } .features.in .feature:nth-child(3) { animation-delay: .2s; } .features.in .feature:nth-child(4) { animation-delay: .3s; }
.featured.in > * { animation: kl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.featured.in { animation: none; }
.featured.in > :nth-child(2) { animation-delay: .1s; } .featured.in > :nth-child(3) { animation-delay: .2s; }

/* Vie dans les illustrations */
.photo .bar, svg .bar { transform-box: fill-box; transform-origin: bottom; animation: kl-grow 1s cubic-bezier(.2,.7,.2,1) both; }
svg .trend { stroke-dasharray: 260; animation: kl-draw 1.6s .6s ease-out both; }
svg .point { transform-box: fill-box; transform-origin: 100% 100%; animation: kl-point 2.4s ease-in-out infinite; }
svg .note { animation: kl-sway 4s ease-in-out infinite; }
svg .speak { animation: kl-pulse 1.4s ease-in-out infinite; }
svg .leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: kl-sway 5s ease-in-out infinite; }
svg .leaf.l2 { animation-delay: -2s; }
svg .spark { transform-box: fill-box; transform-origin: center; animation: kl-twinkle 2.6s ease-in-out infinite; }
svg .spark.s2 { animation-delay: -1s; } svg .spark.s3 { animation-delay: -1.8s; }
svg .hands { animation: kl-shake 1.2s ease-in-out infinite; }

/* Micro-interactions */
.btn { transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,35,43,.14); }
.feature .ico { transition: transform .25s; }
.feature:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.featured .card { transition: transform .2s, box-shadow .2s; }
.featured .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,35,43,.12); }

@media (max-width: 860px) {
  .hero-visual { display: block; height: 300px; margin-top: 8px; }
  .photo.hero-photo { inset: 16px 0 16px 0; }
  .hv-card { width: 220px; padding: 12px 14px; } .hv-card.b { right: 0; top: 120px; } .hv-card.c { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Cartes du hero placées autour de l'illustration sans masquer la formatrice */
.hv-card.a { top: 0; left: 0; }
.hv-card.b { top: auto; bottom: 64px; right: -8px; }
.hv-card.c { bottom: -8px; left: 24px; }
@media (max-width: 860px) {
  .hv-card.a { width: 200px; }
  .hv-card.b { display: none; }
}
/* Détails animés des illustrations détaillées */
@keyframes kl-steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .7; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes kl-lamp { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
svg .steam { animation: kl-steam 3s ease-in-out infinite; }
svg .lamp { transform-box: fill-box; transform-origin: 50% 0; animation: kl-lamp 6s ease-in-out infinite; }
svg .point-hand { animation: kl-point 2.4s ease-in-out infinite; transform-box: view-box; transform-origin: 282px 138px; }
svg .point { transform-box: view-box; transform-origin: 282px 138px; }
/* Illustrations plus grandes dans les blocs colorés */
.photo.side { width: 62%; left: 0; bottom: 0; }
.split.rev .photo.side { right: 0; }
.split-visual .mock-main { width: 50%; top: 6%; }
.photo.main-photo { width: 72%; top: 4%; }
@media (max-width: 860px) { .photo.side { width: 70%; } }

/* ---------- Menu ---------- */
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#nav a { transition: background .15s, color .15s; }
#nav a.active { position: relative; }
@media (min-width: 861px) {
  #nav a.active:not(.btn)::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: nowrap; }
  .menu-toggle { display: flex; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,35,43,.12);
    padding-block: 10px 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar.open #nav { display: flex; animation: kl-menu .2s ease-out; }
  #nav a { padding: 12px 14px; font-size: 16px; }
  #nav a.btn { justify-content: center; margin-top: 6px; }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
}
@keyframes kl-menu { from { opacity: 0; transform: translateY(-8px); } }
.price-grid > .card { margin-top: 0; }

/* ---------- Articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.articles-grid > .card { margin-top: 0; }
.article-card { padding: 0 0 20px; overflow: hidden; gap: 10px; }
.article-card > :not(.article-thumb) { margin-left: 20px; margin-right: 20px; }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #ece6d9; }
.article-thumb svg { display: block; width: 100%; height: 100%; transition: transform .4s; }
.article-card:hover .article-thumb svg { transform: scale(1.04); }
.article-card h3 { font-family: Fraunces, Georgia, serif; font-size: 1.15rem; line-height: 1.3; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lire { color: var(--brand); font-weight: 600; font-size: 14px; margin-top: auto; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0; }
.article .chapo { font-size: 1.15rem; color: var(--ink-2); }
.article h2 { font-size: 1.35rem; margin-top: 32px; }
.article p { font-size: 1.04rem; line-height: 1.75; }
.article-hero { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; margin: 24px 0 8px; box-shadow: var(--shadow); }
.article-hero svg { display: block; width: 100%; height: 100%; }
.article-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 36px; border-color: var(--accent); }
.articles-grid.in > * { animation: kl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.articles-grid.in { animation: none; }
.articles-grid.in > :nth-child(2) { animation-delay: .1s; } .articles-grid.in > :nth-child(3) { animation-delay: .2s; }
@media (max-width: 860px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card .extrait { margin-top: 0; margin-bottom: 0; }

/* ---------- Logo et images réelles ---------- */
.logo { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; gap: 8px; }
.logo img { display: block; height: 31px; width: auto; }
.logo .l1 { color: #1b2c4f; } .logo .l2 { color: var(--accent); }
.photo img, .article-thumb img, .article-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-thumb img { transition: transform .4s; }
.temoignages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.temoignages.in { animation: none; }
.temoignages.in > * { animation: kl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.temoignages.in > :nth-child(2) { animation-delay: .1s; } .temoignages.in > :nth-child(3) { animation-delay: .2s; }
.temoignage { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.temoignages > .card { margin-top: 0; }
.temoignage blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.temoignage figcaption { display: flex; align-items: center; gap: 12px; }
.temoignage figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-soft); }
.temoignage figcaption b { display: block; } .temoignage figcaption small { color: var(--muted); }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: var(--accent-soft); font-size: 14px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 860px) { .temoignages { grid-template-columns: 1fr; } }
.conv-sep { padding: 10px 16px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }

/* Photos de profil */
.avatar.a-photo { padding: 0; overflow: hidden; background: var(--brand-soft); }
.avatar.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.photo-edit .avatar.lg { width: 84px; height: 84px; }
.tag.plus { background: var(--bg); color: var(--muted); }

/* Compteur de l'annuaire des formateurs */
.page-head .compteur{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:132px;padding:12px 20px;border-radius:14px;background:var(--brand);color:#fff;text-align:center;box-shadow:0 6px 18px rgba(15,92,85,.18)}
.page-head .compteur b{font-family:'Fraunces',serif;font-size:2.1rem;line-height:1}
.page-head .compteur span{font-size:.82rem;opacity:.9;margin-top:4px}
.compteur-resultats{margin:0 0 14px;color:var(--muted,#5b6470)}
.compteur-resultats b{color:var(--brand)}

.item-card .clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}

/* Page Tarifs */
.offres{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
.offres.deux{grid-template-columns:repeat(2,1fr);max-width:820px;margin:0 auto}
.offre{position:relative;display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line,#e6e2d8);border-radius:18px;padding:28px 26px}
.offre.vedette{border:2px solid var(--brand);box-shadow:0 14px 36px rgba(15,92,85,.14)}
.offre-badge{position:absolute;top:-12px;left:24px;background:var(--accent);color:#fff;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px}
.offre h3{margin:0;font-size:1.15rem}
.offre-prix{display:flex;flex-direction:column;gap:2px}
.offre-prix b{font-family:'Fraunces',serif;font-size:2.3rem;line-height:1.05;color:var(--brand)}
.offre-prix span{font-size:13px;color:var(--muted)}
.offre p{margin:0;color:var(--muted)}
.offre ul{list-style:none;padding:0;margin:6px 0 10px;display:grid;gap:8px;flex:1}
.offre li{position:relative;padding-left:24px;font-size:14px}
.offre li::before{content:'✓';position:absolute;left:0;color:var(--brand);font-weight:700}
.offre .btn{text-align:center;justify-content:center}
.faq{max-width:760px;margin:64px auto 0}
.faq h2{text-align:center;margin-bottom:20px}
.faq details{background:#fff;border:1px solid var(--line,#e6e2d8);border-radius:12px;padding:14px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600}
.faq details p{margin:10px 0 0;color:var(--muted)}
@media (max-width:900px){.offres,.offres.deux{grid-template-columns:1fr}}

.lancement{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:center;background:#fdf0e8;border:1px solid #f4c9ae;color:#8a3d12;border-radius:12px;padding:12px 18px;margin:0 auto 36px;max-width:640px;text-align:center}
.lancement b{background:var(--accent);color:#fff;border-radius:999px;padding:3px 10px;font-size:13px}
.grille{max-width:760px;margin:48px auto 0}
.grille h2{text-align:center;margin-bottom:18px}
.grille table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line,#e6e2d8);border-radius:14px;overflow:hidden}
.grille th,.grille td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--line,#e6e2d8);vertical-align:top}
.grille th{background:#f3f0e8;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.grille tr:last-child td{border-bottom:0}
.grille td b{color:var(--brand)}
.grille tr.reduit td{background:#eef6f4}
.grille p{margin:10px 0 0;font-size:13px}

/* Facturation */
.factu td{vertical-align:top}
.factu .num{text-align:right;white-space:nowrap}
.factu tr.fait td{opacity:.55}

.offres.un{grid-template-columns:minmax(0,420px);justify-content:center}
.offre-prix b{word-break:break-word}

.offres.quatre{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.offres.quatre .offre{padding:24px 20px}
.offres.quatre .offre-prix b{font-size:1.9rem}
@media (max-width:1100px){.offres.quatre{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.offres.quatre{grid-template-columns:1fr}}

.offre ul{align-content:start}
.offres.quatre .offre.vedette .offre-prix b{font-size:1.55rem}
.offres.quatre .offre .btn{white-space:nowrap}

.offres .offre.vedette .offre-prix b{font-size:1.75rem;line-height:1.15}

.hors-budget{margin:22px 0 6px;font-size:1rem;color:var(--muted)}
.match.hors{opacity:.75}

/* Choix de la formule dans le formulaire de mission */
.formules{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.formule{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line,#e6e2d8);border-radius:12px;padding:12px 14px;cursor:pointer;background:#fff}
.formule:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 2px rgba(15,92,85,.12)}
.formule input{margin-top:3px}
.formule b{display:block}
.formule small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.field[hidden]{display:none}
@media (max-width:700px){.formules{grid-template-columns:1fr}}
.formule input{width:auto;flex:none;margin-top:4px}
.bandeau-email{border-color:var(--accent);background:#fdf6f1;margin-bottom:20px}

/* Champs obligatoires */
.req{color:#c62828;font-weight:700}

/* Tarifs : positionnement « service clé en main » */
.tarifs-intro{max-width:720px;margin:0 auto 40px;text-align:center}
.tarifs-intro p{margin:4px 0;color:var(--muted)}
.tarifs-intro p b{color:var(--ink,#1d2b33);font-size:1.1rem}
.offre-sous{margin:-4px 0 0;font-weight:600;color:var(--accent)}
.offre-inclus{margin:6px 0 -2px;font-weight:600;color:var(--ink,#1d2b33)!important}
.titre-section{text-align:center;margin:64px 0 24px}
.etapes{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.etape{background:#fff;border:1px solid var(--line,#e6e2d8);border-radius:14px;padding:20px}
.etape-num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700}
.etape h3{font-size:1rem;margin:12px 0 6px}
.etape p{margin:0;color:var(--muted);font-size:14px}
.exemple-mission{max-width:760px;margin:48px auto 0;background:#eef6f4;border-radius:16px;padding:24px 28px}
.exemple-mission h2{margin:0 0 8px;font-size:1.3rem}
.exemple-mission ol{margin:8px 0 12px;padding-left:20px;display:grid;gap:4px}
.exemple-note{margin:0;font-weight:600;color:var(--brand)}
@media (max-width:900px){.etapes{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.etapes{grid-template-columns:1fr}}
.offres .offre.vedette .offre-prix b{font-size:1.45rem}

/* Garantie continuité de mission */
.garantie{display:flex;gap:18px;align-items:flex-start;max-width:860px;margin:44px auto 0;background:var(--brand);color:#fff;border-radius:18px;padding:24px 28px;box-shadow:0 14px 36px rgba(15,92,85,.2)}
.garantie .ico{flex:none;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.15);color:#fff}
.garantie .ico svg{width:28px;height:28px}
.garantie h2{margin:0 0 6px;font-size:1.35rem;color:#fff}
.garantie p{margin:0;opacity:.92}

.hero-atouts{list-style:none;padding:0;margin:18px auto 22px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;max-width:820px}
.hero-atouts li{position:relative;padding-left:24px;font-weight:500}
.hero-atouts li::before{content:'✓';position:absolute;left:0;color:var(--brand);font-weight:700}
.offre .offre-valeur{color:var(--brand)!important;font-weight:500;font-size:14px}
.garantie p.garantie-fort{margin-top:10px;font-weight:600;opacity:1}

/* Page formateurs : atouts + aperçu du tableau de bord */
.rejoindre{align-items:center}
.rejoindre .atouts{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;margin:22px 0 28px}
.atout{display:flex;gap:12px;align-items:flex-start}
.atout .ico{flex:none;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--brand);color:#fff}
.atout .ico svg{width:19px;height:19px}
.atout h3{margin:0 0 2px;font-size:.98rem}
.atout p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.45}
.rejoindre-img img{width:100%;aspect-ratio:4/3.4;object-fit:cover;border-radius:18px;box-shadow:0 24px 60px rgba(17,28,46,.16);display:block}
.liste-check{list-style:none;padding:0;margin:16px 0 24px;display:grid;gap:10px}
.liste-check li{position:relative;padding-left:28px}
.liste-check li::before{content:'✓';position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;display:grid;place-items:center}
.dash-split{align-items:center}
.apercu-dash{background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(17,28,46,.16);overflow:hidden;border:1px solid #e6e9ef}
.kd-bar{height:30px;background:#f1f3f7;display:flex;align-items:center;gap:6px;padding:0 12px}
.kd-bar i{width:9px;height:9px;border-radius:50%;background:#cfd5df}
.kd-bar span{margin-left:10px;font-size:11.5px;color:#7a8394}
.kd-body{padding:18px;display:grid;gap:12px;font-size:13.5px}
.kd-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.kd-head b{font-size:16px;display:block}.kd-head small{color:var(--muted)}
.kd-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.kd-kpis div{background:var(--bg-alt);border-radius:10px;padding:10px;display:grid;gap:2px}
.kd-kpis div:nth-child(1){background:var(--brand-soft)}
.kd-kpis b{font-size:20px;color:var(--brand)}.kd-kpis em{font-style:normal;color:#f5a623;font-size:15px}
.kd-kpis span{font-size:11.5px;color:var(--muted);line-height:1.25}
.kd-notif{background:var(--accent-soft);border-radius:10px;padding:10px 12px;font-size:13px}
.kd-titre{font-weight:600;margin-top:4px}
.kd-mission{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #edf0f4;border-radius:10px}
.kd-mission>div{flex:1;display:grid}.kd-mission small{color:var(--muted)}
.kd-btn{font-size:12px;font-weight:600;color:#fff;background:var(--brand);border-radius:8px;padding:6px 10px}
.kd-cands{display:grid;gap:8px}
.kd-cands>span{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;background:var(--bg-alt);border-radius:8px}
@media (max-width:620px){.rejoindre .atouts{grid-template-columns:1fr}.kd-kpis{grid-template-columns:1fr 1fr}.kd-btn{display:none}}

/* Animations de la page formateurs */
.rejoindre-img{position:relative}
.ri-cadre{border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(17,28,46,.16)}
.rejoindre-img .ri-cadre img{box-shadow:none;border-radius:0;transition:transform 6s ease}
.rejoindre-img:hover .ri-cadre img{transform:scale(1.04)}
.ri-chip{position:absolute;background:#fff;border-radius:12px;box-shadow:0 14px 34px rgba(17,28,46,.18);padding:10px 14px;display:flex;align-items:center;gap:10px;font-size:13px}
.ri-chip b{display:block;font-size:13.5px}.ri-chip small{color:var(--muted)}
.ri-chip.a{left:-22px;bottom:34px}.ri-chip.b{right:-14px;top:26px;flex-direction:column;align-items:flex-start;gap:2px}
.rejoindre-img.in{animation:none}
.rejoindre-img.in .ri-cadre{animation:kl-entree-d .9s cubic-bezier(.2,.7,.2,1) both}
.rejoindre-img.in .ri-chip{animation:kl-pop .6s cubic-bezier(.3,1.4,.5,1) both,kl-float 6s 1.2s ease-in-out infinite}
.rejoindre-img.in .ri-chip.a{animation-delay:.6s,1.2s}.rejoindre-img.in .ri-chip.b{animation-delay:.85s,2.4s}
.rejoindre .split-text.in .atout{animation:kl-rise .7s cubic-bezier(.2,.7,.2,1) both}
.rejoindre .split-text.in .atout .ico{animation:kl-pop .5s cubic-bezier(.3,1.4,.5,1) both}
.rejoindre .split-text.in .atout:nth-child(1){animation-delay:0.24s}.rejoindre .split-text.in .atout:nth-child(1) .ico{animation-delay:0.39s}
.rejoindre .split-text.in .atout:nth-child(2){animation-delay:0.33s}.rejoindre .split-text.in .atout:nth-child(2) .ico{animation-delay:0.48s}
.rejoindre .split-text.in .atout:nth-child(3){animation-delay:0.42s}.rejoindre .split-text.in .atout:nth-child(3) .ico{animation-delay:0.57s}
.rejoindre .split-text.in .atout:nth-child(4){animation-delay:0.51s}.rejoindre .split-text.in .atout:nth-child(4) .ico{animation-delay:0.66s}
.rejoindre .split-text.in .atout:nth-child(5){animation-delay:0.60s}.rejoindre .split-text.in .atout:nth-child(5) .ico{animation-delay:0.75s}
.rejoindre .split-text.in .atout:nth-child(6){animation-delay:0.69s}.rejoindre .split-text.in .atout:nth-child(6) .ico{animation-delay:0.84s}
.atout .ico{transition:transform .25s}
.atout:hover .ico{transform:translateY(-3px) rotate(-8deg)}
/* Aperçu du tableau de bord : les éléments arrivent un à un */
.dash-split .reveal.in{animation:none}
.dash-split .reveal.in .apercu-dash{animation:kl-entree-d .9s cubic-bezier(.2,.7,.2,1) both}
.dash-split .reveal.in .kd-kpis>div,.dash-split .reveal.in .kd-notif,.dash-split .reveal.in .kd-mission,.dash-split .reveal.in .kd-cands>span{animation:kl-rise .6s cubic-bezier(.2,.7,.2,1) both}
.dash-split .reveal.in .kd-kpis>div:nth-child(1){animation-delay:0.35s}
.dash-split .reveal.in .kd-kpis>div:nth-child(2){animation-delay:0.43s}
.dash-split .reveal.in .kd-kpis>div:nth-child(3){animation-delay:0.51s}
.dash-split .reveal.in .kd-kpis>div:nth-child(4){animation-delay:0.59s}
.dash-split .reveal.in .kd-notif{animation-delay:0.67s}
.dash-split .reveal.in .kd-cands>span{animation-delay:1.11s}.dash-split .reveal.in .kd-cands>span+span{animation-delay:1.21s}
.dash-split .reveal.in .kd-mission .score{animation:kl-pop .5s cubic-bezier(.3,1.4,.5,1) both;animation-delay:inherit}
.kd-notif{position:relative}
.dash-split .reveal.in .kd-notif{animation:kl-rise .6s .67s cubic-bezier(.2,.7,.2,1) both,kl-halo 2.4s 1.6s ease-in-out 3}
.kd-mission{transition:transform .2s,box-shadow .2s,border-color .2s}
.kd-mission:hover{transform:translateX(4px);border-color:var(--brand-soft);box-shadow:0 8px 20px rgba(17,28,46,.08)}
.kd-btn{transition:transform .2s}.kd-mission:hover .kd-btn{transform:scale(1.06)}
.apercu-dash{animation:none}
.dash-split .liste-check li{transition:transform .2s}.dash-split .liste-check li:hover{transform:translateX(4px)}
/* Témoignages un par un */
.temoignages.in{animation:none}
.temoignages.in>*{animation:kl-rise .7s cubic-bezier(.2,.7,.2,1) both}
.temoignages.in>:nth-child(2){animation-delay:.12s}.temoignages.in>:nth-child(3){animation-delay:.24s}
.temoignage{transition:transform .2s,box-shadow .2s}.temoignage:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(20,35,43,.12)}
@keyframes kl-pop{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:scale(1)}}
@keyframes kl-entree-d{0%{opacity:0;transform:translateX(40px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes kl-halo{0%,100%{box-shadow:0 0 0 0 rgba(232,116,59,0)}50%{box-shadow:0 0 0 6px rgba(232,116,59,.18)}}
@media (max-width:620px){.ri-chip.a{left:8px;bottom:12px}.ri-chip.b{right:8px;top:12px}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.kd-kpis b span{font-size:inherit;color:inherit;line-height:inherit}

/* « Pourquoi rejoindre » : section coupée en deux, photo pleine hauteur à droite, bord à bord */
.rejoindre-sec{display:block;padding:0;overflow:hidden}
.rejoindre-sec .rejoindre{display:grid;grid-template-columns:1fr 1fr;min-height:560px;align-items:stretch}
.rejoindre-sec .split-text{align-self:center;padding:72px 56px 72px max(24px,calc((100vw - 1120px)/2 + 24px))}
.rejoindre-sec .rejoindre-img{position:relative;min-height:100%}
.rejoindre-sec .ri-cadre{position:absolute;inset:0;border-radius:0;box-shadow:none}
.rejoindre-sec .ri-cadre img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:40% center}
.rejoindre-sec .ri-chip.a{left:28px;bottom:32px}.rejoindre-sec .ri-chip.b{right:28px;top:32px}
@media (max-width:860px){
  .rejoindre-sec .rejoindre{grid-template-columns:1fr;min-height:0}
  .rejoindre-sec .split-text{padding:48px 16px}
  .rejoindre-sec .rejoindre-img{min-height:300px}
  .rejoindre-sec .ri-chip.a{left:12px;bottom:14px}.rejoindre-sec .ri-chip.b{right:12px;top:14px}
}
.rejoindre-sec .ri-cadre{border-radius:36px 0 0 36px}
@media (max-width:860px){.rejoindre-sec .ri-cadre{border-radius:28px 28px 0 0}}
/* Agents IA */
.badge-ia{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;letter-spacing:.02em;color:#6b4bd6;background:#f1ecff;border-radius:999px;padding:3px 10px}
.ia-card{border:1.5px dashed #c9b8ff;background:linear-gradient(180deg,#fbf9ff,#fff)}
.ia-card h2{margin:10px 0 6px;font-size:1.1rem}
.ia-besoin{border-radius:14px;padding:18px;margin:6px 0 22px}
.ia-besoin textarea{width:100%;margin:10px 0}
.ia-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:10px 0}
.ia-fichier{cursor:pointer}
.btn.link{background:none;border:none;color:var(--brand);padding:6px 4px;text-decoration:underline;box-shadow:none}
.btn.link:hover{transform:none;box-shadow:none}
#cv-coller textarea{width:100%;margin-bottom:10px}
.ia-attente{display:flex;align-items:center;gap:10px;color:#6b4bd6;font-weight:500}
.spin{width:16px;height:16px;border:2px solid #d9ceff;border-top-color:#6b4bd6;border-radius:50%;display:inline-block;animation:kl-spin .8s linear infinite}
@keyframes kl-spin{to{transform:rotate(360deg)}}
.ia-rempli input,.ia-rempli textarea,.ia-rempli select,input.ia-rempli,textarea.ia-rempli{background:#eefaf3;border-color:#5cb88a;animation:kl-ia-flash 1.2s ease}
@keyframes kl-ia-flash{0%{box-shadow:0 0 0 0 rgba(92,184,138,.6)}100%{box-shadow:0 0 0 8px rgba(92,184,138,0)}}
.notice.err{background:#fdecea;color:#8a1c12}
@media (prefers-reduced-motion: reduce){.spin{animation:none!important}}
/* Admin : filtres des inscriptions */
.filtres{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.filtres button{border:1px solid #dfe3ea;background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer;color:var(--ink,#1d2733)}
.filtres button.actif{background:var(--brand);border-color:var(--brand);color:#fff}
.filtres .sep{width:1px;height:20px;background:#dfe3ea;margin:0 4px}
.actions-cell{white-space:nowrap}.actions-cell .btn{margin:2px 0}
#inscriptions .table-wrap{margin-top:14px;overflow-x:auto}

/* Animations allégées : on garde l'apparition douce des sections et les compteurs ;
   on retire les boucles infinies, les « pops », les halos et les effets décoratifs */
.hv-card,.ri-chip,.rejoindre-img.in .ri-chip,
svg .point,svg .note,svg .speak,svg .leaf,svg .spark,svg .hands,svg [class*="steam"]{animation:none!important}
.rejoindre-img.in .ri-chip{animation:kl-fondu .6s .5s ease both!important}
.dash-split .reveal.in .kd-notif{animation:kl-rise .6s .5s cubic-bezier(.2,.7,.2,1) both!important}
.rejoindre .split-text.in .atout,.rejoindre .split-text.in .atout .ico,
.dash-split .reveal.in .kd-kpis>div,.dash-split .reveal.in .kd-cands>span,.dash-split .reveal.in .kd-mission .score,
.features.in .feature,.featured.in>*,.temoignages.in>*{animation:none!important}
.rejoindre-img:hover .ri-cadre img{transform:none}
.feature:hover .ico,.atout:hover .ico{transform:none}
.split-visual.in .blob{animation:none!important}
@keyframes kl-fondu{from{opacity:0}to{opacity:1}}
svg .lamp,svg .point-hand{animation:none!important}
/* Articles : aucune animation (ni apparition, ni zoom au survol) */
.articles-grid > *, .articles-grid.in > *{animation:none!important}
.article-card:hover .article-thumb img,.article-card:hover .article-thumb svg{transform:none}
/* Accueil : vraies photos en quinconce sur les blocs colorés */
.photo.reel{border:none;border-radius:28px;background:#ddd;box-shadow:0 22px 50px rgba(20,35,43,.22)}
.photo.side.reel{width:46%;aspect-ratio:4/3;left:30%;bottom:-6%}
.photo.side.reel.portrait{aspect-ratio:1/1;width:40%;left:34%}
.split.rev .photo.side.reel{left:auto;right:30%}
.split.rev .photo.side.reel.portrait{right:34%}
.photo.main-photo.reel{width:56%;aspect-ratio:3/2;left:26%;top:auto;bottom:8%}
.split-visual:has(.reel){margin-bottom:28px}
@media (max-width:860px){
  .photo.side.reel,.photo.side.reel.portrait{width:52%;left:auto;right:4%;bottom:-4%}
  .split.rev .photo.side.reel,.split.rev .photo.side.reel.portrait{right:auto;left:4%}
  .photo.main-photo.reel{width:70%;left:4%}
}
.photo.main-photo.reel{left:8%;width:58%;bottom:6%}

/* Liste des formateurs : grandes photos (les photos du site font 400 px : nettes) */
.avatar.carte{width:120px;height:120px;font-size:2rem;box-shadow:0 0 0 3px #fff,0 4px 14px rgba(20,35,43,.14)}
.who.who-carte{flex-direction:column;align-items:flex-start;gap:12px}
.who.who-carte b{font-size:1.05rem}
@media (max-width:620px){.avatar.carte{width:96px;height:96px}}
.bandeau-suivi{border-left:4px solid var(--accent)}
.select-suivi{padding:6px 8px;border-radius:8px;border:1px solid #d8dde5;font:inherit;font-size:13px;background:#fff;max-width:200px}
/* Propositions de formateurs */
.proposition{border:1px solid #e6e9ef;border-radius:12px;padding:16px;margin-top:14px;display:grid;gap:10px}
.prop-msg{margin:0;padding:10px 12px;background:var(--bg-alt);border-radius:8px;font-size:14px}
.prop-prix,.calc-prop table{width:100%;border-collapse:collapse;font-size:14px}
.prop-prix td,.calc-prop td{padding:6px 0;border-bottom:1px solid #eef1f5}
.prop-prix td:last-child,.calc-prop td:last-child{text-align:right;font-weight:500}
.prop-prix tr.total td,.calc-prop tr.total td{font-weight:700;font-size:15px;border-bottom:none;color:var(--brand)}
.calc-prop{background:var(--bg-alt);border-radius:10px;padding:10px 14px;margin:4px 0 16px}
.choix-commission{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:8px}
.cv-ico{width:72px;height:72px;border-radius:12px;background:var(--brand-soft);display:grid;place-items:center;font-size:30px}

.pill.badge-test{background:#efe7ff;color:#5b3fc4;font-weight:700;letter-spacing:.03em}

.pill.badge-urgent{background:#fde4dc;color:#b23c12;font-weight:700}

/* Tableau de bord admin : chiffres cliquables */
a.stat.stat-lien{text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s,border-color .15s;cursor:pointer}
a.stat.stat-lien:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(20,35,43,.1);border-color:var(--brand)}
a.stat.stat-lien span{color:var(--muted)}
a.stat.stat-lien:hover span{color:var(--brand)}
/* Pastilles « nouveau » sur les chiffres */
.stat.stat-lien{position:relative}
.pastille-nouveau{position:absolute;top:10px;right:10px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;box-shadow:0 3px 8px rgba(232,116,59,.35)}
/* Barre de filtres des listes */
.filtres-liste{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.filtres-liste input[type=search]{flex:1 1 220px;min-width:180px;padding:9px 12px;border:1px solid #d8dde5;border-radius:10px;font:inherit}
.filtres-liste select{padding:8px 10px;border:1px solid #d8dde5;border-radius:10px;font:inherit;font-size:14px;background:#fff;max-width:220px}
.compteur-liste{margin:0 0 10px}
/* Statistiques : histogrammes simples */
.barres{display:flex;align-items:flex-end;gap:6px;height:180px;padding-top:18px}
.barre-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.barre{width:100%;max-width:38px;background:var(--brand);border-radius:6px 6px 0 0;min-height:2px}
.barre-val{font-size:11px;color:var(--muted);margin-bottom:4px;white-space:nowrap}
.barre-lab{font-size:11px;color:var(--muted);margin-top:6px}
.stat small.hint{display:block;margin-top:4px;font-size:12px}
@media (max-width:620px){.barre-val{display:none}}
#st-zone h2{margin:34px 0 12px}#st-zone .card{margin-top:14px}

/* Accueil : photo du hero sur toute la moitié droite de la section (jusqu'au bord de l'écran) */
#app.public { overflow-x: clip; }
@media (min-width: 901px) { .home-intro .hero { grid-template-columns: 1fr 1fr; gap: 48px; } }
.home-intro .hero-visual { height: 540px; margin-right: calc(-1 * max(24px, (100vw - 1120px) / 2 + 24px)); }
.home-intro .photo.hero-photo { inset: 0 0 0 48px; border-radius: 28px 0 0 28px; border: 0; }
.home-intro .hv-card.a { top: 36px; left: 0; }
.home-intro .hv-card.b { top: auto; bottom: 120px; right: auto; left: calc(48px + 55%); }
.home-intro .hv-card.c { bottom: 28px; left: 0; }
.join-visual.join-photo { background: none; min-height: 0; aspect-ratio: 3 / 2; border-radius: 20px; box-shadow: 0 18px 40px rgba(20,35,43,.16); }
.join-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; }
@media (max-width: 900px) { .home-intro .hero-visual { height: 340px; margin-right: -16px; } .home-intro .photo.hero-photo { inset: 16px 0 16px 0; border-radius: 20px 0 0 20px; } .home-intro .hv-card.b { left: auto; right: 24px; } }

/* Photos sans bords arrondis ; « Rejoignez Kénalink » : photo collée en haut, en bas et à droite de la section */
.home-intro .photo.hero-photo { border-radius: 0; }
.join-sec { position: relative; overflow: hidden; }
.join-visual.join-photo { border-radius: 0; box-shadow: none; }
@media (min-width: 861px) {
  .join-sec .join { min-height: 420px; }
  .join-sec .join > div:first-child { padding-right: 32px; }
  .join-sec .join-photo { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; aspect-ratio: auto; }
}
@media (max-width: 860px) {
  .join-sec { padding-bottom: 0; }
  .join-sec .join-photo { margin: 8px -16px 0; }
}

/* Accueil : blocs « Boostez » et « Opportunités » comme sur l'ancien site (fond coloré jusqu'au bord de l'écran, photo à cheval sur le bord du fond) */
.bloc-centres, .bloc-formateurs, .bloc-talents { overflow-x: clip; }
@media (min-width: 861px) {
  .bloc-centres .blob { left: calc(-1 * max(24px, (100vw - 1120px) / 2 + 24px)); right: 22%; border-radius: 0 56px 56px 0; }
  .bloc-talents .blob { left: calc(-1 * max(24px, (100vw - 1120px) / 2 + 24px)); right: 22%; border-radius: 0 56px 56px 0; }
  .bloc-centres .mock-main { right: 0; left: auto; top: 6%; width: 52%; }
  .bloc-centres .photo.side.reel.portrait { left: 36%; right: auto; width: 32%; aspect-ratio: 4 / 5; bottom: -2%; }
  .bloc-centres .mock-main { width: 48%; }
  .bloc-formateurs .blob { left: 24%; right: calc(-1 * max(24px, (100vw - 1120px) / 2 + 24px)); border-radius: 56px 0 0 56px; }
  .bloc-formateurs .mock-main { right: 0; left: auto; top: 10%; width: 66%; }
  .bloc-formateurs .photo.side.reel { left: 0; right: auto; width: 46%; aspect-ratio: 16 / 10; bottom: 6%; }
  .split-visual:has(.reel) { margin-bottom: 0; }
}
/* « Rejoignez Kénalink » : section moins haute */
.join-sec { padding-block: 44px; }
@media (min-width: 861px) { .join-sec .join { min-height: 300px; } }
/* Illustration « Rejoignez » : affichée en entier sur fond blanc */
.join-visual.join-photo { background: #fff; }
.join-photo img { object-fit: contain; object-position: center; }
@media (max-width: 860px) { .join-sec { padding-bottom: 0; } }
.join-photo img { inset: 14% 10%; width: 80%; height: 72%; }
/* Photo d'équipe « Rejoignez » (remplace l'illustration), photo « Boostez » entière, photo « connecte les talents » plus petite */
.join-visual.join-photo { background: none; }
.join-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
@media (min-width: 861px) { .bloc-centres .photo.side.reel.portrait { aspect-ratio: 1717 / 1855; width: 38%; left: 32%; bottom: -4%; } }
.photo.main-photo.reel { width: 44%; left: 14%; }
@media (max-width: 860px) { .photo.main-photo.reel { width: 56%; left: 6%; } }
/* Espacement réduit entre les blocs Boostez / Opportunités / connecte les talents */
.bloc-centres, .bloc-formateurs, .bloc-talents { padding-block: 36px; }
.bloc-centres { padding-top: 72px; } .bloc-talents { padding-bottom: 72px; }
/* « connecte les talents » : la photo chevauche la carte 74 % */
.bloc-talents .photo.main-photo.reel { left: 20%; width: 48%; z-index: 2; bottom: 4%; }
.bloc-talents .mock { z-index: 1; }
/* « Rejoignez » : photo un peu plus petite, bords arrondis, dans la colonne de droite */
.join-sec .join-photo { position: relative !important; top: auto !important; bottom: auto !important; right: auto !important; width: 100% !important; margin: 0 !important; aspect-ratio: 16 / 10 !important; border-radius: 22px !important; overflow: hidden; box-shadow: 0 18px 40px rgba(20,35,43,.16) !important; }
.join-sec { padding-block: 48px !important; }
@media (min-width: 861px) { .join-sec .join { min-height: 0; } .join-sec .join-photo { width: 90% !important; justify-self: end; } }
.bloc-talents .photo.main-photo.reel { left: 26%; width: 46%; bottom: 10%; }
.article-card { padding-top: 20px; }
.bloc-talents .photo.main-photo.reel { left: 32%; }

/* Photos à cheval sur l'aperçu, sans cacher le pourcentage */
@media (min-width: 861px) {
  .bloc-centres .mock-main { top: 0; width: 54%; right: 0; }
  .bloc-centres .photo.side.reel.portrait { left: 18%; width: 34%; bottom: -6%; top: auto; }
  .bloc-formateurs .photo.side.reel { bottom: -2%; }
  .bloc-talents .mock-side { top: 0 !important; bottom: auto !important; }
  .bloc-talents .photo.main-photo.reel { left: 24%; width: 48%; bottom: -6%; top: auto; }
}
/* « Rejoignez » : photo plus grande */
@media (min-width: 861px) { .join-sec .join-photo { width: 100% !important; aspect-ratio: 3 / 2 !important; } }
/* Nom Kénalink plus grand dans l'en-tête */
.topbar .logo { font-size: 1.75rem; }
.topbar .logo img { height: 40px; }
/* Haut de page : bord gauche de la photo en oblique */
.home-intro .photo.hero-photo { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); box-shadow: none; }
@media (min-width: 861px) {
  .bloc-centres .photo.side.reel.portrait { left: 26%; }
  .bloc-talents .photo.main-photo.reel { left: 30%; bottom: 12%; }
}

/* Blog : titre centré, cartes avec photo comme sur l'ancien site */
.blog-head { text-align: center; margin-bottom: 32px; }
.blog-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 6px; }
.blog-head p { color: var(--muted); margin: 0; }
.blog-tous { text-align: center; margin: 28px 0 0; }
.article-card { text-align: center; align-items: center; padding: 0 0 22px; overflow: hidden; }
.article-card:not(.avec-photo) { padding-top: 22px; }
.article-card h3 { padding: 0 20px; margin: 0; }
.article-photo { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #ece6d9; margin: 0 0 6px !important; }
.article-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-photo img { transform: scale(1.04); }
.article-card .extrait { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 0 20px; margin: 6px 0 0; }
.article-date { font-size: 13px; }
.article-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article ul { padding-left: 22px; } .article li { font-size: 1.04rem; line-height: 1.7; margin-bottom: 4px; }
/* « connecte les talents » : aperçu et photo descendus, la photo déborde sous le cadre gris */
@media (min-width: 861px) {
  .bloc-talents .mock-side { top: 26% !important; }
  .bloc-talents .photo.main-photo.reel { bottom: -10%; }
}
/* Spécialités saisies une par une */
.spec-saisie { display: flex; gap: 8px; }
.spec-saisie input { flex: 1; }
.spec-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; min-height: 26px; align-items: center; }
.spec-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 500; }
.spec-tag button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 50%; }
.spec-tag button:hover { background: rgba(15,92,85,.12); }
.legal h3 { margin-top: 28px; } .legal h4 { margin: 18px 0 6px; font-size: 1rem; } .legal ul { padding-left: 22px; margin: 0 0 12px; } .legal li { margin-bottom: 4px; }
/* Page À propos */
.ap-head { text-align: center; padding-bottom: 32px; }
.ap-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.ap-head .lead { max-width: 760px; margin: 0 auto; font-size: 1.12rem; color: var(--ink-2); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.ap-grid h2 { font-size: 1.6rem; }
.ap-grid p { color: var(--ink-2); line-height: 1.7; }
.ap-etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ap-etapes li { display: flex; gap: 16px; align-items: flex-start; }
.ap-etapes li p { margin: 2px 0 0; }
.ap-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.ap-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; background: var(--bg-alt); border-radius: 18px; padding: 36px 24px; text-align: center; }
.ap-chiffres b { display: block; font: 800 2.6rem var(--font-title); color: var(--brand); line-height: 1.1; }
.ap-chiffres span { color: var(--ink-2); }
@media (max-width: 860px) { .ap-grid { grid-template-columns: 1fr; gap: 32px; } .ap-chiffres { grid-template-columns: 1fr; } }
/* Page Centres de formation */
.pc-hero { padding-block: 56px; }
.pc-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.pc-hero-txt { background: #fff; border-radius: 18px; padding: 36px 32px; box-shadow: 0 18px 44px rgba(20,35,43,.1); }
.pc-hero-txt h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1.1; text-align: center; margin-bottom: 16px; }
.pc-hero-txt p { color: var(--ink-2); }
.pc-hero-txt .btn { margin-top: 8px; }
.pc-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pc-carte { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; text-align: center; }
.pc-carte .ico { margin: 0 auto 14px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pc-carte .ico svg, .pc-outil .ico svg { width: 22px; height: 22px; }
.pc-carte h3 { margin: 0 0 8px; } .pc-carte p { margin: 0; color: var(--muted); font-size: 14px; }
.pc-outils-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.pc-outils { display: grid; gap: 16px; }
.pc-outil { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.pc-outil h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.pc-outil .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.pc-outil .ico svg { width: 18px; height: 18px; }
.pc-outil p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.pc-photo { margin: 0; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 18px 44px rgba(20,35,43,.12); }
.pc-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.pc-photo figcaption { text-align: center; padding: 16px 10px 6px; display: grid; gap: 4px; }
.pc-photo figcaption span { color: var(--muted); font-size: 14px; }
.pc-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pc-etape { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 18px; text-align: center; }
.pc-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.pc-num.n1, .pc-num.n3 { background: var(--brand); } .pc-num.n2, .pc-num.n4 { background: var(--accent); }
.pc-etape h3 { margin: 0 0 6px; } .pc-etape p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .pc-hero-grid, .pc-outils-grid { grid-template-columns: 1fr; } .pc-cartes { grid-template-columns: 1fr; } .pc-etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pc-etapes { grid-template-columns: 1fr; } .pc-hero-txt { padding: 26px 20px; } }
.pc-suivi { box-shadow: none; border-radius: 10px; }
.pc-frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11.5px; text-align: center; }
.pc-frise span { padding: 6px 2px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.pc-frise .fait { background: var(--brand); color: #fff; }
.pc-frise .cours { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
/* Compléter son profil (formateur) */
.cp { max-width: 780px; margin: 0 auto; }
.cp-tete { text-align: center; margin-bottom: 24px; }
.cp-tete p { color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.cp-form { display: grid; gap: 16px; }
.cp-form > .card + .card { margin-top: 0; }
.cp-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cp-titre h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.cp-num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.cp-etat { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.cp-etat.ok { background: var(--ok-soft); color: var(--ok); } .cp-etat.manque { background: var(--bad-soft); color: var(--bad); } .cp-etat.conseil { background: var(--bg-alt); color: var(--muted); }
.cp-fin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp .field .hint { display: block; margin-top: 4px; }
/* Espace admin : onglets et blocs « À traiter » */
.onglets-admin { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -8px 0 24px; overflow-x: auto; scrollbar-width: none; }
.onglets-admin a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 4px; }
.onglets-admin a:hover { color: var(--brand); text-decoration: none; }
.onglets-admin a.actif { color: var(--brand); border-bottom-color: var(--accent); font-weight: 600; }
.titre-bloc { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 12px; }
.a-faire { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 28px; }
.a-faire-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.a-faire-item:hover { text-decoration: none; border-color: var(--accent); }
.a-faire-item b { font: 700 1.6rem var(--font-title); color: var(--accent); }
.a-faire-item span { flex: 1; } .a-faire-item .fleche { flex: none; color: var(--muted); }
/* Indicateurs clés du tableau de bord admin */
.kpi-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.kpi-cle { background: var(--brand); color: #fff; border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 26px rgba(15,92,85,.18); }
.kpi-cle .kpi-lab { font-size: 13px; opacity: .85; font-weight: 500; }
.kpi-cle b { font: 700 2rem var(--font-title); line-height: 1.1; }
.kpi-cle .hint { color: rgba(255,255,255,.75); font-size: 12px; }
.kpi-evol { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; align-self: flex-start; background: rgba(255,255,255,.15); }
.kpi-evol.hausse { background: #d9f2e3; color: #1f6b3e; } .kpi-evol.baisse { background: #fde3dd; color: #a8382c; } .kpi-evol.neutre { color: rgba(255,255,255,.85); font-weight: 500; }
@media (max-width: 900px) { .kpi-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kpi-grille { grid-template-columns: 1fr; } }
.pill.confirmee { background: var(--ok-soft); color: var(--ok); } .pill.en_cours { background: var(--accent-soft); color: var(--accent); }
.bulle-auteur { display: block; font-size: 12px; color: var(--brand); margin-bottom: 2px; }
.thread-head .hint.k-trio { display: block; }
.zone-suppr { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding: 16px 18px; border: 1px solid #ecc7c3; border-radius: 12px; background: #fff; }
.offre-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-color: var(--brand); }
.reglage-com { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.reglage-com label { margin: 0; } .reglage-com input { width: 80px; }

/* Formateur : suivi des candidatures, étape par étape */
.suivi-card { margin-bottom: 14px; }
.suivi-etapes { list-style: none; display: flex; gap: 0; padding: 0; margin: 16px 0 4px; counter-reset: etape; }
.suivi-etapes li { flex: 1; position: relative; padding-top: 30px; font-size: .82rem; color: var(--ink-2); text-align: center; counter-increment: etape; }
.suivi-etapes li::before { content: counter(etape); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-weight: 600; font-size: .75rem; display: grid; place-items: center; z-index: 1; }
.suivi-etapes li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.suivi-etapes li:first-child::after { display: none; }
.suivi-etapes li.fait::before { content: '✓'; background: var(--ok, #2f855a); color: #fff; }
.suivi-etapes li.fait::after { background: var(--ok, #2f855a); }
.suivi-etapes li.actuel::before { content: counter(etape); background: var(--accent); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.suivi-etapes li.actuel { color: var(--ink); font-weight: 600; }
.suivi-etapes li.stop::before { content: '✕'; background: var(--bad, #c53030); color: #fff; }
.suivi-etapes li.stop { color: var(--bad, #c53030); font-weight: 600; }
.suivi-etapes { max-width: 520px; }
.suivi-etapes li.attente::before { content: '…'; }
@media (max-width: 560px) { .suivi-etapes li { font-size: .72rem; } }

/* Admin : audience du site */
.audience-graphe { width: 100%; height: 180px; display: block; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.audience-axe { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); margin-top: 4px; }
.audience-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.audience-grille .card { margin: 0; }
.audience-table { width: 100%; border-collapse: collapse; }
.audience-table td, .audience-table th { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.audience-table th { font-weight: 500; color: var(--ink-2); font-size: .8rem; }
.audience-barre { height: 4px; background: var(--line); border-radius: 2px; margin-top: 4px; }
.audience-barre span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* Proposition au centre : parcours anonyme du formateur */
.prop-descriptif { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--ok-soft, #eef6f2); border-radius: 6px; }
.prop-descriptif p { margin: 6px 0; white-space: pre-wrap; line-height: 1.5; }
.prop-descriptif small { display: block; margin-top: 4px; }

/* Coffre-fort des formateurs */
.coffre-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .coffre-grille { grid-template-columns: 1fr; } }
.doc-ligne { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-ligne:last-child { border-bottom: 0; }
.doc-ico { font-size: 1.6rem; line-height: 1; }
.doc-info { flex: 1; min-width: 200px; }
.doc-info .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.doc-groupe { padding: 6px 0; border-bottom: 1px solid var(--line); }
.partage-ligne { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.partage-ligne input { width: 100%; font-size: .8rem; }

/* ---------- Profil public partageable ---------- */
.sous-titre-form { font-size: 1.1rem; margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.parcours-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 6px; margin-bottom: 10px; background: #fbfaf7; }
.parcours-item.ia-rempli { background: #eefaf3; border-color: #5cb88a; }
.danger-text { color: #b3412e; padding-left: 0; }
.lien-copie { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lien-copie input { flex: 1 1 240px; min-width: 0; }
.avatar.xl { width: 120px; height: 120px; font-size: 2.4rem; flex-shrink: 0; }
.pp-tete { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.pp-id { flex: 1 1 320px; min-width: 0; }
.pp-id h1 { margin: 6px 0 2px; }
.pp-titre { margin: 0 0 10px; font-size: 1.1rem; color: var(--brand); font-weight: 600; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .95rem; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge-verif { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .85rem; font-weight: 600; }
.pp-cta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pp-parcours { list-style: none; margin: 0; padding: 0; }
.pp-parcours li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pp-parcours li:first-child { border-top: 0; padding-top: 0; }
.pp-parcours p { margin: 4px 0 0; color: #3d4b52; }
.pp-periode { color: var(--muted); font-size: .9rem; font-weight: 600; }
.pp-avis { padding: 10px 0; border-top: 1px solid var(--line); }
.pp-avis:first-of-type { border-top: 0; }
.pp-avis p { margin: 6px 0 0; }
.pp-liste { margin: 0; padding-left: 18px; }
.pp-liste li { margin: 4px 0; }
@media (max-width: 640px) {
  .pp-tete { flex-direction: column; align-items: flex-start; }
  .pp-parcours li { grid-template-columns: 1fr; gap: 2px; }
}
.pp-tete { margin-bottom: 18px; }
.cv-ia .ia-actions{margin:10px 0 0}.cv-ia #cv-coller{margin-top:8px}
.qr-modal { text-align: center; }
.qr-svg { display: block; width: min(78vw, 320px); height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); }
.qr-lien { margin: 12px 0 16px; font-weight: 600; color: var(--brand); word-break: break-all; }
/* QR code en plein écran (raccourci sur l'écran d'accueil du téléphone) */
body.plein-ecran .topbar, body.plein-ecran .site-footer { display: none !important; }
body.plein-ecran { background: #fff; }
#app.qr-plein { max-width: none; padding: 0; }
.qr-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; box-sizing: border-box; }
.qr-page h1 { margin: 8px 0 2px; font-size: 1.7rem; }
.qr-titre { margin: 0 0 18px; color: var(--muted); }
.qr-page .qr-svg { width: min(86vw, 62vh, 420px); border: 0; }
.qr-marque { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-weight: 600; }
.qr-aide { margin-top: 22px; max-width: 460px; text-align: left; background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; }
.qr-aide ol { margin: 8px 0 0; padding-left: 20px; }
.qr-aide li { margin: 4px 0; }
/* Accueil, grand écran : le texte du hero se rapproche du bord gauche (comme la photo touche le bord droit) */
@media (min-width: 1200px) {
  .home-intro .hero { margin-left: calc(-1 * max(0px, (100vw - 1120px) / 2 - 48px)); }
  .home-intro .hero > div:first-child { padding-left: 8px; }
  .home-intro .hero h1 { font-size: clamp(3rem, 3.6vw, 3.8rem); }
  .home-intro .hero p.lead { max-width: 560px; }
}

/* Menu des espaces (formateur, centre, admin) : vertical à gauche sur ordinateur, onglets en haut sur téléphone */
.menu-espace .mi { width: 18px; height: 18px; flex-shrink: 0; }
.menu-tete { display: none; }
@media (max-width: 999px) { .menu-espace .mi { display: none; } }
@media (min-width: 1000px) {
  main:has(> nav.menu-espace) { max-width: 1400px; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  main:has(> nav.menu-espace) > * { grid-column: 2; min-width: 0; }
  main:has(> nav.menu-espace) > nav.menu-espace { grid-column: 1; grid-row: 1 / span 80; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px;
    margin: 0; padding: 12px; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(20,35,43,.05); }
  nav.menu-espace a { border-bottom: 0; margin: 0; border-radius: 10px; padding: 10px 12px; gap: 12px; white-space: normal; line-height: 1.25; }
  nav.menu-espace a:hover { background: #f4f2ec; }
  nav.menu-espace a.actif { background: var(--brand-soft); color: var(--brand); }
  nav.menu-espace a.actif .mi { color: var(--accent); }
  nav.menu-espace .badge-dot { margin-left: auto; }
  .menu-tete { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
  .menu-tete > div:last-child { min-width: 0; }
  .menu-tete b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-tete small { display: block; color: var(--muted); font-size: 12px; }
  .menu-tete .avatar { width: 38px; height: 38px; font-size: 14px; flex-shrink: 0; }
}
