:root {
  --ink: #14213d;
  --signal: #0f9d78;
  --signal-dark: #0b7e60;
  --paper: #f7f7f5;
  --line: #e2e2de;
  --danger: #c0392b;
  --muted: #6b7280;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--signal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand { font-weight: 700; letter-spacing: .2px; color: #fff; }
.topbar nav a { color: #cfd8ea; margin-left: 16px; }
.topbar nav a:hover { color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 60px; }
.wrap-narrow { max-width: 460px; margin: 60px auto; padding: 0 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; margin-top: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: #333; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--signal); border-color: var(--signal); }

.btn {
  display: inline-block;
  background: var(--signal);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--signal-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #f0f0ee; }
.btn-danger { background: var(--danger); }
.btn-block { width: 100%; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .78rem; font-weight: 600; }
.badge-ok { background: #e5f6ee; color: var(--signal-dark); }
.badge-pending { background: #fff4e0; color: #a15c00; }
.badge-fail { background: #fdeceb; color: var(--danger); }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; }
.flash-success { background: #e5f6ee; color: var(--signal-dark); }
.flash-error { background: #fdeceb; color: var(--danger); }

.muted { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }

.ticket-code {
  font-family: "Courier New", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: var(--ink);
  color: #fff;
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
}

.tariff-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}
.tariff-option:hover { border-color: var(--signal); }
.tariff-option input[type=radio] { width: auto; margin: 0 12px 0 0; }
.tariff-price { font-weight: 700; color: var(--signal-dark); font-size: 1.1rem; }

/* ---- Pied de page légal ---- */
.site-footer {
  background: var(--ink);
  color: #cfd8ea;
  padding: 22px 20px 90px;
  margin-top: 40px;
  font-size: .85rem;
}
.site-footer .footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.site-footer a { color: #cfd8ea; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links a { margin-right: 16px; }
.site-footer .footer-credit { color: #8a94ab; margin-top: 10px; width: 100%; text-align: center; font-size: .8rem; }

/* ---- Boutons de contact flottants (WhatsApp / Email) ---- */
.floating-contacts {
  position: fixed;
  bottom: 22px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.floating-contacts a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  animation: fc-pulse 1.8s infinite;
}
.fc-whatsapp { background: #25D366; }
.fc-email { background: #14213d; animation-delay: .4s; }
.floating-contacts svg { width: 26px; height: 26px; fill: #fff; }

@keyframes fc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 4px 14px rgba(0,0,0,.25); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0), 0 4px 14px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 4px 14px rgba(0,0,0,.25); }
}
.fc-email { animation-name: fc-pulse-email; }
@keyframes fc-pulse-email {
  0%   { box-shadow: 0 0 0 0 rgba(20,33,61,.55), 0 4px 14px rgba(0,0,0,.25); }
  70%  { box-shadow: 0 0 0 12px rgba(20,33,61,0), 0 4px 14px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(20,33,61,0), 0 4px 14px rgba(0,0,0,.25); }
}

.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h2 { margin-top: 28px; }
