/* Nakria WorkOffice — nouvelle direction artistique. Se charge après nakria-ui.css (couleurs, police, boutons, pastilles, animations). */

/* Démarrage */
.boot { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; color: var(--soft); }
.boot p { text-align: center; padding: 0 24px; }
.boot-logo { animation: spin 6s linear infinite; filter: drop-shadow(0 8px 14px rgba(34, 27, 58, .16)); }

/* En-tête : pastille flottante (fondue en haut de page, matérialisée dès qu'on défile) */
.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 var(--ease), 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); white-space: nowrap; }
.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); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me form { margin: 0; flex: none; }
.me .chip { overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.me .chip::before { display: none; }
.me .btn-ghost { padding: 10px 18px; font-size: 14.5px; white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Accueil */
.hero { padding: 56px 0 44px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); 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 .7s var(--ease) both; padding: 0 .08em; margin: 0 -.08em; }
.lead { margin-top: 20px; max-width: 40em; font-size: 20px; line-height: 1.55; color: var(--soft); animation: rise .9s .15s var(--ease) both; }

.groups { display: grid; gap: 52px; padding-bottom: 24px; }
.group h2 { margin: 0 0 20px; font-size: clamp(28px, 3.4vw, 38px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }

/* Tuiles : une teinte par module */
.tile { position: relative; display: grid; gap: 8px; align-content: start; justify-items: start; padding: 24px 22px 22px; border-radius: 24px; background: var(--t, var(--card)); text-decoration: none; min-height: 250px;
  animation: pop .7s var(--ease) both; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; } .tile:nth-child(4) { animation-delay: .18s; }
.tile-icon { width: 76px; height: 76px; margin-bottom: 8px; filter: drop-shadow(0 4px 0 rgba(34, 27, 58, .10)); }
.tile h3 { font-size: 28px; }
.tile .desc { font-size: 15px; line-height: 1.5; color: #403960; }
.tile .chip, .tile .go { margin-top: auto; }
.tile .desc { margin-bottom: 14px; }
.go { font: 700 15px/1.2 var(--font-b); color: var(--ink); }
.go::after { content: '→'; display: inline-block; margin-left: .4em; transition: transform .3s var(--ease); }

a.tile:hover { transform: translateY(-8px) rotate(-.8deg); box-shadow: 0 22px 40px rgba(34, 27, 58, .12); }
a.tile:hover .tile-icon { animation: wiggle .6s var(--ease); }
a.tile:hover .go::after { transform: translateX(4px); }
.tile.soon { opacity: .72; }
.tile.soon .tile-icon { filter: saturate(.7) drop-shadow(0 4px 0 rgba(34, 27, 58, .08)); }
.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; }

.foot { max-width: 1120px; margin: 72px auto 0; padding: 28px 24px 48px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); 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; }

@media (max-width: 760px) { .me .chip { display: none; } }
@media (max-width: 520px) {
  .top { margin: 8px 8px 0; padding: 8px 8px 8px 14px; gap: 8px; }
  .brand-mark { font-size: 20px; gap: 8px; } .brand-mark b { display: none; }
  .me { gap: 6px; }
  .me .btn-ghost { padding: 9px 13px; font-size: 13.5px; }
  .me .long { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 32px; }
  .lead { font-size: 17px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 18px 16px; min-height: 0; border-radius: 20px; }
  .tile-icon { width: 56px; height: 56px; }
  .tile h3 { font-size: 22px; }
  .tile .desc { font-size: 13.5px; }
  .foot { margin-top: 48px; }
}
@media (max-width: 360px) { .tiles { grid-template-columns: 1fr; } }