/* XANDERDELY — base de l’accueil (extraite de home.css V7 par tools/prune-css.js : seules les règles utilisées). */
/* XANDERDELY V7 « Le fil » — accueil uniquement (/ugc garde styles.css).
   Méthode Raycast traduite : surfaces quasi noires à paliers infimes, traits d'1 px, reflet « touche de clavier »,
   une seule couleur forte rationnée (bordeaux = lumière), un moment spectaculaire puis la sobriété. */
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/InstrumentSerif-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/assets/fonts/InstrumentSerif-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  /* Palette officielle */
  --noir: #1D1A1C; --bordeaux: #6A1F2C; --brun: #5A3B2E; --brun-c: #8F6B4D; --ivoire: #D6D0C6;
  /* Paliers techniques dérivés (écarts de 2 à 6 % de luminance) */
  --s-0: #141113;  /* puits, sol */
  --s-1: #1D1A1C;  /* canvas */
  --s-2: #221F21;  /* carte */
  --s-3: #2A2628;  /* carte survolée */
  --s-tint: #26191C; /* teinte bordeaux */
  --line: rgba(214, 208, 198, .10);
  --line-2: rgba(214, 208, 198, .16);
  --line-3: rgba(214, 208, 198, .26);
  /* Textes (contraste mesuré sur #1D1A1C) */
  --t-1: #EFEBE4;  /* 14.6:1 */
  --t-2: #D6D0C6;  /* 11.4:1 */
  --t-3: #A69E94;  /* 6.6:1 */
  --t-4: #8B8379;  /* 4.7:1 */
  --accent: #B0473F; /* bordeaux éclairé : lumière, état « en cours » uniquement */

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Songti SC', 'STSong', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Relief : touche de clavier (reflet haut, anneau, ombre basse intérieure) */
  --key: inset 0 1px 0 rgba(239, 235, 228, .06), 0 0 0 1px var(--line-2), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
  --key-hi: inset 0 1px 0 rgba(239, 235, 228, .09), 0 0 0 1px var(--line-3), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 6px 18px -8px rgba(0, 0, 0, .6);
  --key-press: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-2);

  --r-1: 6px; --r-2: 10px; --r-3: 16px; --r-4: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 120ms; --mid: 220ms; --slow: 900ms;
  --gut: clamp(16px, 4.4vw, 48px);
  --max: 1200px;
  --nav-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--s-1); }
body { margin: 0; background: var(--s-1); color: var(--t-2); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--bordeaux); color: var(--t-1); }
:focus-visible { outline: 2px solid var(--ivoire); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ivoire); color: var(--noir); border-radius: var(--r-2); font-weight: 600; transition: top var(--mid) var(--ease); }
.skip:focus { top: calc(12px + var(--safe-t)); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t-4); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* ── Surfaces & touches ── */
.key {
  --bg: var(--s-2);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-2); color: var(--t-1); font: 500 14px/1 var(--sans); letter-spacing: .005em;
  background: linear-gradient(180deg, rgba(239, 235, 228, .05), rgba(239, 235, 228, 0) 60%), var(--bg);
  box-shadow: var(--key); transition: box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease), transform var(--fast) var(--ease), color var(--fast);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { --bg: var(--s-3); box-shadow: var(--key-hi); }
.key:active { transform: translateY(1px); box-shadow: var(--key-press); }
.key--sm { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 8px; }
.key--sm .i { width: 16px; height: 16px; }
.key--ivory { --bg: var(--ivoire); color: #1D1A1C; background: linear-gradient(180deg, #EFEBE4, var(--ivoire)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(214, 208, 198, .5), inset 0 -1px 0 rgba(90, 59, 46, .35), 0 6px 16px -8px rgba(0, 0, 0, .7); }
.key--ivory:hover { background: linear-gradient(180deg, #F6F3EE, #DFD9D0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(214, 208, 198, .7), inset 0 -1px 0 rgba(90, 59, 46, .35), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.key--ivory:active { box-shadow: inset 0 1px 3px rgba(90, 59, 46, .45), 0 0 0 1px rgba(214, 208, 198, .5); }
.key .i { color: currentColor; }
/* ── Navigation flottante ── */
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
/* Liens sociaux */
/* ── Ouverture ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 48px + var(--safe-t)) 0 clamp(28px, 5vh, 56px); isolation: isolate; overflow: hidden; }
.hero__lede { max-width: 33em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--t-3); text-wrap: pretty; }
/* ── Sections ── */
.sec { position: relative; padding: clamp(88px, 13vw, 160px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.h2 { font: 400 clamp(38px, 5.2vw, 68px)/1.02 var(--serif); letter-spacing: -.012em; color: var(--t-1); text-wrap: balance; }
/* Univers */
.credo.in span, html:not(.js) .credo span { color: var(--t-1); }
/* Parcours */
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 9px; border-radius: var(--r-1); font: 500 11.5px/1.2 var(--sans); color: var(--t-4); box-shadow: inset 0 0 0 1px var(--line); }
.tag .i { width: 14px; height: 14px; }
/* Connexion */
/* Pied */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + var(--safe-b)); }
.foot__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 20px; }
.foot__line { font: 400 22px/1.2 var(--serif); color: var(--t-2); }
.foot__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; letter-spacing: .08em; color: var(--t-4); }
.foot__meta a { color: var(--t-3); transition: color var(--fast); }
.foot__meta a:hover { color: var(--t-1); }
/* Chinois : pas d'italique, interlignage plus ouvert, pas de tracking négatif */
:lang(zh-Hans) .h2, :lang(zh-Hans) .credo p, :lang(zh-Hans) .card__h, :lang(zh-Hans) .tile__h, :lang(zh-Hans) .foot__line, :lang(zh-Hans) .mailbar__addr { font-family: 'Songti SC', 'STSong', 'Noto Serif SC', var(--serif); letter-spacing: .02em; font-weight: 500; }
:lang(zh-Hans) .h2 { line-height: 1.25; font-size: clamp(32px, 4.4vw, 58px); }
:lang(zh-Hans) .hero__lede, :lang(zh-Hans) .tile__p, :lang(zh-Hans) .step__p, :lang(zh-Hans) .card__p { line-height: 1.75; }
:lang(zh-Hans) .eyebrow { letter-spacing: .08em; }
/* ── Mouvement (uniquement si JS + mouvement autorisé ; tout est lisible sans) ── */
@media (prefers-reduced-motion: no-preference) {
.js .hero__lede, .js .hero .eyebrow { animation: lift 1s var(--ease) .15s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(70px); } }
@keyframes lift { from { transform: translateY(18px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(176, 71, 63, 0); } }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ── Responsive : recomposé, pas réduit ── */
@media (max-width: 860px) {
.hero { justify-content: flex-start; }
.hero { padding-top: calc(var(--nav-h) + 12px + var(--safe-t)); }
}
@media (max-width: 720px) {
.hero__lede { font-size: 15.5px; }
}
@media (max-height: 520px) and (orientation: landscape) {
.hero { min-height: auto; }
}
