:root {
    --ink-dense:     rgba(255, 255, 255, 0.72);
    --ink-moyen:     rgba(255, 255, 255, 0.55);
    --ink-doux:      rgba(255, 255, 255, 0.45);
    --ink-fantome:   rgba(255, 255, 255, 0.35);
    --ink-trace:     rgba(255, 255, 255, 0.30);
    --surface-verre: rgba(255, 255, 255, 0.03);
    --bord-verre:    rgba(255, 255, 255, 0.07);
    --bord-liste:    rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background: #0e0e15;
    color: #fff;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem 0;
    width: 100%;
}

.logo {
    height: clamp(2rem, 4vw, 4.5rem);
    width: auto;
    display: block;
    filter: drop-shadow(0 0 28px rgba(255,255,255,0.12));
    user-select: none;
}

.icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    .logo  { animation: fadein 0.7s ease both; }
    .icons { animation: fadein 0.7s ease 0.15s both; }
}

.icon-link {
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 9px;
}

@media (prefers-reduced-motion: reduce) {
    .icon-link { transition: none; }
}

.icon-link:hover,
.icon-link:focus-visible {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.icon-link:focus-visible {
    outline: 1.5px solid rgba(255,255,255,0.5);
    outline-offset: 3px;
}

.icon-link svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}

.icon-link svg.stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer {
    font-family: 'Arimo', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    opacity: 0.35;
    padding: 0 0 1.5rem;
    width: 100%;
    text-align: center;
}

#email-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: inherit;
    vertical-align: middle;
    margin-left: 0.2em;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    #email-btn { transition: none; }
}

#email-btn:hover {
    opacity: 1;
}

#footer-name {
    display: inline-block;
    position: relative;
}

#footer-name::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    clip-path: inset(0 100% 0 0);
}

@media (prefers-reduced-motion: no-preference) {
    #footer-name.underline-active::after {
        animation: underline-sweep 0.65s ease forwards;
    }
}

@keyframes underline-sweep {
    0%   { clip-path: inset(0 100% 0 0); }
    40%  { clip-path: inset(0 0% 0 0); }
    60%  { clip-path: inset(0 0% 0 0); }
    100% { clip-path: inset(0 0 0 100%); }
}

#email-btn svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}
