/* Pages légales Kora — styles de index.html (polices, tokens, nav, boutons, footer) */
@font-face {
      font-family: 'Arista Pro';
      src: url('./fonts/arista-2-light.woff2') format('woff2'),
           url('./fonts/arista-2-light.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
    }

    @font-face {
      font-family: 'Polysans';
      src: url('./PolySans%20Slim/PolySans%20Slim.woff2') format('woff2'), url('./PolySans%20Slim/PolySans%20Slim.woff') format('woff');
      font-weight: normal;
      font-style: normal;
    }

    @font-face {
      font-family: 'Polysans';
      src: url('./PolySans%20Median/PolySans%20Median/PolySans%20Median.woff2') format('woff2'), url('./PolySans%20Median/PolySans%20Median/PolySans%20Median.woff') format('woff');
      font-weight: 500;
      font-style: normal;
    }

    @font-face {
      font-family: 'Rounded Elegance';
      src: local('Rounded Elegance'), local('RoundedElegance');
    }

    :root {
      --ink: #07070A;
      --ink-soft: #15151E;
      --ink-line: rgba(7, 7, 10, .1);
      --pearl: #FAFAFA;
      --pearl-2: #F2F0EA;
      --paper: #FFFFFF;
      --muted: #6E6878;
      --muted-2: #928C9B;
      --blue: #2563EB;
      --grad: var(--ink);
      --radius: 16px;
      --pill: 999px;
      --max: 2000px;
      --max-wide: 2000px;
      --edge: clamp(24px, 4.2vw, 88px);
      --ease: cubic-bezier(.22, 1, .36, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Polysans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--pearl);
      color: var(--ink);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 9999;
      pointer-events: none;
      opacity: .025;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
      background-size: 160px;
    }

    img,
    svg {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    h1,
    h2,
    h3 {
      font-family: "Polysans", Inter, sans-serif;
      letter-spacing: -.035em;
      line-height: 1.04;
      font-weight: 500;
    }

    /* Titres de section plus légers (le titre du hero garde son poids via .kora-hero h1) */
    h2 {
      font-weight: 400;
    }

    p {
      line-height: 1.7;
    }

    .mono {
      font-family: "JetBrains Mono", ui-monospace, monospace;
    }

    .wrap {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 var(--edge);
    }
    
    .wrap-wide {
      max-width: var(--max-wide);
      margin: 0 auto;
      padding: 0 var(--edge);
    }

    .section {
      padding: 72px 0;
    }

    @media(max-width:780px) {
      :root {
        --edge: 20px;
      }

      .section {
        padding: 72px 0;
      }
    }

    .kora-mark {
      width: 32px;
      height: 34px;
      flex: 0 0 auto;
      color: currentColor;
    }

    .kora-mark .soft {
      opacity: .92;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--grad);
      box-shadow: 0 0 18px rgba(49, 104, 255, .32);
    }

    .btn,
    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 15px 26px;
      border-radius: 10px;
      border: 1px solid transparent;
      font-family: "Polysans", Inter, sans-serif;
      font-size: 15px;
      font-weight: 500;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
      transition: transform .3s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    }

    .btn span,
    .btn-primary span {
      position: relative;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: color .55s var(--ease);
    }

    .btn svg,
    .btn-primary svg {
      width: 16px;
      height: 16px;
      position: relative;
      z-index: 2;
      transition: transform .35s var(--ease), stroke .45s var(--ease);
    }

    .btn:hover,
    .btn-primary:hover {
      transform: translateY(-2px);
      border-color: rgba(7, 7, 10, .14);
      box-shadow: 0 20px 42px -16px rgba(7, 7, 10, .28);
    }

    .btn:active,
    .btn-primary:active {
      transform: scale(0.98) translateY(-1px);
    }

    .btn:hover svg,
    .btn-primary:hover svg {
      transform: translateX(4px);
      stroke: var(--ink);
    }

    .btn::after,
    .btn-primary::after {
      content: "";
      position: absolute;
      left: -24%;
      bottom: -78%;
      width: 148%;
      height: 190%;
      border-radius: 50% 50% 0 0 / 32px 32px 0 0;
      transform: translateY(104%);
      transition: transform .86s var(--ease);
      z-index: 1;
      pointer-events: none;
    }

    .btn:hover::after,
    .btn-primary:hover::after {
      transform: translateY(-18%);
    }

    .btn-primary {
      background: var(--ink);
      color: #fff;
      box-shadow: 0 16px 36px -20px rgba(7, 7, 10, .72);
    }

    .btn-primary::after {
      background: #fff;
    }

    .btn-primary:hover span {
      color: var(--ink);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, .62);
      border-color: rgba(7, 7, 10, .12);
      color: var(--ink);
    }

    .btn-secondary::after {
      background: var(--ink);
    }

    .btn-secondary:hover span {
      color: #07070A;
    }

    .btn-light {
      background: #fff;
      color: var(--ink);
      box-shadow: 0 16px 36px -22px rgba(255, 255, 255, .5);
    }

    .btn-light::after {
      background: var(--ink);
    }

    .btn-light:hover span {
      color: #07070A;
    }

    body > nav {
      position: fixed;
      z-index: 99;
      top: 16px;
      left: max(var(--edge), calc((100vw - var(--max)) / 2 + var(--edge)));
      width: fit-content;
      max-width: calc(100vw - 2 * var(--edge));
      border-radius: 16px;
      background: rgba(236, 236, 233, 0.92);
      backdrop-filter: blur(20px) saturate(1.2);
      -webkit-backdrop-filter: blur(20px) saturate(1.2);
      border: 1px solid rgba(0, 0, 0, 0.04);
      box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
      padding: 6px 8px 6px 22px;
      transition: top 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    }

    body > nav.nav-hidden {
      transform: translateY(calc(-100% - 32px));
    }

    .nav-inner {
      height: 52px;
      display: flex;
      align-items: center;
      gap: 0;
      padding: 0;
      margin: 0;
      max-width: none;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #07070A;
      font-family: "Arista Pro", "Rounded Elegance", sans-serif;
      font-size: 21px;
      font-weight: 500;
      letter-spacing: 0.02em;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand img.kora-mark {
      height: 22px !important;
      width: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      margin: 0 0 0 40px;
      max-width: 640px;
      overflow: hidden;
      transition: max-width .5s cubic-bezier(.23, 1, .32, 1), margin .5s cubic-bezier(.23, 1, .32, 1), opacity .3s ease;
    }

    .nav-links a {
      font-size: 15px;
      font-weight: 400;
      color: var(--ink);
      text-decoration: none;
      transition: color .2s ease;
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: var(--ink);
    }

    .nav-cta {
      display: flex;
      align-items: center;
      margin: 0 0 0 40px;
      max-width: 220px;
      overflow: hidden;
      transition: max-width .5s cubic-bezier(.23, 1, .32, 1), margin .5s cubic-bezier(.23, 1, .32, 1), opacity .3s ease;
    }
    .brand .kora-wordmark { display: block; height: 28px; width: auto; }

    /* Défilement (desktop) : le menu se replie vers la gauche ; un point bleu permet de le rouvrir */
    @media (min-width: 901px) {
      body > nav { transition: padding .45s cubic-bezier(.23, 1, .32, 1), top 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; }
      body > nav.nav-compact { padding-right: 8px; }
      body > nav.nav-compact .nav-links, body > nav.nav-compact .nav-cta { max-width: 0; margin-left: 0; opacity: 0; pointer-events: none; }
      .nav-dot { display: grid; place-items: center; flex: none; width: 0; height: 44px; margin: 0; padding: 0; border: 0; background: none; opacity: 0; overflow: hidden; pointer-events: none; cursor: pointer; transition: width .45s cubic-bezier(.23, 1, .32, 1), margin .45s cubic-bezier(.23, 1, .32, 1), opacity .25s ease; }
      .nav-dot i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #366EEB; box-shadow: 0 0 0 5px rgba(54, 110, 235, .18); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
      body > nav.nav-compact .nav-dot { width: 44px; margin-left: 12px; opacity: 1; pointer-events: auto; }
      .nav-dot:active i { transform: scale(.85); }
      .nav-dot:focus-visible { outline: 2px solid #366EEB; outline-offset: 2px; border-radius: 50%; }
    }
    @media (max-width: 900px) { .nav-dot { display: none; } }

    .nav-cta .btn {
      min-height: 40px;
      height: 40px;
      padding: 0 20px;
      font-weight: 500;
      font-size: 13.5px;
      border-radius: 10px;
      white-space: nowrap;
    }

    .nav-toggle {
      display: none;
      border: 0;
      background: transparent;
      color: var(--ink);
    }

    .mobile-contact-btn {
      display: none;
    }

    @media(max-width:900px) {
      body > nav {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 440px;
        border-radius: 14px;
        padding: 5px 12px 5px 16px;
      }

      body > nav.nav-hidden {
        transform: translate(-50%, calc(-100% - 32px));
      }

      .nav-inner {
        position: relative;
        justify-content: space-between;
        height: 42px;
        gap: 12px;
        width: 100%;
      }

      .brand {
        font-size: 20px;
        gap: 8px;
      }

      .brand img.kora-mark {
        height: 20px !important;
      }

      .mobile-contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: var(--ink);
        color: #fff;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin-left: auto;
      }

      .nav-cta {
        display: none;
      }

      .nav-links {
        display: none;
      }

      .nav-toggle {
        display: block;
        padding: 8px;
        cursor: pointer;
        border: none;
        background: transparent;
      }

      .hamburger {
        width: 22px;
        height: 14px;
        position: relative;
      }

      .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--ink);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        left: 0;
      }

      .hamburger span:nth-child(1) {
        top: 0;
        transform-origin: center;
      }

      .hamburger span:nth-child(2) {
        bottom: 0;
        transform-origin: center;
      }

      .nav-toggle.open .hamburger span:nth-child(1) {
        top: 6px;
        transform: rotate(135deg);
      }

      .nav-toggle.open .hamburger span:nth-child(2) {
        bottom: 6px;
        transform: rotate(-135deg);
      }

      .nav-links.open {
        display: flex;
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        width: auto;
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        z-index: 100;
        animation: cardFlipIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
      }

      .nav-links.open::before,
      .nav-links.open::after {
        display: none;
      }

      .nav-links.open a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--ink);
        font-size: 16px;
        font-weight: 500;
      }
    }

      .nav-links.open a:last-child {
        border-bottom: none;
      }

    @keyframes cardFlipIn {
      0% {
        opacity: 0;
        transform: perspective(1200px) rotateY(-180deg) scale(0.9);
      }

      20% {
        opacity: 1;
      }

      100% {
        opacity: 1;
        transform: perspective(1200px) rotateY(0deg) scale(1);
      }
    }


/* FOOTER — fond gris clair, contenu au-dessus arrondi en bas (référence éditoriale) */
    main { position: relative; z-index: 2; background: var(--pearl, #FAFAFA); border-radius: 0 0 40px 40px; overflow: clip; }
    footer.kft { position: relative; z-index: 1; margin-top: -40px; padding: 140px 0 40px; background: #EDEDEE; color: #07070A; font-family: "Polysans", Inter, sans-serif; }
    .kft-grid { display: flex; flex-wrap: wrap; gap: 48px clamp(48px, 7vw, 120px); }
    .kft-col:last-child { margin-left: auto; }
    .kft-label { display: block; margin-bottom: 34px; font: 400 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; color: #8a8a90; }
    .kft-col a, .kft-col button { display: block; margin: 0; padding: 0; border: 0; background: none; font: 400 20px/1.45 "Polysans", Inter, sans-serif; letter-spacing: -.01em; color: #07070A; text-align: left; cursor: pointer; text-decoration: none; }
    .kft-col a:focus-visible, .kft-col button:focus-visible { outline: 2px solid #366EEB; outline-offset: 3px; border-radius: 3px; }
    @media (hover: hover) and (pointer: fine) { .kft-col a:hover, .kft-col button:hover { opacity: .55; } }
    .kft-brand { display: block; margin-top: clamp(56px, 8vw, 110px); }
    .kft-brand { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.2vw, 32px); color: #07070A; text-decoration: none; }
    .kft-brand img { display: block; width: clamp(64px, 10vw, 150px); height: auto; }
    .kft-brand span { font-family: "Arista Pro", "Rounded Elegance", sans-serif; font-weight: 400; font-size: clamp(64px, 11vw, 168px); line-height: 1; letter-spacing: .02em; }
    .kft-bottom { margin-top: clamp(28px, 4vw, 48px); font: 400 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; color: #8a8a90; }
    @media (max-width: 767px) {
      main { border-radius: 0 0 28px 28px; }
      footer.kft { margin-top: -28px; padding: 96px 0 32px; }
      .kft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
      .kft-col:last-child { margin-left: 0; }
      .kft-col a, .kft-col button { font-size: 18px; min-height: 44px; display: flex; align-items: center; }
      .kft-label { margin-bottom: 14px; }
    }
    /* ===================== PAGES LÉGALES ===================== */
html { scroll-padding-top: 120px; }
.skip { position: absolute; z-index: 200; top: -100px; left: 20px; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: var(--pill); font-size: 14px; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

.legal-hero { padding: 168px 0 56px; border-bottom: 1px solid var(--ink-line); }
.legal-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; margin: 4px 0 22px; max-width: 1000px; overflow-wrap: anywhere; }
.legal-hero .intro { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--muted); max-width: 690px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; font-size: 12px; color: var(--muted-2); }
.legal-meta .line { display: inline-block; width: 22px; height: 1px; background: var(--ink-line); }

.legal-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 82px; align-items: start; padding-bottom: 150px; }
.legal-side { position: sticky; top: 120px; padding-top: 52px; }
.legal-side small { display: block; color: var(--muted-2); font-weight: 500; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.legal-side nav { border-left: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.legal-side nav a { display: block; font-size: 13px; color: var(--muted); padding: 9px 0 9px 18px; line-height: 1.5; transition: color .2s; }
.legal-side nav a:hover { color: var(--ink); box-shadow: -1px 0 0 var(--ink); }
.legal-side hr { border: 0; border-top: 1px solid var(--ink-line); margin: 28px 0; }
.legal-side .other-links a { display: block; padding: 6px 0; font-size: 13px; color: var(--muted); }
.legal-side .other-links a:hover { color: var(--ink); text-decoration: underline; }

.legal-content { padding-top: 14px; min-width: 0; max-width: 880px; }
.legal-section { padding: 42px 0 46px; border-bottom: 1px solid var(--ink-line); }
.legal-section:last-child { border-bottom: 0; }
.section-index { font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 12px; }
.legal-section h2 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.2; margin: 0 0 20px; }
.legal-section p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0 0 15px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.85; margin: 10px 0 18px; }
.legal-section li { padding-left: 3px; margin: 3px 0; }
.legal-section strong { font-weight: 500; color: var(--ink); }
.legal-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(7,7,10,.3); }
.legal-section a:hover { text-decoration-color: var(--ink); }
.legal-section dl { margin: 6px 0 18px; }
.definition { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--ink-line); padding: 13px 0; }
.definition:last-child { border-bottom: 0; }
.definition dt { font-size: 13px; color: var(--ink); font-weight: 500; }
.definition dd { font-size: 14px; color: var(--muted); margin: 0; }
/* Information administrative à renseigner avant publication — jamais inventée */
.missing { background: var(--pearl-2); border: 1px dashed rgba(7,7,10,.28); border-radius: 6px; color: var(--ink-soft); padding: 1px 7px; font-size: .92em; }

@media (max-width: 950px) {
  .legal-shell { gap: 44px; grid-template-columns: 190px minmax(0, 1fr); }
  .legal-side nav a { font-size: 12px; }
}
@media (max-width: 760px) {
  .legal-hero { padding: 128px 0 40px; }
  .legal-shell { display: block; padding-bottom: 110px; }
  .legal-side { position: static; padding-top: 22px; }
  .legal-side small { margin-bottom: 10px; }
  .legal-side nav { border: 0; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 12px; scrollbar-width: thin; }
  .legal-side nav a { white-space: nowrap; background: var(--pearl-2); border: 1px solid var(--ink-line); border-radius: var(--pill); padding: 7px 12px; }
  .legal-side nav a:hover { box-shadow: none; border-color: rgba(7,7,10,.3); }
  .legal-side hr, .legal-side .other-links { display: none; }
  .legal-content { padding-top: 0; }
  .legal-section { padding: 32px 0 36px; }
  .legal-section p, .legal-section ul { font-size: 14px; }
  .definition { display: block; }
  .definition dt { margin-bottom: 4px; }
}
@media print {
  body > nav, .legal-side, footer, .skip { display: none !important; }
  .legal-hero { padding: 20px 0; }
  .legal-shell { display: block; padding: 0; }
  .legal-section { break-inside: avoid; padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Cibles tactiles ≥ 44 px (mobile / tablette) */
@media (max-width: 900px) {
  .mobile-contact-btn { width: 44px; height: 44px; }
  .nav-toggle { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .brand { min-height: 44px; }
  
}
@media (prefers-reduced-motion: reduce) { .nav-links.open { animation: none; } }
