/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}

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

.main-title {
  text-align: center;
  color: #333;
  font-size: 32px;
  margin: 40px 0;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-btn {
  padding: 12px 30px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.gardens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.garden-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.garden-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.garden-info {
  padding: 20px;
  text-align: center;
}

.garden-info h2 {
  font-size: 18px;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.plants-text {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .gardens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gardens-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Container principal */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Section héro */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

/* Boutons */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #28a745;
  color: white;
}

.btn-primary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

/* Contenu principal */
.main-content {
  flex: 1;
  padding: 60px 20px;
}

/* Section fonctionnalités */
.features-section {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Section de bienvenue */
.welcome-section {
  background: white;
  padding: 60px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.welcome-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
}

/* Styles pour les plantes */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.plant-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.plant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.plant-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.search-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.search-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.search-section h3 {
  color: #666;
  margin: 20px 0 10px 0;
}

.search-section form {
  margin-bottom: 20px;
}

.search-section input[type="text"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
  width: 200px;
}

.search-section input[type="submit"] {
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-section input[type="submit"]:hover {
  background: #218838;
}

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .search-section input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
  }
}

.garden-container {
  padding: 2em;
  height: 100vh;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("https://raw.githubusercontent.com/lewagon/fullstack-images/master/rails/parks-and-plants/garden_background.jpg");
  background-size: cover;
  background-position: center;
}

.garden-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.garden-card {
  background: white;
  padding: 2em;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  width: 50%;
  text-align: center;
}

.garden-card h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

.garden-card p {
  color: #666;
  margin-bottom: 1.5em;
}

.btn-flat {
  color: white;
  padding: 8px 24px;
  border-radius: 4px;
  background: #1EDD88;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-flat:hover {
  background: #1BCB7F;
  color: white;
}

.home-banner {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("https://images.unsplash.com/photo-1585320806297-9794b3e4eeae");
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.banner-content {
  max-width: 800px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.banner-content p {
  font-size: 24px;
  margin-bottom: 30px;
}

.btn-discover {
  display: inline-block;
  background: #00CD8B;
  color: white;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s ease;
}

.btn-discover:hover {
  background: #00B77C;
  color: white;
}

.how-it-works {
  padding: 80px 20px;
  text-align: center;
  background: white;
}

.how-it-works h2 {
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  flex: 1;
  max-width: 300px;
}

.step-icon {
  width: 120px;
  height: 120px;
  background: #00CD8B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon i {
  font-size: 40px;
  color: white;
}

.step h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 36px;
  }

  .banner-content p {
    font-size: 20px;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step {
    margin-bottom: 40px;
  }
}

/* Gardens Section */
.gardens-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gardens-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
}

.search-button {
  padding: 12px 30px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.search-button:hover {
  background: #0056b3;
}

.gardens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.garden-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.garden-card:hover {
  transform: translateY(-5px);
}

.garden-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.garden-info {
  padding: 20px;
}

.garden-info h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
}

.garden-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 36px;
  }

  .banner-content p {
    font-size: 20px;
  }

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

  .search-bar {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.btn-create {
  padding: 12px 30px;
  background: #00CD8B;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-create:hover {
  background: #00B77C;
  color: white;
}

/* How does it work section */
.how-it-works {
  text-align: center;
  padding: 60px 0;
  background-color: white;
}

.how-it-works h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #333;
}

.steps-container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.step-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  max-width: 300px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.step-icon {
  width: 120px;
  height: 120px;
  background: #00CD8B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon i {
  font-size: 40px;
  color: white;
}

.step h3 {
  font-size: 20px;
  color: #333;
  margin: 0;
}

/* Gardens section */
.gardens-section {
  padding: 60px 0;
}

.gardens-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-btn {
  padding: 12px 30px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.gardens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.garden-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.garden-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.garden-info {
  padding: 20px;
}

.garden-info h2 {
  font-size: 20px;
  margin: 0 0 10px 0;
  text-align: left;
}

.plants-text {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 40px;
}

.btn-create-garden {
  display: inline-block;
  padding: 15px 40px;
  background: #00CD8B;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.btn-create-garden:hover {
  background: #00B77C;
  color: white;
}

@media (max-width: 1200px) {
  .gardens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-link {
    margin-bottom: 40px;
  }

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

  .search-container {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }
}
