﻿@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --bg: #0b0c0f;
  --bg-soft: #101218;
  --panel: #12141a;
  --panel-soft: #171a22;
  --text: #f5f1e8;
  --muted: #b2b6bf;
  --accent: #d7b15b;
  --accent-2: #f2d08a;
  --danger: #a33a33;
  --line: #262a33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(215, 177, 91, 0.16), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(242, 208, 138, 0.10), transparent 70%),
    linear-gradient(180deg, #0b0c0f 0%, #0b0c0f 60%, #0f1116 100%);
  color: var(--text);
  min-height: 100vh;
}

.container { width: min(1180px, 94%); margin: 0 auto; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.9px;
}

nav a {
  color: var(--muted);
  margin-left: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

nav a:hover { color: var(--accent-2); }

main { padding: 26px 0 42px; }

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.6px;
  color: var(--accent-2);
}

.hero {
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--panel), var(--panel-soft));
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.grid { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: linear-gradient(150deg, var(--panel), #141822);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.form { display: grid; gap: 10px; }

input, select, textarea, button {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0f1218;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(215, 177, 91, 0.18);
}

textarea { min-height: 95px; }

.btn {
  display: inline-block;
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1200;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
}

.btn.small { padding: 7px 10px; }
.btn.danger { background: linear-gradient(135deg, #85312b, #b84f47); border-color: #a9443b; color: #fff; }

.line { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }

.mission-row { display: grid; grid-template-columns: 1fr 160px 80px; gap: 10px; align-items: center; }

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.alert-verte { background: #2f4935; }
.alert-orange { background: #5a421f; }
.alert-rouge { background: #5b1f1f; }

.non-verifie { color: #ff8e8e; }
.ok { color: var(--accent-2); }
.green { border-left: 4px solid #84b886; }
.orange { border-left: 4px solid #c9a162; }
.red { border-left: 4px solid #c46d6d; }
.special { border: 1px solid var(--accent); }

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0b0f15;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mail-app { display: grid; grid-template-columns: 260px 340px 1fr; gap: 14px; min-height: 72vh; }
.mail-sidebar, .mail-list, .mail-thread { display: flex; flex-direction: column; gap: 10px; }

.mail-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.mail-link.active { background: #1a1f2a; border-color: var(--line); }

.mail-count, .mail-badge {
  background: rgba(215, 177, 91, 0.2);
  color: var(--accent-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.mail-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151d;
}

.mail-item.active { border-color: var(--accent); background: #161d27; }

.mail-item-top { display: flex; justify-content: space-between; gap: 10px; }
.mail-item-preview { color: var(--muted); margin-top: 4px; }

.thread-messages { max-height: 48vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }

.bubble {
  max-width: 82%;
  border: 1px solid var(--line);
  background: #121925;
  border-radius: 12px;
  padding: 10px 12px;
}

.bubble header { display: flex; justify-content: space-between; gap: 10px; }
.bubble-subject { color: var(--accent-2); font-weight: 700; margin-top: 6px; }
.bubble p { margin: 8px 0 0; }
.bubble.mine { align-self: flex-end; background: #1b2532; border-color: #38465a; }

.table-wrap { overflow-x: auto; margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.compact-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: none; padding: 0; }

.v-home { margin-top: 6px; color: var(--text); }
.v-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: center; }
.v-hero--split { align-items: stretch; }
.v-card { background: linear-gradient(150deg, var(--panel), var(--panel-soft)); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55); }
.v-card--text { display: flex; flex-direction: column; gap: 12px; }
.v-hero-logo { width: 92px; height: 92px; border-radius: 20px; background: rgba(13, 14, 18, 0.6); border: 1px solid rgba(215, 177, 91, 0.35); display: grid; place-items: center; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45); }
.v-hero-logo img { width: 70px; height: 70px; object-fit: contain; }
.v-badge { display: inline-block; padding: 6px 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.v-home h1 { margin: 0; font-size: 36px; font-family: 'Cinzel', serif; letter-spacing: 1px; color: var(--accent-2); }
.v-home p { margin: 0; }
.v-lead { font-size: 16px; color: #f0e6d0; }
.v-emphasis { font-weight: 600; color: var(--accent-2); border-left: 3px solid var(--accent); padding-left: 14px; }
.v-inline-link { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.v-inline-link:hover { text-decoration: underline; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.v-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--accent); background: transparent; color: var(--text); text-decoration: none; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; }
.v-button.v-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1b1200; border: none; box-shadow: 0 10px 24px rgba(215, 177, 91, 0.35); }
.v-section { margin-top: 40px; }
.v-section h2 { margin-bottom: 12px; font-size: 22px; font-family: 'Cinzel', serif; letter-spacing: 0.8px; color: var(--accent-2); }
.v-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.v-gallery-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0d1015; }
.v-gallery-item img { display: block; width: 100%; height: 170px; object-fit: cover; }
.v-panel { background: linear-gradient(150deg, var(--panel), #141822); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); }

@media (max-width: 900px) {
  .mail-app { grid-template-columns: 1fr; }
  .mission-row { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  nav a { margin-left: 0; margin-right: 10px; display: inline-block; margin-bottom: 6px; }
}

.docs-gate {
  text-align: center;
  max-width: 900px;
  margin: 24px auto;
  padding: 30px;
}

.docs-gate-logo-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.docs-gate-logo {
  width: min(300px, 56%);
  max-width: 300px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.docs-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.docs-permissions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.docs-permissions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.docs-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.docs-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #10151d;
  overflow: hidden;
}

.docs-preview-link {
  display: block;
  position: relative;
  height: 220px;
  background: #0d1118;
}

.docs-preview {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.docs-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.docs-watermark img {
  width: 72%;
  opacity: 0.22;
  object-fit: contain;
}

.docs-meta {
  padding: 12px;
}

.docs-meta h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.gdc-profile-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}

.gdc-avatar-wrap {
  width: 120px;
  height: 120px;
}

.gdc-avatar {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #0f1218;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.gdc-avatar-empty {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
