/* ===== LakeviewRP : nuit, lac et turquoise ===== */
:root {
    --night: #020B0D;
    --deep: #04161A;
    --tide: #071D22;
    --surface: #0A2429;
    --surface-2: #0E2E34;
    --line: #16404A;
    --foam: #EAF7F5;
    --mist: #A9C6C2;
    --mist-2: #8FB0AC;
    --lagoon: #2EE6B6;
    --lagoon-ink: #03241D;
    --sast: #7CC4FF;
    --sams: #FF8A9B;
    --safr: #FFB65C;
    --pending: #FFB65C;
    --review: #7CC4FF;
    --accepted: #2EE6B6;
    --refused: #FF8A9B;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --radius: 6px;
    --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--deep); color: var(--foam); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--foam); text-decoration: none; }
a:hover { color: var(--lagoon); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; text-transform: uppercase; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mist); }
.small { font-size: 14px; }
code { font-family: var(--body); font-weight: 700; background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }

/* ----- Bandeau + navigation ----- */
.topbar { background: #0B3A40; color: #CFEFEA; font-size: 13px; font-weight: 600; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar code { background: transparent; border: 0; padding: 0; color: var(--foam); }
.nav { background: var(--night); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.02em; }
.brand img { width: 48px; height: 48px; border-radius: var(--radius); object-fit: cover; }
.brand span { color: var(--lagoon); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.nav-links a[aria-current="page"] { color: var(--lagoon); }
.nav-user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--lagoon); color: var(--lagoon-ink); font-family: var(--body); font-size: 12px; font-weight: 800; }
.link-button { background: none; border: 0; padding: 0; color: var(--mist); font: inherit; cursor: pointer; min-height: 44px; }
.link-button:hover { color: var(--foam); }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 4px; border: 2px solid transparent; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; text-align: center; }
.btn-primary { background: var(--lagoon); color: var(--lagoon-ink); }
.btn-primary:hover { background: #5CF0CA; color: var(--lagoon-ink); }
.btn-ghost { border-color: var(--foam); color: var(--foam); background: transparent; }
.btn-ghost:hover { border-color: var(--lagoon); color: var(--lagoon); }
.btn-danger { border-color: var(--refused); color: var(--refused); background: transparent; }
.btn-danger:hover { background: var(--refused); color: var(--night); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 17px; }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #6D78F5; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----- Signature : barre d'accent sous les titres ----- */
.bar { width: 96px; height: 6px; background: var(--lagoon); border: 0; margin: 0; }
.bar-large { width: 180px; height: 8px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head h2 { font-size: clamp(38px, 5vw, 56px); }
.section-head p { font-size: 17px; color: var(--mist); }

/* ----- En-tête des pages internes ----- */
.page-head { background: var(--tide); border-bottom: 1px solid #12343A; }
.page-head .wrap { padding-top: 56px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(42px, 6vw, 68px); }
.page-head p { color: var(--mist); font-size: 17px; max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--mist-2); }
.breadcrumb a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.page { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }

/* ----- Accueil ----- */
.hero { position: relative; overflow: hidden; background: #031014; min-height: 720px; display: flex; align-items: center; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,11,13,0.9) 0%, rgba(2,11,13,0.55) 48%, rgba(2,11,13,0.1) 100%); }
.hero-content { position: relative; width: 100%; padding-top: 88px; padding-bottom: 150px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(54px, 8vw, 92px); line-height: 0.95; max-width: 820px; }
.hero-lead { font-size: 19px; color: #C2DBD7; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.hero-mist { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: rgba(4,22,26,0.8); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mist-2); }
.dot-online { background: var(--lagoon); box-shadow: 0 0 0 4px rgba(46,230,182,0.18); }
.dot-offline { background: var(--refused); }
.dot-maintenance { background: var(--pending); }

.band { background: var(--tide); border-top: 1px solid #12343A; border-bottom: 1px solid #12343A; }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 27px; }
.card p { color: var(--mist); }
.card-link { color: inherit; transition: border-color 0.15s; }
.card-link:hover { border-color: var(--lagoon); color: inherit; }

.service { border-top-width: 6px; }
.service-sast { border-top-color: var(--sast); }
.service-sams { border-top-color: var(--sams); }
.service-safr { border-top-color: var(--safr); }
.service h3 { font-size: 40px; }
.service .sub { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-2); margin-top: -6px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.service-sast .btn { border-color: var(--sast); color: var(--sast); }
.service-sams .btn { border-color: var(--sams); color: var(--sams); }
.service-safr .btn { border-color: var(--safr); color: var(--safr); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 68px; line-height: 1; color: var(--lagoon); }
.steps h3 { font-size: 27px; }
.steps p { color: var(--mist); }

.cta { background: var(--lagoon); color: var(--lagoon-ink); border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(34px, 4vw, 46px); }
.cta p { font-weight: 600; }
.cta .btn { background: var(--night); color: var(--foam); }
.cta .btn:hover { color: var(--lagoon); }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; min-width: 180px; flex: 1 1 180px; }
.stat strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.stat span { color: var(--mist); font-size: 14px; }

/* ----- Étiquettes de statut ----- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.tone-pending { color: var(--pending); }
.tone-review { color: var(--review); }
.tone-accepted { color: var(--accepted); }
.tone-refused { color: var(--refused); }
.tone-muted { color: var(--mist-2); }
.tag-disponible { color: var(--accepted); }
.tag-discussion { color: var(--pending); }
.tag-reprise { color: var(--mist-2); }

/* ----- Entreprises ----- */
.biz-group { display: flex; flex-direction: column; gap: 18px; }
.biz-group h2 { font-size: 30px; color: var(--lagoon); }
.biz h3 { font-size: 25px; }
.biz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.biz-taken h3 { color: var(--mist); }

/* ----- Mises à jour ----- */
.log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.log h2 { font-size: 34px; }
.log-meta { color: var(--mist-2); font-size: 14px; }
.log h3 { font-size: 22px; color: var(--lagoon); }
.log ul { margin: 0; padding-left: 20px; color: var(--mist); display: flex; flex-direction: column; gap: 4px; }
.log img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ----- Texte long (règlement) ----- */
.prose { max-width: 760px; color: var(--mist); font-size: 17px; }
.prose h1 { display: none; }
.prose h2 { color: var(--foam); font-size: 34px; margin: 44px 0 14px; }
.prose h3 { color: var(--foam); font-size: 25px; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--foam); }
.prose a { color: var(--lagoon); text-decoration: underline; }

/* ----- Formulaires ----- */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; }
.field .help { color: var(--mist-2); font-size: 14px; }
.field .error { color: var(--refused); font-size: 14px; font-weight: 700; }
input[type="text"], input[type="number"], textarea, select {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line);
    background: var(--night); color: var(--foam); font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(46,230,182,0.25); }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--lagoon); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----- Messages ----- */
.notice { border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius); padding: 16px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.notice-ok { border-left-color: var(--accepted); }
.notice-warn { border-left-color: var(--pending); }
.notice-error { border-left-color: var(--refused); }
.notice-info { border-left-color: var(--review); }
.notice ul { margin: 0; padding-left: 20px; }

/* ----- Tableaux / listes ----- */
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); color: inherit; }
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-main strong { font-size: 17px; }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--mist); font-size: 14px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--mist); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ----- Espace joueur ----- */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--lagoon); }
.profile h1 { font-size: clamp(40px, 6vw, 60px); }
.columns { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.panel { display: flex; flex-direction: column; gap: 16px; }
.panel > h2 { font-size: 30px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.notif-unread { border-left: 4px solid var(--lagoon); }

/* ----- Dossier ----- */
.app-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .app-layout.has-side { grid-template-columns: minmax(0, 1fr) 360px; } }
.answers { display: flex; flex-direction: column; gap: 20px; }
.answer { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.answer:last-child { border-bottom: 0; }
.answer dt { font-weight: 700; color: var(--mist); font-size: 14px; }
.answer dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.side { display: flex; flex-direction: column; gap: 20px; }
.vote-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-bar button[aria-pressed="true"] { background: var(--lagoon); color: var(--lagoon-ink); border-color: var(--lagoon); }
.tally { display: flex; gap: 16px; font-weight: 700; }
.comment { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--night); border-radius: var(--radius); }
.comment-meta { font-size: 13px; color: var(--mist-2); }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ----- Ticket (conversation) ----- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg img.avatar { width: 40px; height: 40px; flex: none; }
.msg-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.msg-staff .msg-body { border-color: #2B4B8A; background: #0C2333; }
.msg-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; color: var(--mist-2); }
.msg-head strong { color: var(--foam); font-size: 15px; }
.msg-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-files a { font-size: 14px; color: var(--lagoon); text-decoration: underline; }
.msg-system { justify-content: center; color: var(--mist-2); font-size: 14px; text-align: center; }
.role-tag { font-size: 12px; font-weight: 800; color: var(--sast); text-transform: uppercase; letter-spacing: 0.06em; }

/* ----- Pied de page ----- */
.footer { background: var(--night); }
.footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.footer-brand img { width: 40px; height: 40px; border-radius: var(--radius); object-fit: cover; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer .legal { flex-basis: 100%; font-size: 13px; color: var(--mist-2); }

@media (max-width: 640px) {
    .hero { min-height: 640px; }
    .hero-content { padding-top: 56px; padding-bottom: 130px; }
    .card, .log, .cta { padding: 22px; }
    .nav-links { gap: 0 18px; font-size: 17px; }
}
