/* Variables CSS */
:root {
  --color-primary: #009345;
  --color-secondary: #f5c600;
  --color-accent: #85bb43;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-light: #f5f5f5;
  --color-gray: #666666;
  --color-gray-dark: #333333;
  --color-danger: #dc3545;
  --color-success: #28a745;
  --spacing: 1rem;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo h1 {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-login {
  background: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #007a3d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 147, 69, 0.3);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563 !important;
  font-weight: 500;
}

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

.user-icon {
  font-size: 1.25rem;
}

.user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: #f3f4f6;
  color: #374151 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .user-name {
    display: none;
  }
  
  .user-menu {
    gap: 0.5rem;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #007a38 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 C150,80 350,80 600,40 C850,0 1050,0 1200,40 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.hero-icon {
  font-size: 1.25rem;
}

.btn-hero {
  margin-top: 1.5rem;
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  font-weight: 500;
}

/* Intro Section */
.intro-section {
  padding: 4rem 0;
  background: white;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
}

.intro-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Organization Section */
.organization-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.organization-content {
  max-width: 900px;
  margin: 0 auto;
}

.organization-text {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2.5rem;
  text-align: center;
}

.organization-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.tree-item {
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 147, 69, 0.15);
  transition: all 0.3s;
}

.tree-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 147, 69, 0.25);
}

.tree-main {
  background: linear-gradient(135deg, var(--color-primary) 0%, #007a38 100%);
  color: white;
  border-color: var(--color-primary);
}

.tree-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tree-label {
  font-weight: 600;
  font-size: 1.125rem;
}

.tree-label small {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.tree-branches {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tree-branch {
  flex: 1;
  min-width: 250px;
}

.organization-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0;
}

.organization-benefits li {
  padding: 1rem 1.5rem;
  background: #f0f9ff;
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
}

/* Module Sections */
.module-section {
  padding: 4rem 0;
}

.module-agriculture {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.module-elevage {
  background: linear-gradient(180deg, #fffef5 0%, #ffffff 100%);
}

.module-stock {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.module-content {
  margin-top: 2rem;
}

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

.module-feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
}

.module-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.feature-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

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

.feature-card-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #374151;
  line-height: 1.6;
}

.feature-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.feature-note {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #6b7280;
  font-style: italic;
}

.feature-benefit {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 8px;
  font-weight: 600;
  color: #065f46;
}

/* Modules Other Section */
.modules-other-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.module-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
  text-align: center;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.module-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.module-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.module-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.module-card-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #374151;
  font-size: 0.9375rem;
}

.module-card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Terrain Section */
.terrain-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #007a38 100%);
  color: white;
}

.terrain-section .section-title {
  color: white;
}

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

.terrain-feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.terrain-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.terrain-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.terrain-feature p {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

/* Why Section */
.why-section {
  padding: 4rem 0;
  background: white;
}

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

.why-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #d1fae5;
  transition: all 0.3s;
}

.why-item:hover {
  transform: translateX(5px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 147, 69, 0.15);
}

.why-icon {
  font-size: 1.5rem;
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

.why-item p {
  margin: 0;
  font-weight: 500;
  color: #374151;
  font-size: 1.0625rem;
}

/* Plans Section */
.plans-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

/* Plan Card */
.plan-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--color-primary);
}

.plan-featured {
  border-color: var(--color-secondary);
  border-width: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #fffef5 100%);
}

.plan-featured:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 15px 35px rgba(245, 198, 0, 0.2);
}

.plan-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #ffd700 100%);
  color: var(--color-black);
  padding: 0.625rem 1.25rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(245, 198, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: #6b7280;
  font-size: 0.9375rem;
}

/* Pricing */
.plan-pricing {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-strike {
  font-size: 1.25rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
  margin-left: auto;
}

.price-ht {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Features */
.plan-features {
  margin-bottom: 2rem;
  min-height: 200px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-text {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.feature-text strong {
  color: #111827;
}

/* Actions */
.plan-actions {
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #007a38 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 147, 69, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #007a38 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 16px rgba(0, 147, 69, 0.4);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .tree-branches {
    flex-direction: column;
  }

  .tree-branch {
    width: 100%;
  }

  .module-features-grid {
    grid-template-columns: 1fr;
  }

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

  .terrain-features {
    grid-template-columns: 1fr;
  }

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

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

  .plan-featured {
    transform: scale(1);
  }

  .plan-featured:hover {
    transform: translateY(-5px);
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .price-value {
    font-size: 2rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .organization-tree {
    gap: 1.5rem;
  }
}

