/* =====================================================================
   WB Web — système de design commun (site, espace client, admin)
   Noir, net, carré : angles droits, lignes fines, typographie affûtée.
   ===================================================================== */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display : titres du site et monogramme du logo */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url("/assets/fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;
    /* Fonds : noir profond, sans teinte bleutée */
    --bg: #0a0a0a;
    --bg-raised: #0e0e0e;
    --surface: #121212;
    --surface-2: #171717;
    /* Lignes */
    --line: #1e1e1e;
    --line-strong: #2c2c2c;
    --line-hover: #4d4d4d;
    /* Texte */
    --text: #ededed;
    --white: #ffffff;
    --muted: #a0a0a0;
    --subtle: #666666;
    /* Couleurs fonctionnelles, utilisées avec parcimonie */
    --accent: #5b7cfa;
    --success: #3ecf8e;
    --warning: #f5a524;
    --error: #f0524f;
    --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { color: var(--white); font-weight: 600; }
h1 { letter-spacing: -0.045em; line-height: 1.02; }
h2 { letter-spacing: -0.035em; line-height: 1.08; }
h3 { letter-spacing: -0.015em; line-height: 1.3; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; }
::selection { background: rgba(255, 255, 255, .22); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 2px; }

/* Barre de défilement discrète */
* { scrollbar-width: thin; scrollbar-color: #2e2e2e transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262626; border: 3px solid var(--bg); }

/* Utilitaires */
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--white); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.success-text { color: var(--success); }
.error-text { color: var(--error); }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--white); color: #000; padding: 8px 14px; }
.skip-link:focus { left: 12px; }

/* Petite étiquette technique au-dessus des titres */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* Logo */
/* Le « WB » italique est souligné d'un trait jaune penché, centré sous les lettres (l'italique déborde à droite) */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--white); font-size: 16px; line-height: 1; white-space: nowrap; }
.brand-mono { position: relative; z-index: 0; margin-right: .42em; font-family: "Playfair Display", Georgia, serif; font-size: 1.85em; font-weight: 800; font-style: italic; letter-spacing: -.16em; color: var(--white); }
.brand-mono i { display: inline-block; font-style: italic; transform: translateY(.06em); }
.brand-mono::after { content: ""; position: absolute; z-index: -1; left: calc(50% + .157em - .62em); bottom: .02em; width: 1.24em; height: .17em; background: #f2d64b; transform: skewX(-24deg); }
.brand-word { font-size: .9em; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #cfcfcf; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    border: 1px solid transparent; border-radius: 0;
    font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--white); color: #0a0a0a; border-color: var(--white); }
.btn-primary:hover { background: #d6d6d6; border-color: #d6d6d6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--line-hover); background: var(--surface); }
.btn-danger { background: transparent; color: var(--error); border-color: rgba(240, 82, 79, .4); }
.btn-danger:hover { background: rgba(240, 82, 79, .08); border-color: var(--error); }
.btn-small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--white); }

/* ---------- Champs de formulaire ---------- */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password],
input[type=number], input[type=date], input[type=search], select, textarea {
    width: 100%; padding: 10px 12px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 0;
    font: inherit; font-size: 14px;
    transition: border-color .15s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--white); }
input::placeholder, textarea::placeholder { color: #4f4f4f; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=radio] { accent-color: var(--white); width: 15px; height: 15px; }
/* Case à cocher carrée */
input[type=checkbox] {
    appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex-shrink: 0;
    width: 16px; height: 16px; margin: 0; border: 1px solid var(--line-hover); background: var(--bg); cursor: pointer;
    transition: background .12s, border-color .12s;
}
input[type=checkbox]::before { content: ""; width: 9px; height: 9px; background: #0a0a0a; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); transition: transform .12s; }
input[type=checkbox]:checked { background: var(--white); border-color: var(--white); }
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:hover { border-color: var(--muted); }
input[type=date] { color-scheme: dark; }
label { font-size: 13px; font-weight: 500; color: #cfcfcf; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.optional { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--subtle); letter-spacing: .02em; }
.hint { font-size: 12px; font-weight: 400; color: var(--subtle); }
.checkbox { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--muted) !important; font-size: 13px !important; }
.checkbox input { margin-top: 3px; flex-shrink: 0; }
.checkbox a { color: var(--text); }

/* ---------- Étiquettes ---------- */
.badge, .status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; line-height: 1.5;
}
.badge::before, .status::before { content: ""; width: 5px; height: 5px; background: currentColor; }

/* ---------- Alertes ---------- */
.alert { padding: 12px 16px; border: 1px solid var(--line-strong); border-left-width: 2px; background: var(--bg-raised); font-size: 14px; margin-bottom: 16px; }
.alert a { color: inherit; font-weight: 600; }
.alert .icon { width: 15px; height: 15px; vertical-align: -2px; }
.alert-success { border-color: rgba(62, 207, 142, .35); border-left-color: var(--success); color: #9ee8c4; }
.alert-error { border-color: rgba(240, 82, 79, .35); border-left-color: var(--error); color: #f6a3a1; }
.alert-warning { border-color: rgba(245, 165, 36, .35); border-left-color: var(--warning); color: #f8cf86; }
.alert-info { border-color: var(--line-strong); border-left-color: var(--accent); color: #c9d4ff; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-strong);
    font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg-raised); }
.table a { text-decoration: none; }
.table a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.table .num, .table .right { text-align: right; }
.table .num { white-space: nowrap; }

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