/* css/global.css */

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Idée 5 : Curseur personnalisé */
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

p {
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, a {
    cursor: none; /* Curseur masqué pour utiliser le personnalisé */
    border: none;
    background: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* === Curseur Personnalisé (Idée 5) === */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background-color 0.25s var(--ease-out), border 0.25s var(--ease-out);
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.6);
}

.custom-cursor.hover {
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

::selection {
    background: rgba(99, 102, 241, 0.25);
}
