/* hub.is42.fr — l'index de tout ce qu'Answer is 42 a mis en ligne.
 *
 * Thèse : en ASCII, le caractère 42 est l'astérisque, qui désigne « tout » dans un terminal.
 * Cette page est l'expansion de « is42.fr/* » : un hôte par section, une adresse par ligne.
 * Lois d'is42.fr : module 42 px ; échelle 2 × Fibonacci et ses intermédiaires, dont on prend toute valeur ;
 * un seul pigment, l'outremer, et un seul accent pigmenté par écran (l'astérisque) ; neutres chauds ;
 * angles vifs ; Archivo seule, Plex Mono pour les cotes ; durées en φ (100 · 162 · 262 · 424 · 686 ms).
 * Mouvement : un seul moment, à l'ouverture (l'astérisque tourne d'une branche, le titre monte, la cote
 * se trace) ; ensuite rien ne bouge sauf sous la main.
 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
             src: url("polices/Archivo-300-900-latin-ext.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: "Archivo"; font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
             src: url("polices/Archivo-300-900-latin.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("polices/IBMPlexMono-400-latin-ext.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("polices/IBMPlexMono-400-latin.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("polices/IBMPlexMono-500-latin-ext.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
             src: url("polices/IBMPlexMono-500-latin.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; }

:root {
  --s1: 6px; --s2: 8px; --s3: 10px; --s4: 13px; --s5: 16px; --s6: 20px; --s7: 26px; --s8: 33px;
  --s9: 42px; --s10: 53px; --s11: 68px; --s12: 86px; --s13: 110px; --s14: 140px; --s15: 178px; --s16: 288px;
  --d1: .1s; --d2: .162s; --d3: .262s; --d4: .424s; --d5: .686s; --d6: 1.11s;
  --ease: cubic-bezier(.2, .6, .2, 1); --sortie: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1240px; --pad: clamp(var(--s5), 4vw, var(--s11)); --measure: 58ch; --bar-h: var(--s10);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  --paper: #eeebe4; --paper-2: #e6e2da; --ink: #151512; --mut: #6b6860; --faint: #8a877e;
  --hair: #1515121f; --hair-2: #15151247; --pig: #1a22c4; --pig-fg: #eeebe4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0c0d; --paper-2: #141416; --ink: #eceae3; --mut: #9a978f; --faint: #6f6c66;
    --hair: #ffffff1c; --hair-2: #ffffff40; --pig: #6169ff; --pig-fg: #0c0c0d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0c0d; --paper-2: #141416; --ink: #eceae3; --mut: #9a978f; --faint: #6f6c66;
  --hair: #ffffff1c; --hair-2: #ffffff40; --pig: #6169ff; --pig-fg: #0c0c0d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + var(--s7)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s5)/var(--s7) var(--sans);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; }
::selection { background: var(--pig); color: var(--pig-fg); }
:focus-visible { outline: 2px solid var(--pig); outline-offset: 3px; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }
code { font-family: var(--mono); }
svg { display: block; }

.saut { position: absolute; left: -9999px; top: 0; padding: var(--s3) var(--s5); background: var(--ink); color: var(--paper); z-index: 50; }
.saut:focus { left: var(--pad); top: var(--s3); }
.anno { font: 400 var(--s4)/var(--s6) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.display { font-family: var(--sans); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; }

/* ---------------------------------------------------------------- la barre */
.barre { position: sticky; top: 0; z-index: 40; height: var(--bar-h); border-bottom: 1px solid var(--hair);
         background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.barre .in { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: var(--s7); }
.marque { display: flex; align-items: center; gap: var(--s3); flex: none; }
.marque svg { width: var(--s6); height: var(--s6); transition: transform var(--d4) var(--sortie); }
.marque:hover svg { transform: rotate(60deg); }
.marque b { font: 800 var(--s5)/1 var(--sans); font-stretch: 108%; text-transform: uppercase; letter-spacing: -.03em; }
.marque span { font: 400 var(--s3)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ancres { display: flex; gap: var(--s7); margin-left: auto; }
.ancres a { position: relative; font: 400 var(--s4)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut);
            padding: var(--s2) 0; transition: color var(--d2) var(--ease); }
.ancres a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
                   transform: scaleX(0); transform-origin: left; transition: transform var(--d3) var(--sortie); }
.ancres a:hover { color: var(--ink); }
.ancres a:hover::after { transform: scaleX(1); }
.carre { width: var(--s8); height: var(--s8); display: grid; place-items: center; flex: none; border: 1px solid var(--hair-2);
         background: transparent; color: var(--mut); cursor: pointer; padding: 0; font: 400 var(--s5)/1 var(--mono);
         transition: color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.carre:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- l'ouverture */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) var(--s12); }
.tete { padding: var(--s12) 0 0; }
.motif { margin-bottom: var(--s11); }
.motif span { color: var(--ink); }
.titre { display: flex; align-items: flex-end; gap: var(--s9); }
.asterisque { width: var(--s15); height: var(--s15); flex: none; color: var(--pig); }
.asterisque g { stroke: currentColor; stroke-width: 7; transform-origin: 21px 21px; }
.tete h1, .rien h1 { font-size: clamp(var(--s10), 9.2vw, var(--s14)); }
.l { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.l > span { display: inline-block; }
.lede { max-width: var(--measure); margin-top: var(--s10); font-size: var(--s6); line-height: var(--s8); color: var(--mut); }
.lede code { font-weight: 500; color: var(--ink); }
.lede a { color: var(--ink); border-bottom: 1px solid var(--hair-2); }

/* la cote : la page mesurée, comme une cote sur un plan */
.cote { position: relative; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s9); margin-top: var(--s11); padding-top: var(--s4);
        background: linear-gradient(var(--hair-2), var(--hair-2)) left top / 100% 1px no-repeat;
        font: 400 var(--s4)/var(--s6) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.cote::before, .cote::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--hair-2); }
.cote::before { left: 0; } .cote::after { right: 0; }

/* ---------------------------------------------------------------- un hôte */
.hote { padding-top: var(--s12); }
.hote header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s9);
               padding-bottom: var(--s6); border-bottom: 1px solid var(--ink); }
.hote h2 { font-size: clamp(var(--s8), 4.4vw, var(--s10)); min-width: 0; overflow-wrap: anywhere; }
.hote h2 a { background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size var(--d3) var(--sortie); }
.hote h2 a:hover { background-size: 100% 2px; }
.hote header .anno { display: flex; align-items: center; gap: var(--s5); }
.acces, .tag { font: 400 var(--s3)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut);
               padding: var(--s1) var(--s2); border: 1px solid var(--hair-2); white-space: nowrap; }

/* une ligne : le titre et son chemin, ce que fait l'adresse, l'accès s'il diffère de l'hôte */
.ligne { position: relative; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) auto var(--s7);
         grid-template-areas: "nom corps tag go"; align-items: baseline; gap: var(--s5) var(--s9);
         padding: var(--s7) 0; border-bottom: 1px solid var(--hair); }
.ligne::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
                 transform: scaleX(0); transform-origin: left; transition: transform var(--d4) var(--sortie); }
.nom { grid-area: nom; display: grid; gap: var(--s2); min-width: 0; transition: transform var(--d3) var(--sortie); }
.t { font: 800 var(--s7)/1 var(--sans); font-stretch: 108%; text-transform: uppercase; letter-spacing: -.03em; }
.t a::after { content: ""; position: absolute; inset: 0; }
.p { font: 400 var(--s4)/1 var(--mono); color: var(--faint); }
.corps { grid-area: corps; min-width: 0; display: grid; gap: var(--s3); }
.d { color: var(--mut); max-width: var(--measure); }
.d b { color: var(--ink); font-weight: 600; }
.sous { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); font: 400 var(--s4)/var(--s6) var(--mono); }
.sous a { position: relative; z-index: 1; color: var(--mut);
          background: linear-gradient(var(--hair-2), var(--hair-2)) left bottom / 100% 1px no-repeat;
          transition: color var(--d2) var(--ease), background-size var(--d3) var(--sortie); }
.sous a:hover { color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); }
.tag { grid-area: tag; justify-self: end; }
.go { grid-area: go; justify-self: end; font-family: var(--mono); color: var(--faint);
      transition: transform var(--d3) var(--sortie), color var(--d2) var(--ease); }
@media (hover: hover) {
  .ligne:not(.fixe):hover::before { transform: scaleX(1); }
  .ligne:not(.fixe):hover .nom { transform: translateX(var(--s1)); }
  .ligne:not(.fixe):hover .go { transform: translate(3px, -3px); color: var(--ink); }
}
.ligne:focus-within::before { transform: scaleX(1); }

/* l'adresse à copier (le MCP n'est pas une page) */
.copie { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; max-width: 100%; }
.copie code { font: 500 var(--s4)/1 var(--mono); padding: var(--s3) var(--s4); border: 1px solid var(--hair-2); border-right: 0;
              user-select: all; overflow-wrap: anywhere; min-width: 0; }
.copier { font: 400 var(--s3)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: var(--s3) var(--s5);
          border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; min-width: 11ch;
          transition: background var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.copier:hover { background: var(--pig); border-color: var(--pig); color: var(--pig-fg); }

/* ---------------------------------------------------------------- le pied */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: var(--s13); padding-top: var(--s5);
        border-top: 1px solid var(--hair); }
.pied a { color: var(--mut); transition: color var(--d2) var(--ease); }
.pied a:hover { color: var(--ink); }

/* 404 */
.rien { min-height: calc(100svh - var(--bar-h) - var(--s13)); display: grid; align-content: center; gap: var(--s9); padding: var(--s11) 0; }
.rien .asterisque { width: var(--s13); height: var(--s13); }
.rien .lede { margin-top: 0; }

/* ---------------------------------------------------------------- l'ouverture, en mouvement */
@media (prefers-reduced-motion: no-preference) {
  .asterisque g { animation: tourner var(--d6) var(--sortie) both; }
  .l > span { animation: monter var(--d5) var(--sortie) both; }
  .l:nth-child(2) > span { animation-delay: var(--d1); }
  .motif, .lede { animation: paraitre var(--d5) var(--sortie) both; }
  .lede { animation-delay: var(--d3); }
  .cote { animation: tracer var(--d6) var(--sortie) var(--d4) both; }
  .cote::after, .cote span { animation: paraitre var(--d4) var(--ease) both; animation-delay: calc(var(--d4) + var(--d5)); }
  .hote { animation: paraitre var(--d5) var(--sortie) both; animation-delay: var(--d5); }
  .hote:nth-of-type(2) { animation-delay: calc(var(--d5) + var(--d1)); }
  .hote:nth-of-type(3) { animation-delay: calc(var(--d5) + var(--d2)); }
  .hote:nth-of-type(4) { animation-delay: calc(var(--d5) + var(--d3)); }
}
@keyframes tourner { from { transform: rotate(-60deg); } }                       /* une branche : la figure revient sur elle-même */
@keyframes monter { from { transform: translateY(105%); } }
@keyframes paraitre { from { opacity: 0; transform: translateY(var(--s2)); } }
@keyframes tracer { from { background-size: 0 1px; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--d3); animation-timing-function: var(--ease); }

/* ---------------------------------------------------------------- largeurs */
@media (max-width: 860px) {
  .ancres { display: none; }
  .carre { margin-left: auto; }
  .tete { padding-top: var(--s10); }
  .motif { margin-bottom: var(--s10); }
  .titre { flex-direction: column; align-items: flex-start; gap: var(--s7); }
  .asterisque { width: var(--s13); height: var(--s13); }
  .lede { font-size: var(--s5); line-height: var(--s7); margin-top: var(--s8); }
  .cote { margin-top: var(--s10); }
  .hote { padding-top: var(--s11); }
  .ligne { grid-template-columns: minmax(0, 1fr) var(--s7); grid-template-areas: "nom go" "corps corps" "tag tag";
           gap: var(--s4) var(--s5); padding: var(--s6) 0; }
  .tag { justify-self: start; }
  .t { font-size: var(--s6); }
  .d { font-size: var(--s5); line-height: var(--s7); }
}
@media (max-width: 420px) { .marque span { display: none; } .hote header .anno { flex-wrap: wrap; gap: var(--s3); } }
@media print { .barre { display: none; } .go { display: none; } * { animation: none !important; } }
