/* Doctrina - Style Guide */
/* Couleurs: Bleu #7c3aed (violet), Bleu clair #3b82f6, Fond clair */

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

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #3b82f6;
  --dark: #1e1b4b;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: var(--white);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Stats Banner */
.stats-banner {
  background: var(--white);
  padding: 40px 0;
  margin-top: -40px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Domains */
.domains {
  background: var(--white);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.domain-card {
  background: var(--light);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.domain-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.domain-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.domain-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Formateurs */
.formateurs-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.search-input,
.filter-select {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.95rem;
}

.search-input {
  width: 300px;
}

.filter-select {
  min-width: 200px;
}

.formateurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.formateur-card {
  background: var(--white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.formateur-card:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.formateur-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.formateur-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.formateur-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.formateur-location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.formateur-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.formateur-tag {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Écoles */
.ecoles {
  background: var(--white);
}

.ecoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ecole-card {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.ecole-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ecole-name {
  font-weight: 600;
  color: var(--dark);
}

.ecole-location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Besoins */
.besoins-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.besoin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
}

.besoin-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.besoin-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.besoin-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Join Section */
.join-section {
  background: linear-gradient(135deg, var(--dark) 0%, #312e81 100%);
  color: var(--white);
}

.join-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.join-info h2 {
  text-align: left;
  color: var(--white);
  margin-bottom: 20px;
}

.join-info p {
  opacity: 0.9;
  margin-bottom: 30px;
}

.join-benefits {
  list-style: none;
}

.join-benefits li {
  padding: 10px 0;
  font-size: 1.05rem;
}

.trainer-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  color: var(--text);
}

.trainer-form h3 {
  color: var(--dark);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
}

.trainer-form .btn {
  width: 100%;
  margin-top: 10px;
}

/* Contact */
.contact {
  text-align: center;
  background: var(--white);
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 5px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  text-align: center;
  opacity: 0.5;
  font-size: 0.85rem;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-wrapper {
    grid-template-columns: 1fr;
  }

  .formateurs-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
