/* 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; }
}
/* Suppress the browser touch flash; keyboard focus styles remain active. */
html { -webkit-tap-highlight-color: transparent; }
