/* Ressources en Harmonie - Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #5CB8B2;
  --primary-light: #7DD3CE;
  --primary-dark: #3A9690;
  --accent-color: #B8E6E1;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --bg-light: #F8FFFE;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(92, 184, 178, 0.1);
  --shadow-hover: 0 8px 15px rgba(92, 184, 178, 0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Quicksand', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: 0 2px 10px rgba(92, 184, 178, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

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

.nav-links a.active {
  color: var(--primary-color);
}

.btn-contact {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-contact::after {
  display: none;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(184, 230, 225, 0.3) 0%, rgba(125, 211, 206, 0.2) 100%),
              url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=1600&h=900&fit=crop') center/cover;
  padding: 8rem 5% 6rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 255, 254, 0.92) 0%, rgba(184, 230, 225, 0.85) 100%);
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Section Styles */
section {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.card-icon {
  width: 100%;
  height: 200px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  position: relative;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

/* Content Sections */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.content-section.reverse {
  direction: rtl;
}

.content-section.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-text ul {
  list-style: none;
  margin: 1.5rem 0;
}

.content-text ul li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 30px;
}

.content-text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.content-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-submit button {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 5% 1.5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: 'Quicksand', sans-serif;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

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

/* Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

  .content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-section.reverse {
    direction: ltr;
  }

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

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

  .contact-form {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem 4%;
  }

  section {
    padding: 3rem 4%;
  }

  .hero {
    padding: 4rem 4% 3rem;
  }

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

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* CTA Section with background */
.cta-section {
  background: linear-gradient(135deg, rgba(184, 230, 225, 0.3) 0%, rgba(125, 211, 206, 0.2) 100%),
              url('https://images.unsplash.com/photo-1508615070457-7baeba4003ab?w=1600&h=900&fit=crop') center/cover;
  padding: 6rem 5%;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 255, 254, 0.75) 0%, rgba(184, 230, 225, 0.70) 100%);
  z-index: 0;
}

/* Grid layout for 5 cards - center last row */
.cards-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.cards-grid-5 .card:nth-child(4),
.cards-grid-5 .card:nth-child(5) {
  grid-column: span 1;
}

.cards-grid-5 .card:nth-child(4) {
  grid-column: 1 / 2;
  margin-left: auto;
  margin-right: 1rem;
}

.cards-grid-5 .card:nth-child(5) {
  grid-column: 2 / 3;
  margin-left: 1rem;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .cards-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-grid-5 .card:nth-child(4),
  .cards-grid-5 .card:nth-child(5) {
    grid-column: auto;
    margin: 0;
  }
  
  .cards-grid-5 .card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .cards-grid-5 {
    grid-template-columns: 1fr;
  }
  
  .cards-grid-5 .card:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }
}
