*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --navy-dk:    #111c33;
  --orange:     #e8622a;
  --orange-lt:  rgba(232,98,42,0.10);
  --bg:         #f5f4f0;
  --white:      #ffffff;
  --border:     #e4e2db;
  --text:       #1a2744;
  --muted:      #7a7a72;
  --green:      #1a7a4a;
  --green-lt:   #e8f5ee;
  --red:        #c0392b;
  --red-lt:     #fdf0ee;
  --amber:      #b45309;
  --amber-lt:   #fef3e2;
  --radius:     6px;
  --max:        960px;
  --font:       'Inter', sans-serif;
  --accent:     #e8622a;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: none; }
a, a:visited { text-decoration: none; color: var(--orange); }
.nav-logo, .nav-logo:visited { color: var(--navy); }
.nav-links a, .nav-links a:visited { color: var(--muted); }
footer a, footer a:visited { color: rgba(255,255,255,0.35); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
small { font-size: 12px; }

nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul, nav li { margin: 0; padding: 0; list-style: none; }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo, .nav-logo:visited {
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex;
  flex: 1;
  height: 64px;
  margin-left: 40px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0 14px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.actif { border-bottom-color: var(--orange); color: var(--orange); }
.nav-links a.danger:hover { color: var(--red); }
.nav-panier {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
  color: var(--navy);
  text-decoration: none;
}
.nav-panier:hover { color: var(--orange); }
.nav-panier-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.nav-avatar {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.btn-orange, .btn-orange:visited {
  background: var(--orange);
  color: var(--white) !important;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-orange:hover { background: #d0531f; color: var(--white) !important; }

.btn-navy, .btn-navy:visited {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-navy:hover { background: var(--navy-dk); color: var(--white) !important; }

.btn-outline, .btn-outline:visited {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-full { width: 100%; text-align: center; display: block; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

.input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s;
}
.input:focus { outline: none; border-color: var(--navy); }
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--white) inset; box-shadow: 0 0 0 1000px var(--white) inset; -webkit-text-fill-color: var(--text); border-color: var(--border); }

.textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s;
}
.textarea:focus { outline: none; border-color: var(--navy); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.obli { color: var(--orange); }

.page-wrap {
  max-width: var(--max);
  margin: 40px auto;
  padding: 0 32px 60px;
}
.page-title {
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
}
.page-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}
.card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title-icon {
  width: 28px;
  height: 28px;
  background: var(--orange-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--orange);
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.stat-val {
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
}
.stat-val.orange { color: var(--orange); }
.stat-val.green  { color: var(--green); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-green  { background: var(--green-lt);  color: var(--green); }
.badge-orange { background: var(--orange-lt); color: var(--orange); }
.badge-red    { background: var(--red-lt);    color: var(--red); }
.badge-amber  { background: var(--amber-lt);  color: var(--amber); }
.badge-gray   { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 0 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 13px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table td.col-montant, .data-table th.col-montant { width: 140px; text-align: right; white-space: nowrap; }
.data-table td.col-corbeille { width: 40px; text-align: center; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 3px solid;
}
.alert-orange { background: var(--orange-lt); border-color: var(--orange); color: #7a2e0a; }
.alert-green  { background: var(--green-lt);  border-color: var(--green);  color: #0f4a2a; }
.alert-red    { background: var(--red-lt);    border-color: var(--red);    color: #7a1a10; }

.recap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 14px;
}
.recap-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.recap-line:last-child { border-bottom: none; font-weight: 600; font-size: 15px; color: var(--navy); }
.recap-line span:last-child { font-weight: 500; width: 140px; text-align: right; flex-shrink: 0; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 32px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 44px 48px;
  width: 100%;
  max-width: 440px;
}
.login-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--navy) !important;
  text-align: center;
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.login-logo span { color: var(--orange); }
.login-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.login-forgot {
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  text-align: right;
  display: block;
  margin-top: 8px;
}
.login-forgot:hover { color: var(--navy); }
.login-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0 0;
}
.login-secure {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  white-space: nowrap;
}

.token-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 32px;
}
.token-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 44px 48px;
  width: 100%;
  max-width: 520px;
}
.token-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 28px;
  display: block;
}
.token-logo span { color: var(--orange); }
.token-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-lt);
  border: 1px solid rgba(26,122,74,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}
.token-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 20px;
}

footer {
  background: var(--navy-dk);
  color: var(--white);
  padding: 24px 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-copy a { color: rgba(255,255,255,0.3); }
.footer-copy a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .page-wrap { padding: 0 16px 40px; margin-top: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .token-card { padding: 32px 24px; }
  .card { padding: 20px; }
  .data-table th, .data-table td { padding: 10px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.pay-options { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: var(--orange); background: var(--orange-lt); }
.pay-option.selected { border-color: var(--orange); background: var(--orange-lt); }
.pay-option input[type=radio] { accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.pay-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.pay-mention { font-size: 12px; color: var(--muted); margin-top: 2px; }

.otp-boxes { display: flex; gap: 8px; margin: 12px 0; }
.otp-box { width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text); transition: border-color 0.15s; }
.otp-box:focus { outline: none; border-color: var(--navy); }
.otp-countdown { font-size: 13px; color: var(--muted); }

.champ-website {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 39, 68, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}

.btn-primary, .btn-primary:visited {
  background: var(--orange);
  color: var(--white) !important;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #d0531f; color: var(--white) !important; }

[data-infinifaceid-accepter], [data-infinifaceid-enrol] { display: inline-flex; align-items: center; gap: 8px; }
