/**
 * Module 06: Hero Section & Image 100% Mobile Responsive
 * Thème Storefront Child - TAMISIER MACHINES AGRICOLES
 */

.tma-hero-section {
  width: 100% !important;
  min-height: 80vh !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 3rem 1rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 768px) {
  .tma-hero-section {
    background-size: cover !important;
    background-position: 65% center !important;
    padding: 3rem 1rem !important;
    min-height: 60vh !important;
  }
}

@media (max-width: 480px) {
  .tma-hero-section {
    background-size: cover !important;
    background-position: 60% center !important;
    padding: 3rem 0.75rem !important;
  }
}

.tma-hero-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100%;
}

.tma-hero-top {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
}

.tma-hero-bottom {
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.tma-hero-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 3.5rem !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tma-hero-title-main {
  display: block;
  color: #ffffff;
}

.tma-hero-title-sub {
  display: block;
  color: #6ee7b7;
  font-style: italic;
  font-weight: 600;
}


@media (max-width: 768px) {
  .tma-hero-title {
    font-size: 2.15rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  .tma-hero-title {
    font-size: 1.75rem !important;
  }
}

.tma-hero-desc {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: #f3f4f6 !important;
  margin: 0 !important;
  max-width: 720px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .tma-hero-desc {
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   BOUTONS D'ACTION (CTA MOBILE)
   ========================================================================== */

.tma-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.tma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.975rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 480px) {
  .tma-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .tma-btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mobile / tablette : CTA plus compact, l'ancien gabarit prenait trop de hauteur */
@media (max-width: 768px) {
  .tma-hero-actions {
    gap: 0.75rem;
  }
  .tma-btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    gap: 0.4rem;
    border-radius: 5px;
    line-height: 1.2;
  }
  .tma-btn svg {
    width: 15px;
    height: 15px;
  }
}

.tma-btn-primary {
  background-color: #215833;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tma-btn-primary:hover {
  background-color: #163e23;
  transform: translateY(-2px);
}

.tma-btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937 !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.tma-btn-secondary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION VITRINE SOUS LE HERO
   ========================================================================== */

.tma-showcase-section {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 3.5rem auto !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

.tma-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tma-showcase-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
}

.tma-showcase-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #215833 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.tma-showcase-link:hover {
  color: #163e23 !important;
}
