/* -------------------------------
   Variables & styles généraux
---------------------------------*/
:root {
  --bg-page: #0f172a;
  --bg-alt: #020617;
  --bg-card: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #f97373;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.5);
  --transition-fast: 0.2s ease;
  --container-width: 1100px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0b1120, #020617 55%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

/* -------------------------------
   Layout principal
---------------------------------*/

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------------------
   Header & navigation
---------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-symbol {
  font-size: 1.4rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* -------------------------------
   Page list
---------------------------------*/

.page-list {
  padding: 3.5rem 0 3rem;
}

.page-title {
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.page-title p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* -------------------------------
   Alertes
---------------------------------*/

.alert {
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid transparent;
}

.alert-icon {
  font-size: 1rem;
  line-height: 1;
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(248, 113, 113, 0.7);
  color: var(--danger);
}

.alert-info {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--accent);
}

/* -------------------------------
   Carte résumé + recherche
---------------------------------*/

.summary-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.07), #020617);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 64, 175, 0.6);
  margin-bottom: 2rem;
}

.summary-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.summary-main h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.summary-main p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.95);
}

/* -------------------------------
   Formulaire de recherche
---------------------------------*/

.search-form {
  margin-top: 0.4rem;
}

.search-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.search-row input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search-row input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 1);
}

.search-help {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------
   Boutons
---------------------------------*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.85);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  border-style: dashed;
}

/* -------------------------------
   Tableau des inscriptions
---------------------------------*/

.table-section {
  margin-top: 1.5rem;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.table-inscriptions {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.table-inscriptions thead {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), #020617);
}

.table-inscriptions th {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  color: var(--text-main);
  white-space: nowrap;
}

.table-inscriptions td {
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  vertical-align: top;
  color: var(--text-main);
}

/* Zébrage léger */
.table-inscriptions tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.95);
}

.table-inscriptions tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.8);
}

/* Survol */
.table-inscriptions tbody tr:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* Colonne parcours un peu plus large */
.col-parcours {
  min-width: 230px;
}

/* Lien mail */
.table-inscriptions td a {
  color: var(--accent);
  text-decoration: none;
}

.table-inscriptions td a:hover {
  text-decoration: underline;
}

/* Texte atténué */
.text-muted {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* -------------------------------
   Actions de retour
---------------------------------*/

.back-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* -------------------------------
   Footer
---------------------------------*/

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  background: #020617;
  padding: 1.2rem 0 1.5rem;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------
   Responsive
---------------------------------*/

@media (max-width: 900px) {
  .summary-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-tags {
    justify-content: flex-start;
  }

  .main-nav {
    display: none; /* comme sur les autres pages, simple pour l’instant */
  }

  .page-list {
    padding-top: 3rem;
  }
}

@media (max-width: 600px) {
  .page-title h1 {
    font-size: 1.5rem;
  }

  .summary-card {
    padding: 1.4rem 1.2rem;
  }

  .table-inscriptions {
    min-width: 650px;
  }
}

