@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/inter-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/inter-latin-500-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/inter-latin-600-normal.woff2) format('woff2'); 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; }

/* Blanc Yann (thème clair de l'application) */
:root {
  --fond: #fafafa;
  --texte: #111111;
  --secondaire: rgba(17, 17, 17, 0.64);
  --discret: rgba(17, 17, 17, 0.42);
  --trait: rgba(17, 17, 17, 0.07);
  --souligne: rgba(17, 17, 17, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: rgba(17, 17, 17, 0.12); }

.logo { position: absolute; top: 32px; right: 40px; z-index: 2; line-height: 0; }
.logo img { width: 40px; height: auto; display: block; }

.page { max-width: 1440px; margin: 0 auto; padding: 0 56px 160px; }

.head { padding: 136px 0 0; }
.head h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.meta { margin: 24px 0 0; color: var(--discret); font-size: 14px; letter-spacing: -0.005em; }

.cols { display: grid; grid-template-columns: 1fr 3fr; margin-top: 88px; }

/* Partie gauche : un quart */
.side { padding-right: 40px; border-right: 1px solid var(--trait); }
.side ul, .side ol { list-style: none; margin: 0; padding: 0; }
.docs { position: sticky; top: 40px; }
.docs > li + li { margin-top: 14px; }
.docs a { text-decoration: none; color: var(--discret); font-size: 15px; line-height: 1.4; transition: color .15s ease; }
.docs a:hover, .docs a:focus-visible { color: var(--texte); }
.docs a[aria-current='page'] { color: var(--texte); font-weight: 500; }
.sub { margin: 12px 0 6px !important; padding-left: 14px !important; }
.sub li + li { margin-top: 8px; }
.sub a { font-size: 13.5px; }

/* Partie droite : trois quarts */
.doc { padding-left: 72px; max-width: calc(720px + 72px); min-width: 0; }
.doc > :first-child { margin-top: 0; }
.intro { font-size: 19px; line-height: 1.55; color: var(--secondaire); margin: 0 0 56px; letter-spacing: -0.01em; }
.doc h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin: 72px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 40px 0 10px; }
.doc h2 + h3 { margin-top: 28px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 20px; }
.doc li { margin: 0 0 8px; padding-left: 4px; }
.doc li::marker { color: var(--discret); }
.doc strong { font-weight: 600; }
.doc a { text-decoration: underline; text-decoration-color: var(--souligne); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.doc a:hover { text-decoration-color: currentColor; }
.doc h3 a { text-decoration: none; }
.doc .note { margin-top: 64px; color: var(--secondaire); font-size: 15px; }
.doc .note em { font-style: normal; }

.table { overflow-x: auto; margin: 8px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--trait); }
th { font-weight: 500; color: var(--secondaire); font-size: 13.5px; }

/* Transition douce lors d'un changement de document */
.doc, .head h1, .meta { transition: opacity .18s ease; }
.is-loading .doc, .is-loading .head h1, .is-loading .meta { opacity: .25; }

:focus-visible { outline: 2px solid var(--texte); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 1100px) {
  .page { padding: 0 40px 120px; }
  .doc { padding-left: 48px; }
  .side { padding-right: 28px; }
}

/* Téléphone et tablette : le quart gauche passe au-dessus du contenu */
@media (max-width: 820px) {
  .logo { top: 22px; right: 22px; }
  .logo img { width: 34px; }
  .page { padding: 0 22px 96px; }
  .head { padding-top: 88px; }
  .head h1 { font-size: clamp(38px, 11vw, 64px); letter-spacing: -0.04em; }
  .meta { margin-top: 16px; font-size: 13px; }
  .cols { display: block; margin-top: 40px; }
  .side { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--trait); margin: 0 -22px; }
  .side .docs { position: static; display: flex; gap: 22px; overflow-x: auto; padding: 0 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .docs::-webkit-scrollbar { display: none; }
  .docs > li { flex: none; }
  .docs > li + li { margin-top: 0; }
  .docs a { font-size: 15px; white-space: nowrap; }
  .sub { display: none; }
  .doc { padding: 40px 0 0; max-width: none; }
  .intro { font-size: 17px; margin-bottom: 40px; }
  .doc h2 { font-size: 22px; margin-top: 56px; }
  .doc h3 { font-size: 16px; }
  body { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .logo, .side { display: none; }
  .cols { display: block; margin-top: 32px; }
  .doc { padding: 0; max-width: none; }
  .head { padding-top: 0; }
  .head h1 { font-size: 40px; }
  .doc a { text-decoration: none; }
}
