/*
 * Design system Brocéliande Digital
 * Fondations communes : polices, variables, reset, typographie et animations.
 * Les styles de composants et de pages sont dans app.css et ne redéfinissent pas ces variables.
 */

/* ---------- Polices ---------- */

@font-face {
    font-family: 'Nexa';
    src: url("../fonts/Nexa-Regular-Aggf3as.otf") format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url("../fonts/Nexa-Light-VPGRLI6.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url("../fonts/Nexa-Bold-DChE5Aq.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variables ---------- */

:root {
    --accent: #3c5599;
    --ink: #080739;
    --accent-tech: #5AC1DA;
    --pink: #E622A5;

    --bg: #F7F6F2;
    --surface: #FFFFFF;
    --ink-muted: #6B6860;
    --border: #E4E2DC;
    --accent-light: #EEF2FF;

    --success: #1A7A4A;
    --error: #C0392B;

    --radius: 4px;
    --radius-lg: 12px;

    --font-family: 'Nexa', 'DM Sans', sans-serif;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Typographie ---------- */

h1,
h2,
h3 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--pink);
    text-decoration: underline;
}

/* ---------- Utilitaires du design system ---------- */

.logo {
    max-width: 200px;
    height: auto;
}

.rgpd {
    text-transform: none;
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-up {
    animation: fadeUp 0.5s ease-out both;
}

.fade-up-delay {
    animation: fadeUp 0.5s ease-out 0.15s both;
}

.fade-up-delay-2 {
    animation: fadeUp 0.5s ease-out 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
