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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--mist);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--paper); margin: 0; letter-spacing: -.015em; line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
p { margin: 0; }

::selection { background: var(--magenta); color: #fff; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Barres de défilement discrètes */
* { scrollbar-width: thin; scrollbar-color: #3a353a transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #3a353a; border-radius: 8px; }

/* Petit titre au-dessus d'un grand titre, comme sur le site : trait + capitales magenta */
.kicker {
    display: inline-flex;
    align-items: center;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--bloom);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: var(--tap);
    padding: .7rem 1.4rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--paper);
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
    white-space: nowrap;
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primaire { background: var(--magenta); border-color: var(--magenta); }
.btn-primaire:hover { background: var(--bloom); border-color: var(--bloom); }
.btn-discret { border-color: transparent; color: var(--smoke); }
.btn-discret:hover { color: var(--paper); border-color: var(--line-strong); }
.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }
.btn-petit { min-height: 34px; padding: .45rem .9rem; font-size: .68rem; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border-radius: var(--radius);
    color: var(--smoke);
    transition: color var(--dur-fast), background var(--dur-fast);
}
.icon-btn:hover { color: var(--paper); background: var(--ink-hover); }
.icon-btn svg { width: 20px; height: 20px; }

/* Champs */
.champ { display: grid; gap: .45rem; }
.champ label { font-size: .72rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--smoke); }
.input {
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    background: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--paper);
    transition: border-color var(--dur-fast), background var(--dur-fast);
}
.input::placeholder { color: var(--graphite); }
.input:focus { outline: none; border-color: var(--magenta); background: #000; }

/* Notifications */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast {
    padding: .85rem 1.1rem;
    background: var(--ink-raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    color: var(--paper);
    font-size: .92rem;
    animation: toast-in var(--dur-base) var(--ease-out);
    pointer-events: auto;
}
.toast.is-erreur { border-color: rgba(229, 72, 77, .55); }
.toast.is-ok { border-color: rgba(79, 191, 135, .55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Grandes lettres en filigrane, comme le fond du site */
.lettres-fond { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lettres-fond span {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: .8;
    color: rgba(255, 255, 255, .045);
    user-select: none;
}
.lettres-fond span:nth-child(even) { color: rgba(211, 17, 127, .11); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
