/* HERO projet */
.project1-hero {
  padding: 140px 0 80px;
  background: var(--primary-color);
}

.project1-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

/* Section projet générique (Objectifs, etc.) */
.project1-section {
  padding: 140px 0;
  background: var(--secondary-color);
}

.project1-section .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.project1-section .section-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.project1-section .section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Cartes Objectifs / Résultats */
.project1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project1-card {
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 40px 32px;
  box-shadow: var(--shadow-light);
}

.project1-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.project1-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Liste à puces dans Objectifs */
.project1-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project1-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.project1-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent-color);
}

.project1-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--accent-color);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project1-title {
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.project1-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project1-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.project1-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.meta-item {
  min-width: 120px;
}

.meta-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.meta-value {
  display: block;
  font-weight: 600;
  margin-top: 4px;
}

.project1-hero-media {
  display: flex;
  justify-content: center;
}

.project1-hero-card {
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  padding: 18px;
  overflow: hidden;
}

/* même logique que more-project-image-wrap */
.project1-hero-image-wrap {
  border-radius: calc(var(--border-radius) - 10px);
  overflow: hidden;
  transform: translateZ(0);
  height: 260px;              /* ajuste la hauteur que tu veux */
}

.project1-hero-image-wrap img {
  width: 100%;
  height: 100%;               /* indispensable avec object-fit */
  display: block;
  object-fit: cover;
  transform: scale(1.02) translateZ(0);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.project1-hero-card:hover .project1-hero-image-wrap img {
  transform: scale(1.12);
}


/* Bloc développement (vidéo + texte) */
.dev-section {
  background: var(--primary-color);
}

.dev-block {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.dev-block:last-child {
  margin-bottom: 0;
}

.dev-text {
  flex: 1 1 50%;
}

.dev-text h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.dev-text p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.dev-media {
  flex: 1 1 50%;
}

.dev-video-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
}

.dev-video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
}

/* Autres projets – image qui avance */
.more-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-top: 40px;
}

.more-project-frame {
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  padding: 18px;
  overflow: hidden;
}

.more-project-image-wrap {
  border-radius: calc(var(--border-radius) - 10px);
  overflow: hidden;
  transform: translateZ(0);
}

.more-project-image-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02) translateZ(0);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* l’image vient vers nous, le cadre reste fixe */
.more-project-card:hover .more-project-image-wrap img {
  transform: scale(1.12);
}

.more-project-info h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.more-project-info p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.more-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .project1-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project1-hero-media {
    justify-content: center;
  }

  .project1-meta {
    justify-content: center;
  }

  .dev-block {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .project1-hero {
    padding: 120px 0 60px;
  }

  .project1-section {
    padding: 110px 0;
  }

  .more-project-card {
    grid-template-columns: 1fr;
  }

  .more-project-frame {
    order: 1;
  }

  .more-project-info {
    order: 2;
  }
}
