/* ============================================================
   FRANCE UNIVE — Page de sélection de rôle
   ============================================================ */

:root {
  --bg:      #f4f7ff;
  --bg-card: #ffffff;
  --bg-sec:  #eaefff;
  --blue:    #3b82f6;
  --blue-d:  #2563eb;
  --gold:    #d97706;
  --text:    #0f172a;
  --text-2:  #374151;
  --muted:   #6b7280;
  --border:  rgba(59,130,246,0.18);
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --font:    'Plus Jakarta Sans', sans-serif;
  --font-d:  'Ubuntu', sans-serif;
}

[data-theme="dark"] {
  --bg:      #05080f;
  --bg-card: #0a1220;
  --bg-sec:  #080d1a;
  --blue-d:  #60a5fa;
  --gold:    #f59e0b;
  --text:    #f0f4ff;
  --text-2:  #c8d4f0;
  --muted:   #64748b;
  --border:  rgba(59,130,246,0.15);
  --shadow:  0 4px 40px rgba(0,0,0,0.35);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

a    { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---- TOPBAR ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.btn-theme {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-sec);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-theme:hover { color: var(--blue); border-color: var(--blue); }
.btn-theme svg { width: 16px; height: 16px; }
#icon-sun  { display: none; }
[data-theme="dark"] #icon-sun  { display: block; }
[data-theme="dark"] #icon-moon { display: none; }

/* ---- MAIN ---- */
.login-main {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background-image: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(59,130,246,0.07), transparent);
}

.login-header {
  text-align: center;
  margin-bottom: 44px;
}

.login-header h1 {
  font-family: var(--font-d);
  font-size: 30px; font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 15px; color: var(--muted);
}

/* ---- ROLE CARDS ---- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%; max-width: 720px;
}

@media (min-width: 560px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
}

.role-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.role-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 40px rgba(59,130,246,0.14);
  transform: translateY(-4px);
}

.role-owner:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(217,119,6,0.12);
}

.role-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(59,130,246,0.04));
  border: 1px solid rgba(59,130,246,0.22);
  display: flex; align-items: center; justify-content: center;
}
.role-icon svg { width: 26px; height: 26px; stroke: var(--blue); }

.owner-icon {
  background: linear-gradient(135deg, rgba(217,119,6,0.14), rgba(217,119,6,0.04));
  border-color: rgba(217,119,6,0.22);
}
.owner-icon svg { stroke: var(--gold); }

.role-card h2 {
  font-family: var(--font-d);
  font-size: 19px; font-weight: 700;
}

.role-card p {
  font-size: 13px; color: var(--muted);
  line-height: 1.65; flex: 1;
}

.role-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--blue-d);
  margin-top: 4px;
}

.owner-cta { color: var(--gold); }

/* ---- ADMIN LINK ---- */
.admin-link {
  margin-top: 36px;
  font-size: 12px; color: var(--muted); text-align: center;
}
.admin-link a {
  color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-link a:hover { color: var(--text); }
