/* Explain: Base CSS reset, typography defaults, and general page styling. */
* { box-sizing: border-box; }

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    font-size: 118.75%;
}

/* Mobile : base plus compacte pour éviter les textes trop larges et les débordements */
@media (max-width: 767px) {
    html { font-size: 100%; }
    body { line-height: 1.68; }
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: .01em;
}

[x-cloak] { display: none !important; }

::selection {
    background: var(--gold);
    color: #2b0d17;
}

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

details summary::-webkit-details-marker { display: none; }

details summary { list-style: none; }

a { color: inherit; }

img { max-width: 100%; }