/* PORTFOLIO : base d'origine, texte About aligné à gauche */

:root{--bg:#fff;--fg:#111;--mut:#777;--pad-x:28px}
[data-theme=dark]{--bg:#000000;--fg:#eee;--mut:#888}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--fg);font:14px/1.5 system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif}
a{color:inherit;text-decoration:none}
a:hover{opacity:.55}

/* Header et footer */
header,footer{position:fixed;left:0;right:0;z-index:10;display:flex;justify-content:space-between;align-items:baseline;padding:20px var(--pad-x);gap:16px}
header{top:0}
footer{bottom:0;color:var(--mut);font-size:12px}
header .name{font-weight:600;letter-spacing:.02em}
nav{display:flex;gap:22px}
nav a[aria-current=page]{border-bottom:1px solid currentColor}
#cnt{font-variant-numeric:tabular-nums}

/* Carrousel */
#stage{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:72px var(--pad-x) 64px;user-select:none;-webkit-user-select:none;touch-action:pan-y}
#stage img{max-width:100%;max-height:100%;object-fit:contain;opacity:0}
#stage img.on{opacity:1}
[data-transition=fade] #stage img{transition:opacity .35s ease}
#stage.native-l{cursor:w-resize}#stage.native-r{cursor:e-resize}
#stage.custom{cursor:none}

/* Mode grille (layout "grid" dans site.json) */
body.is-grid header,body.is-grid footer{color:#fff;mix-blend-mode:difference}
#stage.grid{position:relative;inset:auto;display:flex;align-items:flex-start;gap:40px;padding:96px var(--pad-x) 110px;touch-action:auto;user-select:auto;-webkit-user-select:auto}
.col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.col img{display:block;height:auto;cursor:zoom-in}
#stage.grid img{opacity:1;max-height:none}
#lb{position:fixed;inset:0;z-index:9;display:none;align-items:center;justify-content:center;padding:72px var(--pad-x) 64px;background:var(--bg);cursor:zoom-out}
#lb.open{display:flex}
#lb img{max-width:100%;max-height:100%;object-fit:contain}

/* Flèche qui suit la souris */
#arrow{position:fixed;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;pointer-events:none;z-index:20;opacity:0;transition:opacity .15s;color:var(--fg)}
#arrow.show{opacity:1}
#arrow svg{width:100%;height:100%;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
#arrow.left svg{transform:scaleX(-1)}

/* Page About : colonne à gauche, alignée sur le nom */
.text{max-width:560px;margin:0;padding:96px var(--pad-x) 100px}
.text p{margin:0 0 1.2em;font-size:14px}
.text p.links{margin:0}
.empty{color:var(--mut)}

/* Page About bilingue : 3 colonnes, petite gouttière */
.text.about{max-width:none;display:grid;grid-template-columns:repeat(3,1fr);column-gap:16px}
.text.about .en{color:var(--mut)}
@media (max-width:600px){.text.about{grid-template-columns:1fr}}

/* Mobile */
@media (max-width:600px){
  :root{--pad-x:16px}
  header,footer{padding:14px var(--pad-x)}
  #stage{padding:60px 8px 56px}
  .text{max-width:none;padding-top:80px}
  #stage.grid{gap:16px}
}
