:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --primary: #3b82f6;
  --primary-clair: #60a5fa;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --or: #d4af37;
  --texte: #e2e8f0;
  --texte-doux: #94a3b8;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 1rem 1rem 6rem;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--texte);
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.10), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(59, 130, 246, 0.12), transparent 40%),
    linear-gradient(165deg, #0f172a 0%, #111c33 55%, #0b1220 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2364B9A8' stroke-width='.7'%3E%3Cpath d='M40 4 76 24v32L40 76 4 56V24z'/%3E%3Cpath d='M40 16 66 30v20L40 64 14 50V30z'/%3E%3Cpath d='M40 28 56 36v8L40 52 24 44v-8z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  color: #ffffff;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary-clair);
}

.surface, section, form, .bandeau, .message, .liste > li {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}

button, .bouton {
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.25rem;
  margin: 0.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .bouton:hover {
  background: #2563eb;
}

input, select {
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--texte);
  font: inherit;
}

input::placeholder {
  color: var(--texte-doux);
}

.liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bandeau {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.message {
  min-height: 1.5rem;
}

.logo {
  max-width: 220px;
}

.menu-bas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.25rem;
  padding: 0.5rem;
  margin: 0;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0;
  z-index: 50;
}

.menu-bas button {
  flex: 1 1 20%;
  min-width: 70px;
  font-size: 15px;
  background: rgba(30, 41, 59, 0.85);
  color: var(--texte-doux);
}

.menu-bas button:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.menu-bas button:last-child {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

button:focus-visible, .bouton:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary-clair);
  outline-offset: 2px;
}

html[lang="ar"] body {
  font-family: "Cairo", system-ui, sans-serif;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .menu-bas {
  right: 0;
  left: 0;
}

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