/* home.css - Styles de la page d'accueil */

.home-container {
  background: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logos-hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.logo-hero {
  height: 100px;
  width: auto;
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.team-photo-hero {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================================
   MISSIONS SECTION
   ============================================ */
.missions-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mission-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.mission-card p {
  color: #666;
  line-height: 1.6;
}

/* ============================================
   PROJECTS SECTION WITH CAROUSEL
   ============================================ */
.projects-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 5rem 2rem;
  overflow: hidden;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 3rem 0;
}

.carousel-wrapper {
  position: relative;
  perspective: 1000px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 350px;
  height: 420px;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  z-index: 1;
}

.carousel-item.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 10;
}

.carousel-item.prev {
  opacity: 0.5;
  transform: translate(-50%, -50%) translateX(-350px) scale(0.8);
  z-index: 2;
  pointer-events: none;
}

.carousel-item.next {
  opacity: 0.5;
  transform: translate(-50%, -50%) translateX(350px) scale(0.8);
  z-index: 2;
  pointer-events: none;
}

.project-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  height: 100%;
  text-align: center;
  cursor: default;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-item.active .project-card {
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  cursor: pointer;
}

.carousel-item.active .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 100px rgba(0,0,0,0.3);
}

.project-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.project-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-link-text {
  color: #667eea;
  font-weight: 600;
  font-size: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover:not(:disabled) {
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: #667eea;
  transform: scale(1.3);
}

.indicator:hover {
  background: rgba(102, 126, 234, 0.6);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #d4edda;
  color: #155724;
  text-align: center;
}

.submit-message.error {
  background: #f8d7da;
  color: #721c24;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.home-footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-about h4,
.footer-links h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-about p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0.25rem 0;
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .logos-hero-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .logo-hero {
    height: 80px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .carousel-prev {
    left: 0.5rem;
  }
  
  .carousel-next {
    right: 0.5rem;
  }
}
