/* Nakria — kit de composants (nouvelle direction artistique).
 * Source unique : ce fichier est copié tel quel dans chaque sous-domaine (l'hébergement ne permet pas de fichier partagé).
 * Contenu : couleurs, typographie, boutons, pastilles, animations. Aucun style en ligne n'est nécessaire (CSP style-src 'self'). */
@font-face { font-family: 'Nakria Alphabet Sans'; src: url('fonts/nakria-alphabet-sans-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFF6E9; --card: #FFFFFF; --ink: #221B3A; --soft: #6B6485; --line: #EADFCC;
  --acc: #6C4DFF; --acc-d: #4B32C9;
  --mint: #BDEBDD; --sky: #BFDDFF; --lilac: #DCCBFF; --peach: #FFD3B8; --lemon: #FFEFA8; --pink: #FFC9DB;
  --c-write: #7FB2FF; --c-drive: #A58BFF; --c-calendar: #FF9A76; --c-mail: #FF8FB1; --c-grid: #5FD0A8; --c-present: #FFD84D; --c-forms: #48C4D8; --c-vista: #7C8CFF;
  --r: 22px; --r2: 14px;
  --font-d: 'Nakria Alphabet Sans', 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* l'attribut hidden doit toujours l'emporter sur un display: flex / grid */
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 400; font-synthesis: none; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lilac); }

/* Boutons : pastille pleine, petit relief qui s'enfonce au clic */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--font-b); padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.btn-primary { --rel: 5px; background: var(--acc); color: #fff; box-shadow: 0 var(--rel) 0 var(--acc-d); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 var(--rel) 0 var(--acc-d), 0 18px 22px -8px rgba(108, 77, 255, .38); }   /* le relief garde sa taille : tout le bouton se soulève */
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--acc-d); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); padding: 12px 22px; font-size: 15px; }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 3px 0 var(--line), 0 14px 18px -8px rgba(34, 27, 58, .22); border-color: var(--ink); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }

/* Pastilles d'état */
.chip { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-b); letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); opacity: .5; }
.chip.live::before { background: #2DBE8C; opacity: 1; animation: pulse 2s ease-in-out infinite; }
.chip.beta::before { background: var(--c-write); opacity: 1; }
.chip.wip::before { background: var(--c-calendar); opacity: 1; animation: pulse 2s ease-in-out infinite; }

/* Apparition au défilement (le script ajoute .in) ; sans JavaScript, tout reste visible */
.js .rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv:nth-child(2) { transition-delay: .07s; } .js .rv:nth-child(3) { transition-delay: .14s; } .js .rv:nth-child(4) { transition-delay: .21s; }
.js .rv:nth-child(5) { transition-delay: .28s; } .js .rv:nth-child(6) { transition-delay: .35s; } .js .rv:nth-child(7) { transition-delay: .42s; }
.js .rv:nth-child(8) { transition-delay: .49s; } .js .rv:nth-child(9) { transition-delay: .56s; }

@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 190, 140, .5); } 50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(45, 190, 140, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6) translateY(10px); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg) scale(1.06); } 75% { transform: rotate(9deg) scale(1.06); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, -30px); } }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Nakria : widgets de formulaire (nakria-widgets.js). Copie du style du site du compte (account.nakria.com), plus l'heure, la confirmation et les suggestions.
   Se charge APRÈS la feuille de style de l'application. */
.nk-native { display: none !important; }
.nk-select, .nk-date { position: relative; min-width: 0; }
.nk-btn { position: relative; width: 100%; display: flex; align-items: center; text-align: left; font: 400 16.5px/1.3 var(--font-b); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r2); padding: 14px 42px 14px 15px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.nk-btn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nk-btn.is-placeholder .nk-btn-text { color: #A59FB8; }
.nk-btn::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border: solid var(--soft); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.nk-select.is-open .nk-btn::after { transform: translateY(-25%) rotate(225deg); }
.nk-btn:hover, .nk-date input.nk-date-text:hover { border-color: #D8C9AE; }
.nk-btn:focus-visible, .nk-select.is-open .nk-btn, .nk-date input.nk-date-text:focus, .nk-date.is-open input.nk-date-text { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(108, 77, 255, .16); background: #fff; }
.nk-btn:disabled { opacity: .55; cursor: not-allowed; }
.nk-native[aria-invalid="true"] + .nk-select .nk-btn, .nk-native[aria-invalid="true"] + .nk-date input.nk-date-text { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }

.nk-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 26px 50px -14px rgba(34, 27, 58, .28), 0 2px 0 var(--line); transform-origin: top center; animation: nkpop .24s var(--ease) both; }
.nk-select.is-up .nk-pop, .nk-date.is-up .nk-pop { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.nk-search-wrap { position: relative; margin-bottom: 6px; }
.nk-search-wrap::before { content: ''; position: absolute; left: 15px; top: calc(50% - 8px); width: 9px; height: 9px; border: 2px solid var(--soft); border-radius: 50%; pointer-events: none; }
.nk-search-wrap::after { content: ''; position: absolute; left: 27px; top: calc(50% + 4px); width: 6px; height: 2px; background: var(--soft); border-radius: 2px; transform: rotate(45deg); pointer-events: none; }
.nk-pop input.nk-search { padding: 11px 14px 11px 42px; font-size: 15.5px; border-radius: 12px; }
.nk-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; scrollbar-color: #D8C9AE transparent; }
.nk-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15.5px; line-height: 1.3; }
.nk-opt.is-active { background: rgba(220, 203, 255, .5); }
.nk-opt[aria-selected="true"] { font-weight: 600; }
.nk-opt[aria-selected="true"]::after { content: ''; flex: none; width: 10px; height: 5px; margin: 0 2px 3px 0; border: solid var(--acc); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.nk-empty { padding: 14px 12px; color: var(--soft); font-size: 14.5px; text-align: center; }

.nk-date-field { position: relative; }
.nk-date input.nk-date-text { padding-right: 58px; letter-spacing: .03em; }
.nk-date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; cursor: pointer; transition: background .2s; }
.nk-date-btn:hover, .nk-date.is-open .nk-date-btn { background: var(--lilac); }
.nk-cal-ico { width: 18px; height: 16px; border: 2px solid var(--soft); border-top-width: 5px; border-radius: 5px; }
.nk-cal { right: auto; width: 100%; min-width: 272px; max-width: 340px; padding: 12px; }
.nk-cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.nk-nav { position: relative; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .2s; }
.nk-nav::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 0 2px 2px; }
.nk-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.nk-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.nk-nav:hover:not(:disabled) { background: var(--lilac); }
.nk-nav:disabled { opacity: .3; cursor: not-allowed; }
.nk-cal-title { flex: 1; display: flex; justify-content: center; gap: 2px; min-width: 0; }
.nk-cal-title button, .nk-cal-range { font: 700 15px/1 var(--font-b); color: var(--ink); padding: 9px 10px; border: 0; border-radius: 999px; background: none; text-transform: capitalize; }
.nk-cal-title button { cursor: pointer; transition: background .2s; }
.nk-cal-title button:hover { background: var(--lilac); }
.nk-cal-body { animation: nkfade .2s var(--ease) both; }
.nk-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 600 11.5px/1 var(--font-b); color: var(--soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.nk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.nk-cal-grid.is-3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nk-cell { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: none; font: 500 14.5px/1 var(--font-b); color: var(--ink); cursor: pointer; transition: background .15s, transform .2s var(--ease); }
.nk-cal-grid.is-3 .nk-cell { aspect-ratio: auto; padding: 14px 4px; border-radius: 14px; text-transform: capitalize; }
.nk-cell:hover:not(:disabled) { background: var(--lilac); transform: scale(1.06); }
.nk-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--acc); }
.nk-cell[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.nk-cell:disabled { color: #B9B2CC; opacity: .55; cursor: not-allowed; }
.nk-cell:focus-visible { outline: 3px solid var(--acc); outline-offset: 1px; }
@keyframes nkpop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nkfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .nk-cal { min-width: 0; max-width: none; } }

.nk-select.is-up .nk-pop, .nk-date.is-up .nk-pop, .nk-suggest.is-up .nk-pop { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }

/* Heure */
.nk-time .nk-btn { padding-right: 36px; font-variant-numeric: tabular-nums; }
.nk-time .nk-btn::after { right: 15px; }
.nk-timepop { left: auto; right: 0; width: auto; min-width: 150px; display: flex; align-items: flex-start; gap: 6px; }
.nk-tcol { display: flex; flex-direction: column; gap: 2px; height: 224px; padding: 0 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #D8C9AE transparent; }
.nk-tcell { flex: none; aspect-ratio: auto; width: 56px; height: 36px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.nk-colon { align-self: center; color: var(--soft); font-weight: 700; }

/* Suggestions */
.nk-suggest { position: relative; min-width: 0; }
.nk-sg-opt { gap: 12px; }
.nk-opt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-opt-sub { margin-left: auto; padding-left: 12px; font-size: 12.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Confirmation */
.nk-confirm { width: min(420px, calc(100vw - 24px)); padding: 28px; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(34, 27, 58, .3); }
.nk-confirm[open] { animation: nkpop .3s var(--ease) both; }
.nk-confirm::backdrop { background: rgba(34, 27, 58, .45); }
.nk-confirm form { margin: 0; }
.nk-confirm-msg { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.nk-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.nk-cbtn { font: 700 14px/1.2 var(--font-b); padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.nk-cbtn:hover { transform: translateY(-2px); border-color: var(--ink); }
.nk-cbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.nk-cbtn:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.nk-yes { background: var(--acc); border-color: transparent; color: #fff; box-shadow: 0 4px 0 var(--acc-d); }
.nk-yes:hover { border-color: transparent; }
.nk-yes.danger { background: #D6336C; box-shadow: 0 4px 0 #A8244F; }

@media (prefers-reduced-motion: reduce) { .nk-pop, .nk-cal-body, .nk-confirm[open] { animation: none !important; } }
/* Suppress the browser touch flash; keyboard focus styles remain active. */
html { -webkit-tap-highlight-color: transparent; }
