/* Nakria — landing et pages légales (nouvelle DA). Se charge après nakria-ui.css. */

/* ---------- En-tête : pastille flottante ---------- */
/* En haut de page : le header est « fondu » (aucun fond, aucun bord, aucune ombre), seuls le logo, le menu et les boutons se voient.
 * Dès qu'on défile : la pastille se matérialise et se décolle de la page (fond + bord + ombre + léger soulèvement). */
.top { position: sticky; top: 12px; z-index: 30; max-width: 1120px; margin: 12px auto 0; padding: 9px 12px 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 246, 233, 0); border: 1px solid transparent; border-radius: 999px; box-shadow: 0 0 0 rgba(34, 27, 58, 0);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transform: translateY(0);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease; }
.top.scrolled { background: rgba(255, 246, 233, .92); border-color: var(--line); box-shadow: 0 12px 32px rgba(34, 27, 58, .12), 0 2px 6px rgba(34, 27, 58, .06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(-3px); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--font-d); }
/* Logo fixe ; au survol (ou focus clavier) il pivote de 120° : le pétale jaune (placé à 240°) finit en haut. */
.brand-mark img { width: 34px; height: 34px; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.brand-mark:focus-visible img { transform: rotate(120deg); }
@media (hover: hover) { .brand-mark:hover img { transform: rotate(120deg); } }
.brand-mark b { font-weight: 400; color: var(--soft); }
.top-nav { display: flex; gap: 4px; }
.top-nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; color: var(--soft); transition: background .2s, color .2s; }
.top-nav a:hover { background: var(--lilac); color: var(--ink); }
.top-cta { display: flex; gap: 8px; align-items: center; }
.top .btn-primary { padding: 12px 20px; font-size: 15px; --rel: 3px; }

/* ---------- Héros ---------- */
.hero { position: relative; max-width: 1120px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; min-height: 640px; }
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); line-height: 1.02; animation: rise .9s var(--ease) both; }
.hl { background: linear-gradient(transparent 60%, var(--lemon) 60% 94%, transparent 94%) no-repeat left; background-size: 100% 100%; animation: sweep 1s .9s var(--ease) both; padding: 0 .08em; margin: 0 -.08em; }
.baseline { margin-top: 26px; font-size: 20px; line-height: 1.55; color: var(--soft); max-width: 31em; animation: rise .9s .15s var(--ease) both; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: rise .9s .3s var(--ease) both; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--soft); animation: rise .9s .45s var(--ease) both; }

.stage { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-left: auto; container-type: inline-size; }
.blob { position: absolute; border-radius: 50%; animation: drift 11s ease-in-out infinite; opacity: .8; }
.b1 { width: 52%; height: 52%; left: 4%; top: 6%; background: var(--sky); }
.b2 { width: 40%; height: 40%; right: 2%; bottom: 8%; background: var(--peach); animation-delay: -4s; }
.b3 { width: 30%; height: 30%; right: 12%; top: 2%; background: var(--mint); animation-delay: -7s; }
.b4 { width: 24%; height: 24%; left: 10%; bottom: 4%; background: var(--pink); animation-delay: -2s; }
.orbit { position: absolute; inset: 0; transition: transform .25s ease-out; transform: translate(var(--mx, 0), var(--my, 0)); }
.hero-logo { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; margin: -18% 0 0 -18%; animation: spin 48s linear infinite; filter: drop-shadow(0 12px 22px rgba(34, 27, 58, .16)); }
.hero-logo ellipse { transform-box: view-box; transform-origin: 50px 50px; animation: breathe 4.4s ease-in-out infinite; }
.hero-logo g:nth-child(2) ellipse { animation-delay: -.7s; } .hero-logo g:nth-child(3) ellipse { animation-delay: -1.4s; }
.hero-logo g:nth-child(4) ellipse { animation-delay: -2.1s; } .hero-logo g:nth-child(5) ellipse { animation-delay: -2.8s; } .hero-logo g:nth-child(6) ellipse { animation-delay: -3.5s; }
.orb { --s: clamp(52px, 16.4cqw, 88px); --r: 39cqw; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.orb img, .orb svg { width: 100%; height: 100%; animation: bob 5.5s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(34, 27, 58, .10)); transition: transform .3s var(--ease); }
.orb:hover img, .orb:hover svg { transform: scale(1.18) rotate(-6deg); }
.o1 { --a: 0deg; } .o2 { --a: 45deg; } .o3 { --a: 90deg; } .o4 { --a: 135deg; } .o5 { --a: 180deg; } .o6 { --a: 225deg; } .o7 { --a: 270deg; } .o8 { --a: 315deg; }
.o2 > * { animation-delay: -.7s; } .o3 > * { animation-delay: -1.4s; } .o4 > * { animation-delay: -2.1s; } .o5 > * { animation-delay: -2.8s; } .o6 > * { animation-delay: -3.5s; } .o7 > * { animation-delay: -4.2s; } .o8 > * { animation-delay: -4.9s; }

/* ---------- Défilement des produits ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 16px 0; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--font-d); padding: 8px 20px; border-radius: 999px; background: var(--bg); white-space: nowrap; }
.ticker i { width: 12px; height: 12px; border-radius: 50%; background: var(--k); }
.k1 { --k: var(--c-write); } .k2 { --k: var(--c-calendar); } .k3 { --k: var(--c-mail); } .k4 { --k: var(--c-drive); } .k5 { --k: var(--c-grid); }
.k6 { --k: var(--c-present); } .k7 { --k: var(--c-forms); } .k8 { --k: var(--c-vista); } .k9 { --k: var(--acc); }

/* ---------- Sections ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0 0; }
.sec h2 { font-size: clamp(34px, 4.6vw, 56px); }
.sec-title { margin-bottom: 36px; }
.prose { display: grid; gap: 16px; color: var(--soft); max-width: 40em; }
.prose strong { color: var(--ink); font-weight: 600; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
.aside { font-size: 14.5px; }

.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.fam > * { min-width: 0; }
.fam-card { display: grid; gap: 14px; padding: 30px; border-radius: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fam-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 22px 40px rgba(34, 27, 58, .10); }
.fam-ai { background: var(--lilac); } .fam-office { background: var(--sky); }
.fam-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fam-head img { width: 56px; height: 56px; }
.fam-head h3 { font-size: clamp(26px, 3.2vw, 32px); flex: 1 1 8em; min-width: 0; }
.fam-card p { color: #403960; }

.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { position: relative; padding: 24px 22px 22px; border-radius: 24px; background: var(--t, var(--card)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: grid; gap: 8px; align-content: start; }
.mod:hover { transform: translateY(-8px) rotate(-.8deg); box-shadow: 0 22px 40px rgba(34, 27, 58, .12); }
.mod:hover .mod-icon { animation: wiggle .6s var(--ease); }
.mod-icon, .mod > svg { width: 76px; height: 76px; margin-bottom: 8px; filter: drop-shadow(0 4px 0 rgba(34, 27, 58, .10)); }
.mod h3 { font-size: 26px; }
.mod p { font-size: 15px; color: #403960; line-height: 1.5; }
.mod .chip { margin-top: 6px; justify-self: start; }
.t-write { --t: #D6E6FF; } .t-calendar { --t: #FFDDCD; } .t-mail { --t: #FFD6E3; } .t-drive { --t: #E3D8FF; }
.t-grid { --t: #CDEFE3; } .t-present { --t: #FFF1B8; } .t-forms { --t: #CDEFF4; } .t-vista { --t: #DADFFF; }

/* ---------- Adresse ---------- */
.addr { display: flex; flex-wrap: wrap; gap: 6px; font: 400 clamp(22px, 3.4vw, 40px)/1.2 var(--font-d); margin: 4px 0 8px; }
.addr span { padding: 8px 16px; border-radius: 16px; opacity: 0; }
.rv.in .addr span, .addr.in span { animation: pop .7s var(--ease) both; }
.a1 { background: var(--sky); } .a2 { background: var(--lemon); animation-delay: .25s !important; } .a3 { background: var(--mint); animation-delay: .5s !important; }
.legend { display: grid; gap: 12px; margin: 8px 0; }
.legend div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); }
.legend dt { font-weight: 700; color: var(--ink); } .legend dd { margin: 0; color: var(--soft); font-size: 15px; }

/* ---------- Principes ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles > div { padding: 30px 26px; border-radius: 26px; display: grid; gap: 12px; align-content: start; transition: transform .35s var(--ease); }
.principles > div:hover { transform: translateY(-6px); }
.principles > div:nth-child(1) { background: var(--mint); } .principles > div:nth-child(2) { background: var(--peach); } .principles > div:nth-child(3) { background: var(--pink); }
.principles h3 { font-size: 28px; } .principles p { color: #403960; font-size: 16px; }

/* ---------- Avancement ---------- */
.status { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.status li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); }
.status li > span { color: var(--soft); font-size: 15.5px; }

/* ---------- Appel final ---------- */
.closing { margin: 96px auto 0; padding: 64px 32px; border-radius: 36px; background: var(--lilac); text-align: center; display: grid; justify-items: center; gap: 16px; position: relative; overflow: hidden; }
.closing img { width: 84px; height: 84px; animation: spin 30s linear infinite; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); }
.closing p { color: #403960; font-size: 18px; }
.closing .btn-row { justify-content: center; animation: none; margin-top: 12px; }

/* ---------- Pied de page ---------- */
.foot { max-width: 1120px; margin: 72px auto 0; padding: 28px 24px 48px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; border-top: 1px solid var(--line); font-size: 14.5px; }
.foot a { color: var(--soft); text-decoration: none; padding: 4px 2px; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; display: grid; gap: 14px; }
.legal .kicker { display: inline-block; justify-self: start; font: 700 12.5px/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--lilac); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal h2 { font-size: 30px; margin-top: 30px; }
.legal p, .legal li { color: #403960; line-height: 1.75; }
.legal strong { color: var(--ink); }
.legal a { color: var(--acc); text-underline-offset: 3px; }
.legal .updated { font-size: 14px; color: var(--soft); }
.callout { padding: 20px 24px; border-radius: var(--r); background: var(--lemon); }
.callout p { color: var(--ink); }

/* ---------- Adaptation ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; min-height: 0; }
  .stage { margin: 8px auto 0; width: min(460px, 100%); }
  .top-nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .fam { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .legend div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .status li { grid-template-columns: 1fr; }
  .status .chip { justify-self: start; }
  .top { margin: 8px 8px 0; padding-left: 14px; }
  .brand-mark b { display: none; }
  .top-cta .btn-ghost { display: none; }
  .modules { grid-template-columns: 1fr; }
  .sec { padding-top: 72px; }
  .closing { padding: 48px 20px; margin-top: 72px; }
}