* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    overflow: hidden; /* no page scrolling */
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: rgba(15, 23, 42, 0.95);
    background:
        radial-gradient(900px 500px at 15% 5%, rgba(31, 111, 235, 0.22), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(16, 185, 129, 0.18), transparent 60%),
        radial-gradient(900px 500px at 40% 90%, rgba(168, 85, 247, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
}

@media (max-width: 900px), (orientation: portrait) {
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .page {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

}

/* Applique Open Sans par défaut partout */
body {
    font-family: 'Open Sans', sans-serif;
}

/* Applique Rubik uniquement aux titres et au logo */
h1, h2, h3, .logo-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
}

h1, h2, h3 { letter-spacing: -0.02em; }

input, select, button {
    font: inherit;
}

/* Helpers for fullscreen pages */
.page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grow {
    flex: 1 1 auto;
    min-height: 0; /* required for nested overflow */
}

.scroll {
    overflow: auto;
    min-height: 0;
}

table {
    text-align: center;
    vertical-align: middle;
}
td {
    vertical-align: inherit;
}