/* =============================================================================
   ALVINAH PARTNERS — Site vitrine V2
   base.css · reset, body, halo radial signature
   Charge tokens.css avant ce fichier.
   ============================================================================= */


/* ---------- Reset --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body { height: 100%; }


/* ---------- Body — halo radial signature (BRIEF §3.6) -------------------- */
body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: var(--fw-extralight);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background:
        radial-gradient(ellipse at 50% 50%,
            var(--color-accent-blue-radial) 0%,
            var(--color-bg-primary) 60%,
            var(--color-bg-darker) 100%
        ),
        var(--color-bg-primary);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ---------- Reset éléments ----------------------------------------------- */
img, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-hover);
}
a:hover { opacity: 0.7; }

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul, ol { list-style: none; }


/* ---------- Typographie de base ----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-light);
    line-height: var(--lh-heading);
    color: var(--color-text-primary);
}

p { margin: 0; }


/* ---------- Focus accessible (BRIEF §7.3) ------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-accent-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Disable focus outline si non clavier */
:focus:not(:focus-visible) { outline: none; }


/* ---------- Sélection ---------------------------------------------------- */
::selection {
    background: var(--color-accent-blue-soft);
    color: var(--color-text-primary);
}


/* ---------- Visually hidden (a11y) -------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ---------- Reduced motion (BRIEF §7.3) --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
