/* Melesren - Design Moderne */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --green-900: #0c2b1f;
  --green-800: #154832;
  --green-700: #1f6b45;
  --green-600: #248a54;
  --green-500: #2e8a57;
  --green-400: #3da868;
  --green-300: #7ed0a2;
  --green-200: #b8e5d2;
  --green-100: #e8f7f0;
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3a3a3a;
  --gray-600: #4a4a4a;
  --gray-500: #6d6d6d;
  --gray-400: #9a9a9a;
  --gray-300: #c4c4c4;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-green: 0 8px 32px rgba(46, 138, 87, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  margin: 0;
  font-family: "Poppins", "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow-green);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(46, 138, 87, 0.4);
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
}

.btn-outline {
  border: 2px solid var(--green-500);
  color: var(--green-700);
  background: var(--white);
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: var(--green-500);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(46, 138, 87, 0.15);
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(46, 138, 87, 0.2);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--green-900);
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a {
  color: var(--gray-700);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width 0.3s ease;
}

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

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

.nav-cta {
  display: flex;
  gap: 16px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--green-900) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(126, 208, 162, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -50px) scale(1.1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(46, 138, 87, 0.1), rgba(12, 43, 31, 0.1));
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 138, 87, 0.2) 0%, transparent 50%);
  z-index: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Section */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--gray-900);
  font-weight: 800;
}

.section-header .lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}

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

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

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--green-900);
  font-size: 1.5rem;
  font-weight: 700;
}

.card p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.list {
  padding-left: 24px;
  color: var(--gray-800);
  font-size: 1.05rem;
  line-height: 1.9;
}

.list li {
  margin-bottom: 14px;
  position: relative;
}

.list li::marker {
  color: var(--green-500);
  font-weight: bold;
}

/* About Section avec Photo */
.about-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--green-100) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  color: var(--green-900);
  font-weight: 800;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Services Overview */
.services-overview {
  background: var(--white);
}

.services-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green-100), var(--white));
  border: 2px solid var(--green-200);
}

.services-list {
  font-size: 1.1rem;
}

.services-list li {
  margin-bottom: 16px;
  color: var(--gray-800);
}

/* Highlight Box */
.highlight {
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.highlight h2 {
  color: var(--green-900);
  margin-bottom: 20px;
}

.highlight .lead {
  color: var(--gray-700);
  font-size: 1.2rem;
}

/* CTA Section */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--gray-900), var(--green-900));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(126, 208, 162, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer */
footer {
  padding: 60px 0 40px;
  background: var(--gray-900);
  color: var(--white);
  border-top: 4px solid var(--green-500);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand .brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* Form */
.form {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.form input,
.form textarea,
.form button {
  font-family: inherit;
}

.form input,
.form textarea {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(46, 138, 87, 0.1);
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form button {
  justify-self: start;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-500);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100%, 94vw);
    padding: 0 16px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .brand-logo img {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .pill-row {
    gap: 8px;
  }

  .pill {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .section-header .lead {
    font-size: 1rem;
  }

  .grid {
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .card p {
    font-size: 1rem;
  }

  .about-content {
    gap: 40px;
  }

  .about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .cta {
    padding: 40px 24px;
    text-align: center;
    justify-content: center;
    gap: 20px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .highlight {
    padding: 40px 24px;
  }

  .highlight h2 {
    font-size: 1.8rem;
  }

  .highlight .lead {
    font-size: 1rem;
  }

  .form input,
  .form textarea {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .footer-grid {
    gap: 30px;
  }

  footer {
    padding: 40px 0 30px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 12px;
  }

  .nav {
    padding: 14px 0;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .brand-logo img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    font-size: 0.9rem;
    gap: 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .pill {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .hero-image-wrapper {
    max-width: 280px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .section-header .lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .grid {
    gap: 16px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .list {
    font-size: 0.95rem;
    padding-left: 20px;
  }

  .list li {
    margin-bottom: 10px;
  }

  .about-content {
    gap: 30px;
  }

  .about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .cta {
    padding: 32px 20px;
    gap: 16px;
  }

  .cta h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .cta .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .highlight {
    padding: 32px 20px;
  }

  .highlight h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .highlight .lead {
    font-size: 0.95rem;
  }

  .form {
    gap: 16px;
  }

  .form input,
  .form textarea {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .form textarea {
    min-height: 140px;
  }

  .footer-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-brand img {
    width: 40px;
    height: 40px;
  }

  .footer-brand .brand-text {
    font-size: 1.2rem;
  }

  footer {
    padding: 32px 0 24px;
  }

  footer p {
    font-size: 0.9rem;
  }

  footer h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-bottom {
    padding-top: 24px;
    font-size: 0.85rem;
  }

  .result-box {
    padding: 14px;
    font-size: 0.9rem;
  }

  .services-card {
    padding: 24px;
  }

  .tag {
    font-size: 0.85rem;
    padding: 7px 14px;
  }

  .btn {
    font-size: 0.9rem;
  }
}

/* Hero Centered */
.hero-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-centered .hero-buttons {
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 820px) {
  .hero-centered h1 {
    font-size: 2rem;
  }

  .hero-centered p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-centered h1 {
    font-size: 1.75rem;
  }

  .hero-centered p {
    font-size: 0.95rem;
  }
}

/* Result Box */
.result-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--green-900);
  border-left: 4px solid var(--green-500);
}

