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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 66px;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}

.site-name {
  text-decoration: none;
  color: inherit;
}

.site-name:hover {
  text-decoration: none;
  color: inherit;
}

.logo-link {
  text-decoration: none;
}

.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #000;
  color: #fff;
  flex-direction: column;
  padding: 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: #fff; /* Fallback pour navigateurs non compatibles */
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7,
    #fd79a8
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.8;
}

.project {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem;
  position: relative;
}

.project:nth-child(even) {
  background: #f8f8f8;
}

.project-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

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

.project img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-title h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.project-logo {
  height: 4.5rem;
  padding: 5px;
  width: auto;
}

.project-content p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #333;
}

.about {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.founders {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.founder {
  text-align: center;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 8px;
  min-width: 200px;
}

.founder h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.founder p {
  font-size: 1rem;
  color: #666;
  margin: 0 !important;
}

.contact {
  padding: 6rem 2rem;
  background: #111;
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-item strong {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.contact-item a:hover {
  opacity: 1;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

a[disabled] {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

/* Styles pour les pages projets */
.project-hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: white;
  text-align: center;
  padding: 2rem;
}

.project-hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-hero p {
  font-size: 1.5rem;
  max-width: 700px;
  opacity: 0.9;
}

.project-details {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-details h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #111;
}

.project-details p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature {
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 8px;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #111;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #111;
  color: white;
}

.cta-button {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Styles spécifiques Moiki EDU */
.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.vision {
  background: #f8f8f8;
  padding: 3rem;
  border-radius: 12px;
  margin: 3rem 0;
  border-left: 4px solid #111;
}

.vision p {
  margin: 0;
}

.roadmap {
  background: #111;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.roadmap h2 {
  color: white;
  margin-bottom: 2rem;
}

.roadmap-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.roadmap-item h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Contact section pour pages projets */
.project-contact {
  padding: 4rem 2rem;
  text-align: center;
}

/* Lien retour accueil */
.back-home {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.back-home:hover {
  background: #333;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .project-hero h1 {
    font-size: 3rem;
  }
  .about h2,
  .contact h2,
  .project-details h2,
  .hero h2 {
    font-size: 2rem;
  }
  .project-title h3 {
    font-size: 2rem;
  }

  /* Projets en une colonne sur mobile */
  .project-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Inverser l'ordre : image d'abord, puis contenu */
  .project-container > .project-content {
    order: 2;
  }

  .project-container > .project-image {
    order: 1;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }
}
