/* ===== VARIABLES ===== */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --orange: #FF6B35;
  --orange-dark: #e05a2d;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --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 ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

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

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

.lang-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--gray-100);
}

.lang-btn.active {
  background: var(--green);
  color: var(--white);
}

.lang-divider {
  color: var(--gray-400);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease 0.4s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  animation: fadeUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: scale(1.05);
}

.btn-submit {
  background: var(--orange);
  color: var(--white);
  width: 100%;
}

.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.card-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--gray-800);
}

.text-white {
  color: var(--white) !important;
}

/* ===== PROBLEM/SOLUTION SECTION ===== */
.problem-solution {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--gray-50), var(--white));
}

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

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

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

.card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 3rem;
  color: var(--white);
  transition: var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.bg-orange {
  background: linear-gradient(135deg, #FF6B35, #e05a2d);
}

.bg-green {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
}

.bg-orange-gradient {
  background: linear-gradient(135deg, #FF6B35, #fbbf24);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.card-text {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.text-emoji {
  font-size: 2.5rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 5rem 0;
  background: var(--white);
}

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

.service-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  height: 400px;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 10;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.service-card:hover .service-title {
  transform: translateY(-4px);
}

.service-bar {
  width: 80px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover .service-bar {
  transform: scaleX(1.5);
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--gray-50), var(--white));
}

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

.product-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

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

.product-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.product-card:hover .product-icon {
  transform: scale(1.1);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: auto;
}

/* ===== PARTNERSHIPS SECTION ===== */
.partnerships {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.partnership-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 50px 50px;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: rgba(255, 255, 255, 0.8);
}

.partnership-content {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 1.5rem;
}

.partnership-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

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

.partner-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.partner-item i {
  color: var(--orange);
  font-size: 1.25rem;
}
/* ===== blog SECTION ===== */
/* Style des flèches personnalisées */
.custom-nav {
    width: 40px;
    height: 40px;
    background-color: #28a745; /* Vert Triumph */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s;
}

.custom-nav:hover {
    background-color: #1e7e34;
    opacity: 1;
}

.custom-nav i {
    color: white;
    font-size: 1.2rem;
}

/* Positionnement des flèches à l'extérieur sur PC */
.carousel-control-prev { left: -50px; }
.carousel-control-next { right: -50px; }

/* Responsive : flèches sur les côtés sur mobile */
@media (max-width: 992px) {
    .carousel-control-prev { left: 5px; }
    .carousel-control-next { right: 5px; }
}

.journal-section .card {
    border-radius: 15px;
    transition: transform 0.3s;
}

.journal-section .card:hover {
    transform: scale(1.02);
}
/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 5rem 0;
  background: var(--gray-50);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

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

.form-card {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
}

.form-textarea {
  resize: none;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  font-size: 1.125rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.contact-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-link:hover {
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-400);
}

.footer-text .fa-heart {
  color: #ef4444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 80vh;
  }

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

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

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

  .cards-grid,
  .services-grid,
  .products-grid,
  .partnership-features,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .partnership-content {
    padding: 2rem;
  }

  .partners-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

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

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .service-card {
    height: 300px;
  }
}
