/* Interaction without hiding information behind hover. */
html{scrollbar-gutter:stable}
body:has(dialog[open]){overflow:hidden}
.menu-toggle{display:none}
.brand{min-height:44px}
.theme-toggle{width:44px;height:44px;flex-shrink:0}
.navlinks a,.intro-bottom a,.gallery-tech a,.socials a,footer a{display:inline-flex;align-items:center;min-height:44px}
.gallery-open{min-height:44px;padding-inline:10px;font-size:12px;border-radius:5px}
.formation-tabs button,.tour-tabs button,.pill,.certificate-link{min-height:44px}
.tour-tabs button{font-size:12px;border-radius:5px}
.gallery-preview{color:var(--ink)}
.navlinks a,.intro-bottom a,.gallery-tech a,.socials a,footer a,.gallery-open,.theme-toggle,.menu-toggle,.pill,.formation-tabs button,.tour-tabs button{transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease,transform 160ms ease,box-shadow 160ms ease}
.gallery-preview{transition:border-color 200ms ease,box-shadow 200ms ease}
.gallery-preview>img{transition:transform 240ms ease}
.gallery-preview-label{transition:transform 200ms ease,box-shadow 200ms ease}
.intro-project-link>span{transition:transform 180ms ease}
.navlinks a:focus-visible,.intro-bottom a:focus-visible,.gallery-tech a:focus-visible,.socials a:focus-visible,footer a:focus-visible{text-decoration:underline;text-underline-offset:6px}
.gallery-open:focus-visible,.theme-toggle:focus-visible,.menu-toggle:focus-visible,.formation-tabs button:focus-visible,.tour-tabs button:focus-visible{background:var(--accent-soft);color:var(--ink)}
.gallery-preview:focus-visible{outline:3px solid var(--accent);outline-offset:5px;border-color:var(--accent);box-shadow:var(--shadow)}
.gallery-preview:focus-visible .gallery-preview-label{box-shadow:0 5px 18px #142b4526}
:is(a,button):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
:is(button,.pill):active{filter:brightness(.94)}
dialog{background:var(--panel);border-radius:10px;overscroll-behavior:contain;scroll-padding-top:60px}
dialog[open]{animation:dialog-enter 180ms ease-out}
dialog .close{position:sticky;float:right;top:0;z-index:2;width:44px;height:44px;display:grid;place-items:center;margin:-12px -6px 4px 12px;border:1px solid var(--line);border-radius:50%;background:var(--panel);box-shadow:0 3px 12px #142b4512}
@keyframes dialog-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){
  .navlinks a:hover,.intro-bottom a:hover,.gallery-tech a:hover,.socials a:hover,footer a:hover{text-decoration:underline;text-underline-offset:6px;transform:translateY(-1px)}
  .gallery-open:hover,.theme-toggle:hover,.menu-toggle:hover,.formation-tabs button:hover,.tour-tabs button:hover{background:var(--accent-soft);color:var(--ink)}
  .pill:hover{transform:translateY(-2px);box-shadow:0 5px 15px #142b4526}
  .gallery-preview:hover{border-color:var(--accent);box-shadow:var(--shadow)}
  .gallery-preview:hover>img{transform:translateY(-5px) scale(1.008)}
  .gallery-preview:hover .gallery-preview-label{transform:translateY(-3px);box-shadow:0 8px 20px #142b4526}
  .intro-project-link:hover>span{transform:translateY(3px)}
}
@media(hover:none){.gallery-preview:hover>img{transform:none}}
@media(max-width:600px){
  html{scroll-padding-top:90px}
  .nav{flex-wrap:wrap;gap:10px;padding-inline:20px}
  .brand{margin-right:auto}
  .menu-toggle{display:inline-flex;gap:10px;align-items:center;justify-content:center;min-width:72px;min-height:44px;padding:8px 10px;background:var(--panel);border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:13px}
  .menu-toggle[aria-expanded=true]{background:var(--accent-soft)}
  .navlinks{display:none;flex-basis:100%;order:4;margin:0;gap:4px;padding-top:8px;border-top:1px solid var(--line);font-size:13px}
  .navlinks[data-open=true]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .navlinks a:nth-child(n){display:flex;min-height:44px;padding:9px 12px;border-radius:5px}
  .gallery-open{font-size:12px;padding-inline:8px}
  .gallery-tech a,.intro-bottom a,.socials a,footer a,.certificate-link{font-size:12px}
  .intro-bottom{flex-wrap:wrap;gap:4px 18px;padding-block:12px}
  .intro-bottom>div{gap:18px;flex-wrap:wrap}
  .formation-tabs{flex-wrap:wrap}
  .formation-tabs button,.tour-tabs button{font-size:12px;min-height:44px}
  .contact-email{min-height:44px;line-height:1.8}
  .gallery-preview-label{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .gallery-preview:hover>img,.gallery-preview:hover .gallery-preview-label,.pill:hover,.intro-project-link:hover>span,.navlinks a:hover,.intro-bottom a:hover,.gallery-tech a:hover,.socials a:hover,footer a:hover{transform:none}
}
