/* Variables CSS */
:root {
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --brand-light: #a78bfa;
  --primary: #2dbe60;
  --primary-dark: #26a151;
  --text: #4c4d4d;
  --text-light: #6c757d;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

/* Reset et Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", "Rubik", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: 80px 0;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

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

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

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-block;
}

.btn-link:hover {
  color: var(--brand-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  gap: 0;
}

.nav a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav a:last-child {
  border-bottom: none;
}

.nav a:hover {
  color: var(--brand);
  padding-left: 10px;
}

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.header-auth {
  display: none;
  align-items: center;
  gap: 15px;
}

.header-auth .btn-link {
  color: var(--text);
  font-weight: 600;
}

.header-auth .btn-link:hover {
  color: var(--brand);
}

.nav-auth {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.nav-auth .btn-link {
  color: var(--text);
  font-weight: 600;
}

.nav-auth .btn-link:hover {
  color: var(--brand);
}

@media (min-width: 992px) {
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 30px;
  }
  
  .nav a {
    border-bottom: none;
    padding: 0;
  }
  
  .nav a:hover {
    padding-left: 0;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-auth {
    display: none;
  }
  
  .header-auth {
    display: flex;
  }
}

/* Hero Section */
.hero-slide {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
  overflow: hidden;
}

.hero-home {
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(45, 190, 96, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 20px;
}

.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-home {
    background-position: center top;
  }
  
  .hero-slide {
    min-height: 500px;
  }
  
  .hero-content h2 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
}

/* Featured Box */
.featured-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

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

.featured-box-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--brand);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
}

.featured-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.featured-box p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.featured-box a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
}

/* Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mission-grid {
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-light);
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.cta-band h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: white;
}

.cta-band p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FAQ */
.faq details {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}

.faq p {
  margin-top: 15px;
  color: var(--text-light);
}

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

.contact-inner {
  display: grid;
  gap: 40px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0;
  color: var(--text-light);
}

.contact-list a {
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

@media (min-width: 992px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #999;
}

.footer-nav a:hover {
  color: white;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* App Download */
.app-download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-download a {
  transition: transform 0.3s ease;
  display: inline-block;
}

.app-download a:hover {
  transform: scale(1.05);
}

.app-download img {
  height: auto;
  width: 168px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.bg-white {
  background: var(--white);
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Card Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out;
}
