/**
 * SCHOR - Front Public Modern CSS
 * Inspiré de user.css avec design moderne, dynamique et réactif
 */

:root {
  --primary: #002f6cff;
  --primary-light: #1a4d8f;
  --secondary: #ff7f00ff;
  --secondary-light: #ffb84d;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f5f7fa;
  --lighter: #f9fafb;
  --border: #e0e6ed;
  --border-light: #f0f3f7;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================== Base ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--lighter);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* ======================================== Header Navigation ======================================== */

.navbar {
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* ======================================== Hero Section ======================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 127, 0, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-hero-primary:hover {
  background: var(--lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ======================================== Feature Cards ======================================== */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: -4rem auto 3rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.feature-card.secondary .feature-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.feature-card.success .feature-icon {
  background: linear-gradient(135deg, var(--success), #059669);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================================== Section Styling ======================================== */

.section {
  padding: 5rem 0;
  position: relative;
}

.section-light {
  background: var(--lighter);
}

.section-dark {
  background: white;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title i {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 0.75rem;
  font-size: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ======================================== Cards & Grid ======================================== */

.card {
  background: white;
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 2rem;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.25rem;
}

.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--light);
  color: var(--text-dark);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.badge-custom:hover {
  background: var(--border);
  transform: translateX(2px);
}

.badge-custom.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.badge-custom.secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
}

/* ======================================== Resource Cards ======================================== */

.resource-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.resource-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary);
}

.resource-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.resource-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.resource-link:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

/* ======================================== Timeline ======================================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) > * {
  direction: ltr;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  height: 16px;
  width: 16px;
  background: var(--secondary);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--primary);
  margin: 0 auto;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px var(--primary);
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.timeline-content h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-muted);
}

/* ======================================== Stats Grid ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

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

/* ======================================== CTA Section ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  color: white;
  border-radius: 2rem;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cta-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ======================================== Footer ======================================== */

footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-section h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ======================================== Animations ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

/* ======================================== Responsive ======================================== */

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

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

  .feature-cards {
    margin: 0;
  }

  .timeline::before {
    left: 0;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 40px;
  }

  .timeline-item:nth-child(even) {
    direction: ltr;
  }

  .cta-section {
    padding: 2rem;
  }

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

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-cards {
    gap: 1rem;
  }

  .cta-section {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .team-card {
    border-radius: 1rem;
  }

  .testimonial-card {
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .team-image-wrapper {
    height: 100px;
  }

  .team-image {
    width: 100px;
    height: 100px;
  }

  .team-role-badge {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }
}

/* ======================================== Team Cards ======================================== */

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.team-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 0;
  border-radius: 1.25rem 1.25rem 0 0;
}

.team-card-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-image-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  height: 140px;
  margin-bottom: 1rem;
}

.team-image {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
}

.team-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role-badge {
  position: absolute;
  bottom: 10px;
  right: -5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
}

.team-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.5rem 0;
  transition: var(--transition);
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 0.75rem 0;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  flex: 1;
  line-height: 1.5;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.social-link-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-link-modern:hover {
  background: rgba(0, 47, 108, 0.1);
  transform: scale(1.15) rotate(5deg);
  border-color: currentColor;
}

.team-card:hover {
  box-shadow: 0 12px 24px rgba(0, 47, 108, 0.15);
  transform: translateY(-6px);
  border-color: var(--primary);
}

/* ======================================== Testimonial Cards ======================================== */

.testimonial-card {
  background: linear-gradient(135deg, #1f3a52 0%, #142d42 100%);
  border: 1px solid rgba(255, 127, 0, 0.2);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 127, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px);
  border-color: var(--secondary);
  background: linear-gradient(135deg, #244252 0%, #1a3c4d 100%);
}

.testimonial-quote-mark {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 3rem;
  color: rgba(255, 127, 0, 0.15);
  z-index: 0;
  line-height: 1;
}

.testimonial-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-stars {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.testimonial-stars i {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
  transition: var(--transition);
}

.testimonial-card:hover .testimonial-stars i {
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  flex: 1;
  font-style: italic;
  color: #dae8f0;
  font-weight: 500;
}

.testimonial-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 127, 0, 0.3), transparent);
  margin: 1.5rem 0;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 0;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 127, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 127, 0, 0.3);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  color: var(--secondary);
  font-size: 1.75rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}

.testimonial-card:hover .author-name {
  color: var(--secondary);
}

.author-role {
  font-size: 0.85rem;
  color: #b0bec5;
}

.author-org {
  font-size: 0.8rem;
  color: #90a4ae;
  margin-top: 0.25rem;
}

.testimonial-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  border-radius: 0 0 1.25rem 0;
}

/* ======================================== Animations ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 100% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-in-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-in-out forwards;
}

.animate-bounce {
  animation: bounce 0.8s ease-in-out forwards;
}
