@font-face { font-family: 'BG'; src: url(/files/bg-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'BG'; src: url(/files/bg-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BG'; src: url(/files/bg-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BG'; src: url(/files/bg-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BG'; src: url(/files/bg-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IN'; src: url(/files/inter-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IN'; src: url(/files/inter-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IN'; src: url(/files/inter-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --violet: #4C0099;
  --orange: #FF4E00;
  --jaune: #FFD400;
  --lavande: #F4F0F8;
  --blanc: #FFFFFF;
  --ink: #2A0F52;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--blanc); }
body { font-family: 'IN', system-ui, sans-serif; color: var(--violet); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.display { font-family: 'BG', sans-serif; font-weight: 800; letter-spacing: -0.045em; line-height: .92; }

/* Navigation commune */
.nav { position: fixed; inset: 0 0 auto 0; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3.4vw, 48px); z-index: 50; color: var(--nav-fg, var(--violet)); transition: color .4s ease; }
.nav-logo { width: 112px; height: 46px; background: currentColor; -webkit-mask: url(/files/logo-violet.svg) no-repeat center / contain; mask: url(/files/logo-violet.svg) no-repeat center / contain; }
.nav-links { display: flex; gap: 32px; font: 500 15px 'IN'; }
/* menu à six liens : on resserre sur les écrans moyens pour qu'il ne touche pas le logo */
@media (max-width: 1180px) { .nav-links { gap: 20px; font-size: 14.5px; } .nav-pill { gap: 20px !important; padding-left: 20px !important; } }
@media (max-width: 1010px) { .nav-links { gap: 15px; font-size: 14px; } .nav-pill { gap: 14px !important; padding-left: 16px !important; } }
.nav-links a { opacity: .9; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--orange); color: var(--blanc); font: 700 19px 'BG'; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: transform .18s var(--ease-out), filter .18s; }
.btn.sm { height: 44px; padding: 0 20px; gap: 8px; font-size: 16px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn svg { transition: transform .25s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Martin en calques (corps + clin d'oeil + main qui salue) */
.martin { position: relative; aspect-ratio: 1002 / 922; }
.martin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.martin .hand { transform-origin: 71% 64%; }
.martin.waving .hand { animation: wave 1.3s ease-in-out; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-16deg); } }

/* Carte de la charte (titre, détail, coche) */
.note { display: flex; gap: 14px; align-items: center; background: var(--blanc); color: var(--violet); border-radius: 26px; padding: 16px 22px 16px 16px; box-shadow: 0 2px 4px rgba(76,0,153,.06), 0 24px 48px rgba(76,0,153,.18); }
.note .tick { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--violet); }
.note b { display: block; font: 800 18px 'BG'; letter-spacing: -.01em; }
.note span { font: 500 14px 'IN'; color: #5B4A75; }

.proto-badge { position: fixed; left: 16px; bottom: 16px; z-index: 60; font: 600 12px 'IN'; background: rgba(255,255,255,.92); color: var(--violet); padding: 8px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(76,0,153,.12); }
.proto-badge a { text-decoration: underline; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .btn { height: 52px; font-size: 19px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Grain fin, façon affiche imprimée (activé avec <body class="grain">) */
body.grain::after { content: ''; position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .15; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { body.grain::after { animation: none; } }
.classic-slot { min-height: 50vh; }
/* Sélecteur de pages de la maquette : compact sur mobile */
@media (max-width: 700px) {
  .proto-nav { left: 8px !important; right: 8px !important; bottom: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .proto-nav a { flex: none; font-size: 11px; padding: 5px 8px !important; }
}

/* Second choix à côté de « Réserver une démo » : parler directement à l'équipe */
.ask { display: inline-block; margin-left: 22px; font: 600 16px/1.3 'BG'; color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .2s; }
.ask:hover { text-decoration-color: currentColor; }
.ask:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.row .ask { margin-left: 0; }
/* sur téléphone : zone à toucher de 44 px, le texte reste à sa place */
@media (max-width: 600px) { .ask { display: block; width: fit-content; margin: 4px 0 -12px; padding: 12px 0; } .row .ask { margin: -12px 0; } }

/* Menu du téléphone (mm-nav.js) : bouton à trois traits dans la pastille, panneau violet plein écran */
.nav-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--violet); cursor: pointer; place-items: center; align-content: center; gap: 5px; -webkit-tap-highlight-color: transparent; }
.nav-burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-burger:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-panel { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; overscroll-behavior: contain;
  padding: 104px clamp(20px, 3.4vw, 48px) calc(28px + env(safe-area-inset-bottom)); background: var(--violet); color: var(--blanc);
  opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.nav-panel.on { opacity: 1; transform: none; }
.nav-panel[hidden] { display: none; }
.nav-panel:not(.on) { pointer-events: none; }
.nav-panel-links { display: flex; flex-direction: column; }
.nav-panel-links a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.16); font: 800 clamp(28px, 8.4vw, 38px)/1.1 'BG'; letter-spacing: -.03em; }
.nav-panel-links a[aria-current] { color: var(--jaune); }
.nav-panel-links a:focus-visible, .nav-panel .btn:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
.nav-panel .btn { margin-top: auto; justify-content: center; flex: none; height: 56px; font-size: 19px; }
html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
html.menu-ouvert .nav { --nav-fg: var(--blanc); color: var(--blanc); background: transparent !important; transition: none; }
@media (max-width: 820px) {
  .nav-burger { display: grid; }
  .nav-pill > .btn { display: none; }
}
@media (min-width: 821px) { .nav-panel { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-panel, .nav-burger span { transition: none; } }

/* Téléphone : liens « Découvrir… » touchables sur 44 px sans rien déplacer */
@media (max-width: 600px) {
  a.link { position: relative; }
  a.link::after { content: ; position: absolute; inset: -12px -4px; }
}

/* Téléphone : en-tête plus bas (64 px) ; grain fixe, son animation saccadait le défilement */
@media (max-width: 820px) {
  .nav { height: 64px; }
  body.grain::after { animation: none; }
}
