:root {
    color-scheme: dark;
    --bg: #070b10;
    --surface: #111820;
    --surface-2: #151e28;
    --line: #263442;
    --text: #f7f9fc;
    --muted: #9fb0c1;
    --blue: #0a7cff;
    --blue-light: #47a1ff;
    --danger: #ff5d68;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 75% 0%, rgba(10,124,255,.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 920px;
    padding: 46px 24px 72px;
}

.header {
    text-align: left;
    margin-bottom: 34px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(159,176,193,.16);
}

.fpms-logo {
    display: block;
    width: 190px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 32px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.header h1 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.header p {
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #c4d0db;
    font-size: 13px;
    font-weight: 650;
}

.secure-note span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(10,124,255,.13);
}

form { display: grid; gap: 16px; }

.card {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21,30,40,.96), rgba(15,22,29,.96));
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(159,176,193,.15);
    font-size: 19px;
    letter-spacing: -.015em;
}

label {
    margin-top: 16px;
    color: #dce5ee;
    font-size: 13px;
    font-weight: 720;
}

input, select, textarea {
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid #344454;
    border-radius: 10px;
    outline: none;
    background: #090e14;
    color: var(--text);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder, textarea::placeholder { color: #6f8294; }

input:hover, select:hover, textarea:hover { border-color: #4a6074; }

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    background: #0b1118;
    box-shadow: 0 0 0 4px rgba(10,124,255,.15);
}

textarea { min-height: 150px; }

input[type="file"] {
    height: auto;
    padding: 10px;
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #1d2b39;
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
}

.row { gap: 16px; }

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    padding: 14px 16px;
    border: 1px solid #314252;
    border-radius: 10px;
    background: rgba(10,124,255,.06);
    cursor: pointer;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--blue);
}

.note { color: var(--muted); }
.field-error { color: #ff9aa2; }

input.invalid {
    border-color: var(--danger);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,93,104,.12);
}

button, .btn {
    min-height: 56px;
    padding: 16px 22px;
    border: 1px solid #258cff;
    border-radius: 12px;
    background: linear-gradient(135deg, #1687ff, #006ee6);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(10,124,255,.22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

button:hover, .btn:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(10,124,255,.3);
}

button:focus-visible, .btn:focus-visible {
    outline: 3px solid rgba(71,161,255,.5);
    outline-offset: 3px;
}

.confirmation-page .container {
    max-width: none;
    min-height: 100vh;
    padding: 28px;
}

.confirmation-page .card {
    max-width: 680px;
    padding: 44px;
}

.confirmation-logo {
    width: 170px;
    margin: 0 auto 30px;
    object-position: center;
}

.confirmation-page h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.confirmation-page p { color: var(--muted); }

.check, .error-icon {
    width: 72px;
    height: 72px;
    font-size: 38px;
    box-shadow: 0 0 0 8px rgba(255,255,255,.035);
}

.check { background: var(--blue); }
.error-icon { background: var(--danger); }

.dossier, .urgent, .errors {
    border: 1px solid var(--line);
    background: #0c1219;
}

.dossier strong { color: var(--blue-light); }
.suivi-link { color: var(--blue-light); font-weight: 750; }
.suivi-link:hover { color: #fff; }
.phone { color: #fff; }

@media (max-width: 650px) {
    .container { padding: 26px 16px 48px; }
    .header { margin-bottom: 22px; padding-bottom: 22px; }
    .fpms-logo { width: 155px; max-height: 68px; margin-bottom: 24px; }
    .header h1 { font-size: 36px; }
    .header p { font-size: 15px; }
    .card { padding: 21px 18px; border-radius: 15px; }
    h2 { font-size: 17px; }
    .confirmation-page .container { padding: 16px; }
    .confirmation-page .card { padding: 30px 20px; }
    .confirmation-logo { margin-left: auto; margin-right: auto; }
}
