/* Sillage : site public. Ivoire, bleu nuit, vert profond, une touche de pêche.
   Fil conducteur : le sillage, une ligne continue qui relie les étapes d'une vie. */
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/app/fonts/plex-sans.woff2) format('woff2'); }
@font-face { font-family: 'Plex'; font-style: italic; font-weight: 400; font-display: swap; src: url(/app/fonts/plex-sans-italic.woff2) format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/app/fonts/plex-mono.woff2) format('woff2'); }

:root {
  --ivory: #FAF9F6;
  --paper: #FFFFFF;
  --sand: #F3F0E9;
  --night: #142B3B;
  --night-2: #3B5060;
  --night-3: #5B6B77;
  --green: #21867B;
  --green-ink: #17695F;
  --green-pale: #E9F4EF;
  --peach: #F0AD8C;
  --peach-ink: #A9502A;
  --peach-pale: #FBEDE5;
  --violet: #6A4C9C;
  --violet-pale: #F0EBF7;
  --amber: #B4741A;
  --line: rgba(20, 43, 59, 0.10);
  --line-2: rgba(20, 43, 59, 0.18);
  --shadow: 0 1px 2px rgba(20, 43, 59, 0.05), 0 12px 32px -12px rgba(20, 43, 59, 0.16);
  --shadow-lg: 0 2px 4px rgba(20, 43, 59, 0.04), 0 30px 60px -24px rgba(20, 43, 59, 0.28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--night);
  font: 400 17px/1.6 'Plex', system-ui, sans-serif; font-feature-settings: 'ss02';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: 'Plex Mono', ui-monospace, monospace; font-feature-settings: 'zero' 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 18px; }
.kicker-light { color: var(--peach); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--night-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 20px; }
.section-head.narrow { max-width: 720px; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  --bg: var(--paper); --fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font: 600 16px/1 'Plex', sans-serif; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--night); --fg: #fff; box-shadow: 0 8px 20px -10px rgba(20, 43, 59, .6); }
.btn-primary:hover { --bg: #0d1f2b; box-shadow: 0 14px 28px -12px rgba(20, 43, 59, .6); }
.btn-primary::after { content: ''; width: 14px; height: 10px; background: currentColor; transition: transform 180ms var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { background: var(--paper); border-color: var(--night); }
.btn-peach { --bg: var(--peach); --fg: var(--night); }
.btn-peach:hover { --bg: #F4BC9F; box-shadow: 0 14px 30px -14px rgba(240, 173, 140, .9); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-sm::after { display: none; }
.btn-block { width: 100%; }
.btn[aria-busy='true'] { opacity: .7; cursor: progress; }

/* --- Navigation ------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; transition: background 200ms, box-shadow 200ms; }
.nav.is-scrolled { background: rgba(250, 249, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; color: var(--night); }
.logo-mark { width: 30px; height: 30px; color: var(--green); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--night-2); text-decoration: none; transition: color 150ms, background 150ms; }
.nav-links a:hover { color: var(--night); background: rgba(20, 43, 59, .05); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--night-2); }
.nav-login:hover { color: var(--night); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); cursor: pointer; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 1.6px; background: var(--night); border-radius: 2px; transition: transform 200ms var(--ease); }
.burger { position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-toggle[aria-expanded='true'] .burger { background: transparent; }
.nav-toggle[aria-expanded='true'] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.menu-mobile { padding: 8px var(--gutter) 24px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.menu-mobile nav { display: grid; margin-bottom: 16px; }
.menu-mobile nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(72px, 10vw, 130px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.045em; line-height: 1.02; }
.h1-2 { color: var(--night); }
.wake-word { position: relative; font-style: italic; font-weight: 400; color: var(--green-ink); letter-spacing: -0.03em; white-space: nowrap; }
.wake-word svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.wake-word path { fill: none; stroke: var(--peach); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.4s .5s var(--ease) forwards; }
.hero .lead { margin-top: 28px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.reassure { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 15px; color: var(--night-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-pale); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-visual { position: relative; aspect-ratio: 0.94; min-height: 520px; }
.hero-wake { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-wake path { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 4 7; opacity: .55; }
.portrait {
  position: absolute; right: 0; top: 0; width: 60%; aspect-ratio: 0.86; border-radius: 999px 999px 28px 28px;
  background: var(--paper); box-shadow: var(--shadow-lg); padding: 8px;
  animation: rise .9s .1s var(--ease) both;
}
.portrait-photo { width: 100%; height: 100%; object-fit: cover; object-position: 30% 88%; border-radius: 999px 999px 22px 22px; background: var(--sand); }
.portrait-id {
  position: absolute; left: -14%; top: 14%; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 13px; color: var(--night-3); animation: rise .9s .45s var(--ease) both;
}
.portrait-id strong { font-size: 18px; color: var(--night); letter-spacing: -0.02em; }
.chip { margin-top: 4px; font-size: 11.5px; color: var(--night-2); background: var(--sand); padding: 3px 8px; border-radius: 6px; justify-self: start; }

.card { position: absolute; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.card-record { left: 0; top: 47%; width: 56%; padding: 18px 18px 8px; animation: rise .9s .25s var(--ease) both; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-title { font-weight: 600; font-size: 15px; }
.tag { font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px; }
.tag-fake { color: var(--night-3); background: var(--sand); }
.mini-timeline { list-style: none; margin: 0; padding: 0; }
.mini-timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-timeline li:first-child { border-top: 0; }
.mt-date { font-size: 13px; color: var(--night-3); padding-top: 1px; }
.mini-timeline strong { display: block; font-size: 14.5px; font-weight: 600; }
.seal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; margin-top: 3px; }
.seal::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.seal-signed { color: var(--green-ink); }
.seal-declared { color: var(--violet); }
.card-report, .card-share { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; font-size: 13px; color: var(--night-3); }
.card-report strong, .card-share strong { display: block; font-size: 14.5px; color: var(--night); }
.card-report { right: 0; top: 76%; animation: rise .9s .55s var(--ease) both; }
.card-share { left: 26%; bottom: -9%; animation: rise .9s .7s var(--ease) both; }
.doc-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--peach-pale); display: grid; place-items: center; }
.doc-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--peach-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--green-pale); color: var(--green-ink); display: grid; place-items: center; font-weight: 600; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--green); position: relative; margin-left: 8px; flex: none; }
.switch::after { content: ''; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* --- Problème -------------------------------------------------------------- */
.problem { padding: clamp(80px, 11vw, 150px) 0; background: var(--sand); position: relative; }
.scatter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; position: relative; }
.scatter > .frag { z-index: 1; }
.broken { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); }
.broken path { fill: none; stroke: var(--peach); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.frag { background: var(--paper); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.frag h3 { margin: 18px 0 8px; font-size: 21px; }
.frag p { color: var(--night-2); font-size: 16px; }
.frag-1 { grid-column: 1 / span 5; transform: rotate(-1.2deg); }
.frag-2 { grid-column: 7 / span 6; margin-top: 56px; transform: rotate(.8deg); }
.frag-3 { grid-column: 2 / span 5; margin-top: -8px; transform: rotate(.6deg); background: var(--night); color: #fff; }
.frag-3 p { color: rgba(255, 255, 255, .78); }
.frag-4 { grid-column: 8 / span 5; margin-top: 32px; transform: rotate(-.9deg); }
.frag-paper { display: grid; gap: 6px; width: 74px; padding: 12px 10px; background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; position: relative; }
.frag-paper i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.frag-paper i:nth-child(2) { width: 70%; } .frag-paper i:nth-child(3) { width: 85%; }
.frag-paper-folded { clip-path: polygon(0 0, 78% 0, 100% 24%, 100% 100%, 0 100%); }
.frag-paper-stamp b { position: absolute; right: -24px; bottom: -6px; transform: rotate(-12deg); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--peach-ink); border: 1.5px solid var(--peach-ink); padding: 2px 6px; border-radius: 4px; background: var(--paper); }
.frag-clock { display: inline-block; font-size: 30px; color: var(--peach); letter-spacing: -0.02em; }
.punch { margin-top: clamp(64px, 9vw, 110px); font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 880px; }
.punch span { color: var(--green-ink); }

/* --- Promesse : parcours de vie -------------------------------------------- */
.promise { padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.journey { position: relative; padding-top: 30px; }
.journey-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.journey-line path { fill: none; stroke-linecap: round; }
.jl-base { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; }
.jl-draw { stroke: var(--green); stroke-width: 3.5; stroke-dasharray: var(--len, 2000); stroke-dashoffset: calc(var(--len, 2000) - var(--len, 2000) * var(--p, 0)); transition: stroke-dashoffset 120ms linear; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.stop { padding-top: 0; }
.stop-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); box-shadow: 0 0 0 6px var(--ivory); margin-bottom: 26px; transition: background 300ms, transform 300ms var(--ease); }
.stop.is-on .stop-dot { background: var(--green); transform: scale(1.15); }
.stop:nth-child(1) { margin-top: 140px; } .stop:nth-child(2) { margin-top: 62px; } .stop:nth-child(3) { margin-top: 152px; }
.stop:nth-child(4) { margin-top: 52px; } .stop:nth-child(5) { margin-top: 132px; }
.stop-n { font-size: 12px; color: var(--night-3); }
.stop h3 { margin: 4px 0 8px; font-size: 20px; }
.stop p { font-size: 15px; color: var(--night-2); }
.journey-file { display: flex; width: max-content; max-width: 100%; margin-left: auto; align-items: center; gap: 10px; margin-top: 56px; padding: 12px 18px; border-radius: 999px; background: var(--green-pale); color: var(--green-ink); font-weight: 600; font-size: 15px; }
.jf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33, 134, 123, .45); } 70% { box-shadow: 0 0 0 12px rgba(33, 134, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 134, 123, 0); } }

/* --- Publics --------------------------------------------------------------- */
.audiences { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--sand); margin-bottom: 48px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role='tab'] { position: relative; z-index: 1; flex: none; border: 0; background: none; padding: 12px 22px; border-radius: 999px; font: 500 16px/1 'Plex', sans-serif; color: var(--night-2); cursor: pointer; transition: color 200ms; min-height: 44px; }
.tabs [role='tab'][aria-selected='true'] { color: var(--night); font-weight: 600; }
.tabs-ink { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--paper); box-shadow: 0 2px 8px rgba(20, 43, 59, .12); transition: transform 320ms var(--ease), width 320ms var(--ease); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.panel:not([hidden]) { animation: fadeIn 420ms var(--ease); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; line-height: 1.15; }
.panel-text > p { margin: 18px 0 24px; color: var(--night-2); font-size: 17.5px; }
.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 16.5px; }
.checks li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.5l2.6 2.6L15 8.6' fill='none' stroke='%2317695F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; margin-top: 1px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-visual { position: relative; display: grid; align-items: end; justify-items: center; min-height: 600px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--night); overflow: hidden; isolation: isolate; }
.panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.panel-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 43, 59, 0) 35%, rgba(20, 43, 59, .55)); }
#panel-owner .panel-visual { align-items: center; }
#panel-owner .panel-visual::after { background: linear-gradient(90deg, rgba(20, 43, 59, 0) 45%, rgba(20, 43, 59, .35)); }
#panel-owner .panel-photo { object-position: 85% 30%; }
#panel-owner .phone { justify-self: end; }
#panel-vet .panel-photo { object-position: 50% 100%; }
#panel-shelter .panel-photo { object-position: 50% 20%; }
.transfer .tr-card { box-shadow: var(--shadow-lg); }

.phone { width: 290px; border-radius: 40px; background: var(--night); padding: 10px; box-shadow: var(--shadow-lg); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 8px; color: #fff; font-size: 12px; font-weight: 600; }
.phone-notch { width: 80px; height: 22px; border-radius: 999px; background: #000; }
.phone-body { background: var(--ivory); border-radius: 30px; padding: 18px 16px 20px; display: grid; gap: 8px; }
.ph-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--night-3); margin-top: 8px; }
.ph-pet, .ph-row, .acc { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--night-3); }
.ph-pet strong, .ph-row strong, .acc strong { display: block; color: var(--night); font-size: 14px; }
.ph-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--peach-pale); color: var(--peach-ink); display: grid; place-items: center; font-weight: 600; flex: none; }
.ph-ok { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--green-ink); background: var(--green-pale); padding: 3px 8px; border-radius: 999px; }
.ph-ico { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; margin: 0 4px; }
.ph-ico-amber { background: var(--amber); } .ph-ico-green { background: var(--green); }
.ph-revoke { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--peach-ink); }

.desk { width: 100%; max-width: 560px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.desk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sand); border-bottom: 1px solid var(--line); }
.desk-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.desk-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--night-3); }
.desk-body { padding: 16px; display: grid; gap: 14px; }
.alert-band { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #FCEDEB; color: #8E2A1E; }
.desk-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.d-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.d-row .mono { font-size: 11.5px; color: var(--night-3); }
.d-row .seal { margin: 0; font-size: 11px; }
.d-card { display: grid; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--night-3); }
.d-card strong { color: var(--night); font-size: 13.5px; }
.d-btn { margin-top: 6px; justify-self: start; font-size: 12px; font-weight: 600; color: #fff; background: var(--night); padding: 6px 12px; border-radius: 999px; }

.transfer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; }
.tr-card { background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; font-size: 13px; color: var(--night-3); }
.tr-card strong { font-size: 20px; color: var(--night); letter-spacing: -0.02em; }
.tr-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tr-card li { display: flex; align-items: center; gap: 8px; color: var(--night-2); }
.tr-card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tr-label { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--peach-pale); color: var(--peach-ink); margin-bottom: 6px; }
.tr-label-green { background: var(--green-pale); color: var(--green-ink); }
.tr-card-new { outline: 2px solid var(--green); outline-offset: -2px; }
.tr-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tr-arrow { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green-ink); }
.tr-arrow svg { width: 90px; height: 30px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Démonstration --------------------------------------------------------- */
.demo { padding: clamp(80px, 11vw, 150px) 0; }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.demo-steps { list-style: none; margin: 0; padding: 0; }
.demo-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); min-height: 34vh; cursor: pointer; }
.demo-step:last-child { border-bottom: 1px solid var(--line); }
.demo-step .mono { font-size: 13px; color: var(--night-3); padding-top: 4px; transition: color 300ms; }
.demo-step h3 { font-size: 24px; letter-spacing: -0.025em; color: var(--night-3); transition: color 300ms; }
.demo-step p { margin-top: 8px; color: var(--night-3); transition: color 300ms; max-width: 420px; }
.demo-step.is-active h3 { color: var(--night); }
.demo-step.is-active p { color: var(--night-2); }
.demo-step:hover h3 { color: var(--night); }
.demo-step.is-active .mono { color: var(--green-ink); }
.demo-stage { position: sticky; top: 110px; }
.screen { position: relative; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px; min-height: 440px; overflow: hidden; }
.screen-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--night-3); }
.screen-head strong { display: block; color: var(--night); font-size: 17px; }
.screen-head .tag { margin-left: auto; white-space: nowrap; }
.screen-layer { position: absolute; left: 22px; right: 22px; top: 96px; display: grid; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); pointer-events: none; }
.screen-layer.is-on { opacity: 1; transform: none; }
.tl { display: grid; grid-template-columns: 16px 1fr; gap: 14px; position: relative; }
.tl::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: -14px; width: 2px; background: var(--green-pale); }
.tl:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--green); background: var(--paper); margin-top: 3px; }
.tl-dot-doc { border-color: var(--peach); }
.tl b { display: block; font-size: 12px; font-weight: 500; color: var(--night-3); }
.tl strong { display: block; font-size: 15.5px; }
.tl span { font-size: 13.5px; color: var(--night-3); }
.prov { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; color: var(--night-3); }
.prov strong { font-size: 15px; color: var(--night); }
.prov-alert { background: var(--sand); border-color: transparent; }
.log { display: flex; gap: 12px; font-size: 12px; color: var(--night-2); padding: 6px 0; border-top: 1px dashed var(--line-2); }
.chain { display: flex; align-items: center; gap: 0; margin-top: 20px; flex-wrap: wrap; row-gap: 12px; }
.chain i { flex: 1; min-width: 14px; height: 2px; background: var(--green); }
.ch { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--green-pale); font-size: 12px; color: var(--green-ink); }
.ch b { font-size: 14px; color: var(--night); }
.ch-now { background: var(--night); color: rgba(255, 255, 255, .7); }
.ch-now b { color: #fff; }
.chain-note { margin-top: 22px; font-size: 15px; color: var(--night-2); }

/* --- Urgence --------------------------------------------------------------- */
.urgent { background: var(--night); color: #fff; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.urgent::before { content: ''; position: absolute; width: 720px; height: 720px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 173, 140, .16), transparent 65%); }
.urgent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: start; position: relative; }
.urgent h2 { margin-bottom: 28px; }
.urgent-text p { color: rgba(255, 255, 255, .78); font-size: 18px; margin-top: 16px; max-width: 520px; }
.urgent-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.urgent-steps::before { content: ''; position: absolute; left: 58px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--peach), rgba(240, 173, 140, .1)); }
.urgent-steps li { display: grid; grid-template-columns: 120px 1fr; gap: 0; padding: 18px 0; position: relative; }
.urgent-steps li::before { content: ''; position: absolute; left: 53px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--peach); }
.u-time { font-size: 15px; color: var(--peach); padding-top: 2px; }
.urgent-photo { position: relative; margin: 44px 0 0; max-width: 520px; border-radius: 24px; overflow: hidden; }
.urgent-photo img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 45%; }
.urgent-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 43, 59, .85)); }
.urgent-photo figcaption { position: absolute; left: 22px; bottom: 14px; z-index: 1; font-size: 44px; color: var(--peach); letter-spacing: -0.03em; }
.urgent-steps h3 { font-size: 19px; color: #fff; }
.urgent-steps p { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 15.5px; }

/* --- Confiance ------------------------------------------------------------- */
.trust { padding: clamp(80px, 11vw, 150px) 0; }
.trust-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 88px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night); }
.pillar { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.p-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-pale); margin-bottom: 22px; }
.p-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--green-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--night-2); font-size: 15.5px; }

/* --- Pilote et formulaire -------------------------------------------------- */
.pilot { padding: clamp(80px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--ivory), var(--green-pale)); }
.pilot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.pilot-intro .lead { margin-top: 22px; }
.pilot-steps { list-style: none; margin: 40px 0; padding: 0; display: grid; gap: 4px; }
.pilot-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.pilot-steps .mono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font-size: 14px; }
.pilot-steps p { color: var(--night-2); margin-top: 2px; font-size: 16px; }
.pilot-owner { font-size: 16px; color: var(--night-2); padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }

.form { background: var(--paper); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; gap: 20px; position: sticky; top: 100px; }
.form h3 { font-size: 26px; letter-spacing: -0.03em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; transition: background 150ms, border-color 150ms, color 150ms; cursor: pointer; }
.seg label:hover span { border-color: var(--night); }
.seg input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: grid; gap: 6px; align-content: start; }
.f-field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--night-3); }
.f-field input, .f-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(20, 43, 59, .32); background: var(--ivory); font: 400 16px/1.4 'Plex', sans-serif; color: var(--night); transition: border-color 150ms, box-shadow 150ms, background 150ms; }
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--green); background: var(--paper); box-shadow: 0 0 0 4px rgba(33, 134, 123, .16); }
.f-field input[aria-invalid='true'] { border-color: #B42318; }
.f-err { font-size: 13.5px; color: #B42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; color: var(--night-2); line-height: 1.5; cursor: pointer; }
.f-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--night); }
.f-status:empty { display: none; }
.f-status { padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.f-status.is-error { background: #FCEDEB; color: #8E2A1E; }
.form.is-sent > :not(.f-done) { display: none; }
.f-done { display: grid; gap: 14px; justify-items: start; text-align: left; padding: 12px 0; }
.f-done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--green-pale); display: grid; place-items: center; }
.f-done-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .1s var(--ease) forwards; }
.f-done h3 { font-size: 24px; }
.f-done p { color: var(--night-2); }

/* --- FAQ ------------------------------------------------------------------- */
.faq { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq h2 { font-size: clamp(30px, 3.6vw, 44px); }
.faq-more { margin-top: 20px; color: var(--night-2); }
.faq-more a { color: var(--green-ink); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 16h10M16 11v10' stroke='%23142B3B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform 250ms var(--ease), background-color 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green-pale); }
.faq details p { padding: 0 48px 24px 0; color: var(--night-2); font-size: 16.5px; }
.faq details[open] p { animation: fadeIn 300ms var(--ease); }

/* --- Final ----------------------------------------------------------------- */
.final { position: relative; background: var(--night); color: #fff; padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden; }
.final-wake { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 220px; overflow: visible; }
.final-wake path { fill: none; stroke: var(--green); stroke-width: 2; opacity: .55; stroke-dasharray: 2200; stroke-dashoffset: calc(2200 - 2200 * var(--p, 0)); }
.final-in { position: relative; display: grid; justify-items: center; gap: 28px; }
.final h2 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.04em; }
.final h2 span { color: var(--peach); font-style: italic; font-weight: 400; }
.final p { max-width: 560px; color: rgba(255, 255, 255, .8); font-size: 18px; }

/* --- Pied de page ---------------------------------------------------------- */
.footer { background: var(--ivory); padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div p { margin-top: 12px; color: var(--night-3); max-width: 280px; font-size: 15px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-3); margin-bottom: 4px; }
.footer nav a { text-decoration: none; font-size: 15px; color: var(--night-2); }
.footer nav a:hover { color: var(--night); text-decoration: underline; text-underline-offset: 4px; }
.footer-note a { color: inherit; }
.footer-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--night-3); }

/* --- Apparitions ----------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .frag.reveal.is-in.frag-1 { transform: rotate(-1.2deg); }
.js .frag.reveal.is-in.frag-2 { transform: rotate(.8deg); }
.js .frag.reveal.is-in.frag-3 { transform: rotate(.6deg); }
.js .frag.reveal.is-in.frag-4 { transform: rotate(-.9deg); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(3) { padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .panel, .demo-grid, .urgent-grid, .trust-head, .pilot .wrap, .faq-grid { grid-template-columns: 1fr; }
  .form { position: static; }
  .scatter { grid-template-columns: 1fr; gap: 16px; }
  .broken { display: none; }
  .frag-1, .frag-2, .frag-3, .frag-4 { grid-column: auto; margin-top: 0; }
  .frag-2, .frag-4 { margin-left: 8%; } .frag-1, .frag-3 { margin-right: 8%; }
  /* Parcours : vertical, la ligne descend le long des étapes. */
  .journey-line { display: none; }
  .stops { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .stops::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green) calc(var(--p, 0) * 100%), var(--line-2) 0); }
  .stop { margin-top: 0 !important; position: relative; padding-bottom: 28px; }
  .stop-dot { position: absolute; left: -36px; top: 2px; margin: 0; }
  .demo-grid { gap: 0; }
  .demo-step { min-height: 52vh; padding: 22px 0; align-content: start; }
  .demo-stage { position: sticky; top: 72px; order: -1; z-index: 2; padding: 8px 0 16px; background: var(--ivory); }
  .screen { min-height: 330px; padding: 16px; }
  .screen-layer { left: 16px; right: 16px; top: 84px; gap: 10px; }
  .screen-layer .tl:nth-child(4) { display: none; }
  .journey-file { margin-left: 0; }
  .panel-visual { min-height: 0; padding: 0 16px 20px; background: var(--green-pale); }
  .panel-visual::after { display: none; }
  .panel-photo { position: relative; inset: auto; z-index: 0; height: 220px; width: calc(100% + 32px); margin: 0 -16px 16px; }
  #panel-owner .phone { justify-self: center; }
  #panel-vet .panel-photo { object-position: 50% 55%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-login, .nav-actions .btn { display: none; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .cta-row .btn { width: 100%; }
  .hero-visual { aspect-ratio: auto; min-height: 0; display: grid; gap: 12px; padding-top: 8px; }
  .hero-wake { display: none; }
  .portrait, .card, .portrait-id { position: relative; inset: auto; width: auto; }
  .portrait { width: 64%; justify-self: center; aspect-ratio: 0.78; }
  .portrait-id { position: absolute; left: -22%; right: auto; top: auto; bottom: 4%; }
  .card-record { width: 100%; }
  .card-share { margin-left: 10%; }
  .card-report { margin-right: 10%; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tabs [role='tab'] { padding: 12px 6px; font-size: 15px; }
  .t-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs [role='tab'] { text-transform: capitalize; }
  .phone { width: 100%; max-width: 300px; }
  .desk-grid { grid-template-columns: 1fr; }
  .transfer { grid-template-columns: 1fr; justify-items: stretch; }
  .tr-arrow svg { transform: rotate(90deg); width: 60px; }
  .urgent-steps li { grid-template-columns: 76px 1fr; }
  .urgent-steps::before { left: 34px; } .urgent-steps li::before { left: 29px; top: 23px; }
  .u-time { font-size: 13px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 20px; border-right: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .f-grid { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .wake-word path { stroke-dashoffset: 0; }
  .jl-draw, .final-wake path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Disponible : parcours libre-service et structures pionnières ----------------- */
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.paths { display: grid; gap: 16px; margin-top: 36px; }
.path { padding: 26px 26px 28px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.path-use { background: var(--night); color: #fff; border-color: var(--night); }
.path.path-use p { color: rgba(255, 255, 255, .82); }
.path-use .btn-primary { --bg: var(--peach); --fg: var(--night); box-shadow: none; }
.path h3 { font-size: 22px; }
.path p { color: var(--night-2); font-size: 16px; }
.checks-sm { margin: 0; gap: 8px; }
.checks-sm li { font-size: 15.5px; }
.form-lead { color: var(--night-2); font-size: 15px; margin-top: -8px; }
.form-lead a { color: var(--green-ink); font-weight: 600; }
